├── codeSample ├── tablayout │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── drawable │ │ │ │ │ ├── nav_icon_gift.png │ │ │ │ │ ├── nav_icon_home.png │ │ │ │ │ ├── nav_icon_favorite.png │ │ │ │ │ ├── nav_icon_feedback.png │ │ │ │ │ ├── nav_icon_followers.png │ │ │ │ │ └── nav_icon_following.png │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ ├── item.xml │ │ │ │ │ ├── activity_main.xml │ │ │ │ │ ├── tab_item.xml │ │ │ │ │ └── activity_example.xml │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── losileeya │ │ │ │ └── bottomsheetmaster │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── losileeya │ │ │ └── bottomsheetmaster │ │ │ └── ExampleInstrumentedTest.java │ └── proguard-rules.pro ├── AppUpdate │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ ├── colors.xml │ │ │ │ │ │ ├── dimens.xml │ │ │ │ │ │ └── styles.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values-w820dp │ │ │ │ │ │ └── dimens.xml │ │ │ │ │ └── layout │ │ │ │ │ │ └── activity_main.xml │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── losileeya │ │ │ │ │ └── appupdate │ │ │ │ │ └── retrofit │ │ │ │ │ ├── ApiService.java │ │ │ │ │ └── ServiceFactory.java │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── losileeya │ │ │ │ │ └── appupdate │ │ │ │ │ └── ExampleUnitTest.java │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── losileeya │ │ │ │ └── appupdate │ │ │ │ └── ExampleInstrumentedTest.java │ │ └── proguard-rules.pro │ ├── 服务端后台接口 │ │ ├── .idea │ │ │ ├── .name │ │ │ ├── encodings.xml │ │ │ ├── modules.xml │ │ │ ├── jsLibraryMappings.xml │ │ │ ├── runConfigurations │ │ │ │ └── bin_www.xml │ │ │ ├── libraries │ │ │ │ └── fuck_node_modules.xml │ │ │ └── misc.xml │ │ ├── node_modules │ │ │ ├── acorn │ │ │ │ ├── dist │ │ │ │ │ └── .keep │ │ │ │ ├── src │ │ │ │ │ ├── loose │ │ │ │ │ │ ├── acorn_loose.js │ │ │ │ │ │ └── parseutil.js │ │ │ │ │ ├── util.js │ │ │ │ │ ├── whitespace.js │ │ │ │ │ └── location.js │ │ │ │ ├── .gitattributes │ │ │ │ ├── .npmignore │ │ │ │ ├── .tern-project │ │ │ │ ├── .travis.yml │ │ │ │ ├── .editorconfig │ │ │ │ ├── bin │ │ │ │ │ └── update_authors.sh │ │ │ │ └── AUTHORS │ │ │ ├── mime │ │ │ │ ├── .npmignore │ │ │ │ ├── cli.js │ │ │ │ └── build │ │ │ │ │ └── build.js │ │ │ ├── jade │ │ │ │ ├── block-code.html │ │ │ │ ├── .release.json │ │ │ │ ├── .npmignore │ │ │ │ ├── lib │ │ │ │ │ ├── filters-client.js │ │ │ │ │ ├── inline-tags.js │ │ │ │ │ └── nodes │ │ │ │ │ │ ├── node.js │ │ │ │ │ │ ├── mixin-block.js │ │ │ │ │ │ ├── doctype.js │ │ │ │ │ │ ├── literal.js │ │ │ │ │ │ ├── text.js │ │ │ │ │ │ ├── filter.js │ │ │ │ │ │ ├── comment.js │ │ │ │ │ │ ├── index.js │ │ │ │ │ │ ├── each.js │ │ │ │ │ │ ├── mixin.js │ │ │ │ │ │ ├── block-comment.js │ │ │ │ │ │ ├── code.js │ │ │ │ │ │ └── case.js │ │ │ │ └── component.json │ │ │ ├── qs │ │ │ │ ├── .eslintignore │ │ │ │ ├── test │ │ │ │ │ ├── index.js │ │ │ │ │ └── utils.js │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ ├── lib │ │ │ │ │ └── index.js │ │ │ │ └── .eslintrc │ │ │ ├── with │ │ │ │ ├── .npmignore │ │ │ │ └── node_modules │ │ │ │ │ ├── acorn │ │ │ │ │ ├── dist │ │ │ │ │ │ └── .keep │ │ │ │ │ ├── .tern-project │ │ │ │ │ ├── src │ │ │ │ │ │ ├── loose │ │ │ │ │ │ │ ├── acorn_loose.js │ │ │ │ │ │ │ └── state.js │ │ │ │ │ │ ├── util.js │ │ │ │ │ │ └── whitespace.js │ │ │ │ │ ├── .gitattributes │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── bin │ │ │ │ │ │ ├── prepublish.sh │ │ │ │ │ │ └── update_authors.sh │ │ │ │ │ ├── .editorconfig │ │ │ │ │ └── AUTHORS │ │ │ │ │ └── .bin │ │ │ │ │ ├── acorn.cmd │ │ │ │ │ └── acorn │ │ │ ├── void-elements │ │ │ │ ├── .npmignore │ │ │ │ ├── .gitattributes │ │ │ │ ├── .travis.yml │ │ │ │ ├── test │ │ │ │ │ └── index.js │ │ │ │ └── index.js │ │ │ ├── express │ │ │ │ ├── node_modules │ │ │ │ │ └── qs │ │ │ │ │ │ ├── .eslintignore │ │ │ │ │ │ ├── .travis.yml │ │ │ │ │ │ ├── CONTRIBUTING.md │ │ │ │ │ │ ├── lib │ │ │ │ │ │ └── index.js │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ ├── bower.json │ │ │ │ │ │ └── test │ │ │ │ │ │ └── utils.js │ │ │ │ └── index.js │ │ │ ├── transformers │ │ │ │ ├── .npmignore │ │ │ │ └── node_modules │ │ │ │ │ ├── uglify-js │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── test │ │ │ │ │ │ └── compress │ │ │ │ │ │ ├── arrays.js │ │ │ │ │ │ ├── issue-12.js │ │ │ │ │ │ ├── issue-22.js │ │ │ │ │ │ ├── debugger.js │ │ │ │ │ │ ├── issue-105.js │ │ │ │ │ │ ├── properties.js │ │ │ │ │ │ ├── issue-59.js │ │ │ │ │ │ └── issue-44.js │ │ │ │ │ ├── source-map │ │ │ │ │ ├── .npmignore │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── build │ │ │ │ │ │ ├── test-suffix.js │ │ │ │ │ │ ├── test-prefix.js │ │ │ │ │ │ ├── suffix-source-map.jsm │ │ │ │ │ │ ├── suffix-browser.js │ │ │ │ │ │ ├── prefix-utils.jsm │ │ │ │ │ │ ├── suffix-utils.jsm │ │ │ │ │ │ └── prefix-source-map.jsm │ │ │ │ │ ├── lib │ │ │ │ │ │ └── source-map.js │ │ │ │ │ └── test │ │ │ │ │ │ └── source-map │ │ │ │ │ │ └── test-base64-vlq.js │ │ │ │ │ ├── is-promise │ │ │ │ │ ├── .travis.yml │ │ │ │ │ ├── .npmignore │ │ │ │ │ └── index.js │ │ │ │ │ ├── promise │ │ │ │ │ └── .npmignore │ │ │ │ │ └── .bin │ │ │ │ │ ├── uglifyjs.cmd │ │ │ │ │ └── uglifyjs │ │ │ ├── character-parser │ │ │ │ └── .npmignore │ │ │ ├── cliui │ │ │ │ ├── .npmignore │ │ │ │ ├── node_modules │ │ │ │ │ └── wordwrap │ │ │ │ │ │ ├── .npmignore │ │ │ │ │ │ └── example │ │ │ │ │ │ ├── meat.js │ │ │ │ │ │ └── center.js │ │ │ │ ├── .coveralls.yml │ │ │ │ ├── .travis.yml │ │ │ │ └── LICENSE.txt │ │ │ ├── debug │ │ │ │ ├── .jshintrc │ │ │ │ ├── .npmignore │ │ │ │ ├── component.json │ │ │ │ ├── bower.json │ │ │ │ └── Makefile │ │ │ ├── ipaddr.js │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── bower.json │ │ │ │ └── Cakefile │ │ │ ├── css │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ ├── index.js │ │ │ │ ├── test.js │ │ │ │ ├── History.md │ │ │ │ ├── component.json │ │ │ │ └── benchmark.js │ │ │ ├── clean-css │ │ │ │ ├── index.js │ │ │ │ └── lib │ │ │ │ │ ├── selectors │ │ │ │ │ ├── is-special.js │ │ │ │ │ └── remove-duplicate-media-queries.js │ │ │ │ │ ├── properties │ │ │ │ │ ├── has-inherit.js │ │ │ │ │ ├── remove-unused.js │ │ │ │ │ ├── invalid-property-error.js │ │ │ │ │ ├── vendor-prefixes.js │ │ │ │ │ └── clone.js │ │ │ │ │ ├── utils │ │ │ │ │ ├── object.js │ │ │ │ │ └── clone-array.js │ │ │ │ │ ├── tokenizer │ │ │ │ │ └── extract-selectors.js │ │ │ │ │ ├── colors │ │ │ │ │ └── rgb.js │ │ │ │ │ └── stringifier │ │ │ │ │ └── simple.js │ │ │ ├── inherits │ │ │ │ ├── inherits.js │ │ │ │ ├── test.js │ │ │ │ ├── inherits_browser.js │ │ │ │ └── LICENSE │ │ │ ├── graceful-readlink │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ ├── index.js │ │ │ │ └── README.md │ │ │ ├── is-promise │ │ │ │ ├── .travis.yml │ │ │ │ ├── .npmignore │ │ │ │ └── index.js │ │ │ ├── constantinople │ │ │ │ ├── .travis.yml │ │ │ │ ├── .npmignore │ │ │ │ └── .gitattributes │ │ │ ├── cookie-signature │ │ │ │ ├── .npmignore │ │ │ │ └── History.md │ │ │ ├── uglify-to-browserify │ │ │ │ ├── .travis.yml │ │ │ │ ├── .npmignore │ │ │ │ ├── README.md │ │ │ │ └── test │ │ │ │ │ └── index.js │ │ │ ├── minimist │ │ │ │ ├── .travis.yml │ │ │ │ ├── example │ │ │ │ │ └── parse.js │ │ │ │ └── test │ │ │ │ │ ├── whitespace.js │ │ │ │ │ ├── parse_modified.js │ │ │ │ │ ├── dotted.js │ │ │ │ │ ├── default_bool.js │ │ │ │ │ ├── dash.js │ │ │ │ │ └── long.js │ │ │ ├── ms │ │ │ │ └── .npmignore │ │ │ ├── optimist │ │ │ │ ├── .travis.yml │ │ │ │ ├── example │ │ │ │ │ ├── reflect.js │ │ │ │ │ ├── short.js │ │ │ │ │ ├── nonopt.js │ │ │ │ │ ├── boolean_single.js │ │ │ │ │ ├── default_hash.js │ │ │ │ │ ├── default_singles.js │ │ │ │ │ ├── boolean_double.js │ │ │ │ │ ├── divide.js │ │ │ │ │ ├── xup.js │ │ │ │ │ ├── string.js │ │ │ │ │ ├── bool.js │ │ │ │ │ ├── line_count.js │ │ │ │ │ ├── usage-options.js │ │ │ │ │ ├── line_count_options.js │ │ │ │ │ └── line_count_wrap.js │ │ │ │ └── test │ │ │ │ │ └── _ │ │ │ │ │ ├── argv.js │ │ │ │ │ └── bin.js │ │ │ ├── css-parse │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ ├── component.json │ │ │ │ └── History.md │ │ │ ├── iconv-lite │ │ │ │ ├── .npmignore │ │ │ │ ├── .travis.yml │ │ │ │ └── encodings │ │ │ │ │ └── index.js │ │ │ ├── promise │ │ │ │ ├── .jshintrc │ │ │ │ ├── .npmignore │ │ │ │ ├── index.js │ │ │ │ ├── core.js │ │ │ │ ├── polyfill.js │ │ │ │ ├── lib │ │ │ │ │ └── done.js │ │ │ │ └── polyfill-done.js │ │ │ ├── css-stringify │ │ │ │ ├── .npmignore │ │ │ │ ├── Makefile │ │ │ │ ├── component.json │ │ │ │ └── History.md │ │ │ ├── forwarded │ │ │ │ ├── HISTORY.md │ │ │ │ └── index.js │ │ │ ├── unpipe │ │ │ │ └── HISTORY.md │ │ │ ├── source-map │ │ │ │ ├── build │ │ │ │ │ ├── test-suffix.js │ │ │ │ │ ├── test-prefix.js │ │ │ │ │ ├── suffix-source-map.jsm │ │ │ │ │ ├── suffix-browser.js │ │ │ │ │ ├── prefix-utils.jsm │ │ │ │ │ ├── suffix-utils.jsm │ │ │ │ │ └── prefix-source-map.jsm │ │ │ │ └── lib │ │ │ │ │ └── source-map.js │ │ │ ├── utils-merge │ │ │ │ ├── .travis.yml │ │ │ │ ├── index.js │ │ │ │ └── README.md │ │ │ ├── wordwrap │ │ │ │ └── example │ │ │ │ │ ├── meat.js │ │ │ │ │ └── center.js │ │ │ ├── mkdirp │ │ │ │ ├── .travis.yml │ │ │ │ ├── examples │ │ │ │ │ └── pow.js │ │ │ │ ├── bin │ │ │ │ │ ├── usage.txt │ │ │ │ │ └── cmd.js │ │ │ │ └── test │ │ │ │ │ └── root.js │ │ │ ├── .bin │ │ │ │ ├── mime.cmd │ │ │ │ ├── acorn.cmd │ │ │ │ ├── jade.cmd │ │ │ │ ├── mkdirp.cmd │ │ │ │ ├── cleancss.cmd │ │ │ │ ├── uglifyjs.cmd │ │ │ │ ├── mime │ │ │ │ ├── acorn │ │ │ │ ├── jade │ │ │ │ ├── mkdirp │ │ │ │ ├── cleancss │ │ │ │ └── uglifyjs │ │ │ ├── mime-db │ │ │ │ └── index.js │ │ │ ├── setprototypeof │ │ │ │ ├── index.js │ │ │ │ ├── README.md │ │ │ │ └── LICENSE │ │ │ ├── async │ │ │ │ └── component.json │ │ │ ├── is-buffer │ │ │ │ ├── .zuul.yml │ │ │ │ ├── .travis.yml │ │ │ │ └── index.js │ │ │ ├── content-type │ │ │ │ └── HISTORY.md │ │ │ ├── on-headers │ │ │ │ └── HISTORY.md │ │ │ ├── decamelize │ │ │ │ └── index.js │ │ │ ├── right-align │ │ │ │ └── index.js │ │ │ ├── center-align │ │ │ │ └── index.js │ │ │ ├── uglify-js │ │ │ │ ├── node_modules │ │ │ │ │ └── source-map │ │ │ │ │ │ └── source-map.js │ │ │ │ └── tools │ │ │ │ │ └── exports.js │ │ │ ├── depd │ │ │ │ └── lib │ │ │ │ │ └── compat │ │ │ │ │ ├── event-listener-count.js │ │ │ │ │ └── buffer-concat.js │ │ │ ├── merge-descriptors │ │ │ │ └── HISTORY.md │ │ │ ├── methods │ │ │ │ └── HISTORY.md │ │ │ ├── media-typer │ │ │ │ └── HISTORY.md │ │ │ ├── vary │ │ │ │ └── HISTORY.md │ │ │ ├── camelcase │ │ │ │ └── index.js │ │ │ ├── longest │ │ │ │ └── index.js │ │ │ ├── yargs │ │ │ │ └── completion.sh.hbs │ │ │ ├── window-size │ │ │ │ └── README.md │ │ │ ├── range-parser │ │ │ │ └── HISTORY.md │ │ │ ├── fresh │ │ │ │ └── HISTORY.md │ │ │ ├── basic-auth │ │ │ │ └── HISTORY.md │ │ │ ├── path-to-regexp │ │ │ │ └── History.md │ │ │ └── escape-html │ │ │ │ └── Readme.md │ │ ├── views │ │ │ ├── index.jade │ │ │ ├── error.jade │ │ │ └── layout.jade │ │ ├── public │ │ │ └── stylesheets │ │ │ │ └── style.css │ │ ├── routes │ │ │ ├── users.js │ │ │ ├── index.js │ │ │ ├── version.json │ │ │ └── express_demo.js │ │ └── package.json │ ├── settings.gradle │ ├── .idea │ │ ├── copyright │ │ │ └── profiles_settings.xml │ │ ├── encodings.xml │ │ ├── modules.xml │ │ ├── runConfigurations.xml │ │ ├── gradle.xml │ │ └── compiler.xml │ ├── .gitignore │ ├── build.gradle │ └── gradle.properties ├── BottomSheet │ ├── .gitignore │ ├── src │ │ ├── main │ │ │ ├── res │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── colors.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── styles.xml │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ └── layout │ │ │ │ │ └── item.xml │ │ │ └── AndroidManifest.xml │ │ ├── test │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── losileeya │ │ │ │ └── bottomsheetmaster │ │ │ │ └── ExampleUnitTest.java │ │ └── androidTest │ │ │ └── java │ │ │ └── com │ │ │ └── losileeya │ │ │ └── bottomsheetmaster │ │ │ └── ExampleInstrumentedTest.java │ └── proguard-rules.pro ├── DrawerLayout │ ├── .idea │ │ ├── .name │ │ ├── copyright │ │ │ └── profiles_settings.xml │ │ ├── encodings.xml │ │ ├── modules.xml │ │ ├── runConfigurations.xml │ │ ├── compiler.xml │ │ └── gradle.xml │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ ├── res │ │ │ │ │ ├── drawable │ │ │ │ │ │ ├── add.png │ │ │ │ │ │ ├── head.png │ │ │ │ │ │ ├── logo.png │ │ │ │ │ │ ├── item_one.jpg │ │ │ │ │ │ ├── menu_icon.png │ │ │ │ │ │ ├── share_icon.png │ │ │ │ │ │ ├── nav_icon_gift.png │ │ │ │ │ │ ├── nav_icon_home.png │ │ │ │ │ │ ├── nav_icon_favorite.png │ │ │ │ │ │ ├── nav_icon_feedback.png │ │ │ │ │ │ ├── nav_icon_settings.png │ │ │ │ │ │ ├── nav_icon_followers.png │ │ │ │ │ │ ├── nav_icon_following.png │ │ │ │ │ │ ├── nav_icon_my_shares.png │ │ │ │ │ │ ├── nav_icon_subscribed_subjects.png │ │ │ │ │ │ ├── side_nav_bar.xml │ │ │ │ │ │ ├── ic_menu_send.xml │ │ │ │ │ │ ├── ic_menu_slideshow.xml │ │ │ │ │ │ ├── ic_menu_gallery.xml │ │ │ │ │ │ ├── ic_menu_manage.xml │ │ │ │ │ │ ├── setting_bg.xml │ │ │ │ │ │ ├── ic_menu_camera.xml │ │ │ │ │ │ └── ic_menu_share.xml │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ │ ├── strings.xml │ │ │ │ │ │ ├── dimens.xml │ │ │ │ │ │ └── colors.xml │ │ │ │ │ └── values-w820dp │ │ │ │ │ │ └── dimens.xml │ │ │ │ └── AndroidManifest.xml │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── losileeya │ │ │ │ │ └── drawerlayout │ │ │ │ │ └── ExampleUnitTest.java │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── losileeya │ │ │ │ └── drawerlayout │ │ │ │ └── ApplicationTest.java │ │ └── proguard-rules.pro │ ├── settings.gradle │ ├── .gitignore │ ├── gradle │ │ └── wrapper │ │ │ ├── gradle-wrapper.jar │ │ │ └── gradle-wrapper.properties │ ├── build.gradle │ └── gradle.properties ├── CoordinatorLayout │ ├── app │ │ ├── .gitignore │ │ ├── src │ │ │ ├── main │ │ │ │ └── res │ │ │ │ │ ├── drawable │ │ │ │ │ ├── ab_edit.png │ │ │ │ │ ├── ic_done.png │ │ │ │ │ ├── ab_share.png │ │ │ │ │ └── title_bg.jpg │ │ │ │ │ ├── mipmap-hdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-mdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── mipmap-xxxhdpi │ │ │ │ │ └── ic_launcher.png │ │ │ │ │ ├── values │ │ │ │ │ ├── strings.xml │ │ │ │ │ ├── dimens.xml │ │ │ │ │ └── colors.xml │ │ │ │ │ ├── values-w820dp │ │ │ │ │ └── dimens.xml │ │ │ │ │ └── layout │ │ │ │ │ └── item_layout.xml │ │ │ ├── test │ │ │ │ └── java │ │ │ │ │ └── com │ │ │ │ │ └── losileeya │ │ │ │ │ └── appbarlayout │ │ │ │ │ └── ExampleUnitTest.java │ │ │ └── androidTest │ │ │ │ └── java │ │ │ │ └── com │ │ │ │ └── losileeya │ │ │ │ └── appbarlayout │ │ │ │ └── ExampleInstrumentedTest.java │ │ └── proguard-rules.pro │ ├── settings.gradle │ ├── img │ │ ├── GIF.gif │ │ ├── GIF1.gif │ │ ├── GIF2.gif │ │ └── GIF3.gif │ ├── .gitignore │ ├── build.gradle │ └── gradle.properties └── AndroidUtils │ ├── RegexUtil.java │ ├── ToastUtil.java │ ├── IntentUtil.java │ ├── MobileUtil.java │ ├── SdCardUtil.java │ ├── VersionUtil.java │ ├── ConvertImageColor.java │ └── TypeConvertUtil.java └── java基础 └── 垃圾回收算法.md /codeSample/tablayout/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/.name: -------------------------------------------------------------------------------- 1 | fuck -------------------------------------------------------------------------------- /codeSample/BottomSheet/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.idea/.name: -------------------------------------------------------------------------------- 1 | DrawerLayout -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/dist/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mime/.npmignore: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/.gitignore: -------------------------------------------------------------------------------- 1 | /build 2 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/block-code.html: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/settings.gradle: -------------------------------------------------------------------------------- 1 | include ':app' 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/src/loose/acorn_loose.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/dist/.keep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/void-elements/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/.tern-project: -------------------------------------------------------------------------------- 1 | {} -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/.eslintignore: -------------------------------------------------------------------------------- 1 | dist 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/void-elements/.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/character-parser/.npmignore: -------------------------------------------------------------------------------- 1 | test/ 2 | .travis.yml -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/.npmignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/debug/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "laxbreak": true 3 | } 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/ipaddr.js/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | node_modules 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/src/loose/acorn_loose.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/.npmignore: -------------------------------------------------------------------------------- 1 | /.tern-port 2 | /test 3 | /local 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/node_modules/wordwrap/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/.gitattributes: -------------------------------------------------------------------------------- 1 | * text eol=lf 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib/clean'); 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/inherits/inherits.js: -------------------------------------------------------------------------------- 1 | module.exports = require('util').inherits 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/.release.json: -------------------------------------------------------------------------------- 1 | "2ab04e8289982bfac3548a9c6016476472dcdb4f" 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/.coveralls.yml: -------------------------------------------------------------------------------- 1 | repo_token: NiRhyj91Z2vtgob6XdEAqs83rzNnbMZUu 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/graceful-readlink/.npmignore: -------------------------------------------------------------------------------- 1 | .idea/ 2 | .DS_Store 3 | node_modules/ 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/is-promise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/.npmignore: -------------------------------------------------------------------------------- 1 | /.tern-port 2 | /test 3 | /local 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/constantinople/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cookie-signature/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/.npmignore: -------------------------------------------------------------------------------- 1 | tmp/ 2 | node_modules/ 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/.npmignore: -------------------------------------------------------------------------------- 1 | dist/* 2 | node_modules/* 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/uglify-to-browserify/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: '0.10' 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/src/loose/parseutil.js: -------------------------------------------------------------------------------- 1 | export function isDummy(node) { return node.name == "✖" } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/debug/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | example 5 | *.sock 6 | dist 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/ms/.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | History.md 4 | Makefile 5 | component.json 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-parse/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | test.css 6 | test.js 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/iconv-lite/.npmignore: -------------------------------------------------------------------------------- 1 | *~ 2 | *sublime-* 3 | generation 4 | test 5 | wiki 6 | coverage 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "asi": true, 3 | "node": true, 4 | "strict": true 5 | } 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/void-elements/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '0.10' 4 | - '0.11' 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/views/index.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | h1= title 5 | p Welcome to #{title} 6 | -------------------------------------------------------------------------------- /codeSample/AndroidUtils/RegexUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/RegexUtil.java -------------------------------------------------------------------------------- /codeSample/AndroidUtils/ToastUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/ToastUtil.java -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-stringify/.npmignore: -------------------------------------------------------------------------------- 1 | support 2 | test 3 | examples 4 | *.sock 5 | test.css 6 | test.js 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/forwarded/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.1.0 / 2014-09-21 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/reflect.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.dir(require('optimist').argv); 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/test/_/argv.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | console.log(JSON.stringify(process.argv)); 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/is-promise/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/unpipe/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.0 / 2015-06-14 2 | ================== 3 | 4 | * Initial release 5 | -------------------------------------------------------------------------------- /codeSample/AndroidUtils/IntentUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/IntentUtil.java -------------------------------------------------------------------------------- /codeSample/AndroidUtils/MobileUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/MobileUtil.java -------------------------------------------------------------------------------- /codeSample/AndroidUtils/SdCardUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/SdCardUtil.java -------------------------------------------------------------------------------- /codeSample/AndroidUtils/VersionUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/VersionUtil.java -------------------------------------------------------------------------------- /codeSample/AppUpdate/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | AppUpdate 3 | 4 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/img/GIF.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/img/GIF.gif -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/img/GIF1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/img/GIF1.gif -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/img/GIF2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/img/GIF2.gif -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/img/GIF3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/img/GIF3.gif -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/.tern-project: -------------------------------------------------------------------------------- 1 | { 2 | "plugins": { 3 | "node": true, 4 | "es_modules": true 5 | } 6 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/is-promise/.npmignore: -------------------------------------------------------------------------------- 1 | component 2 | build 3 | node_modules 4 | test.js 5 | component.json 6 | .gitignore -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/example/parse.js: -------------------------------------------------------------------------------- 1 | var argv = require('../')(process.argv.slice(2)); 2 | console.dir(argv); 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/test/index.js: -------------------------------------------------------------------------------- 1 | require('./parse'); 2 | 3 | require('./stringify'); 4 | 5 | require('./utils'); 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - 0.8 4 | - "0.10" -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BottomSheetMaster 3 | 4 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | BottomSheetMaster 3 | 4 | -------------------------------------------------------------------------------- /codeSample/AndroidUtils/ConvertImageColor.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/ConvertImageColor.java -------------------------------------------------------------------------------- /codeSample/AndroidUtils/TypeConvertUtil.java: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AndroidUtils/TypeConvertUtil.java -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | sudo: false 3 | node_js: 4 | - '0.10' 5 | - '0.12' 6 | - '4' 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @node test 4 | 5 | benchmark: 6 | @node benchmark 7 | 8 | .PHONY: test benchmark -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/index.js: -------------------------------------------------------------------------------- 1 | 2 | exports.parse = require('css-parse'); 3 | exports.stringify = require('css-stringify'); 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/graceful-readlink/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.12" 5 | - "io.js" 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | node_modules 3 | test 4 | .gitignore 5 | .travis.yml 6 | component.json 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/views/error.jade: -------------------------------------------------------------------------------- 1 | extends layout 2 | 3 | block content 4 | h1= message 5 | h2= error.status 6 | pre #{error.stack} 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - 0.10 5 | - 0.12 6 | - iojs 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/test-suffix.js: -------------------------------------------------------------------------------- 1 | function run_test() { 2 | runSourceMapTests('{THIS_MODULE}', do_throw); 3 | } 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/bin/prepublish.sh: -------------------------------------------------------------------------------- 1 | node bin/build-acorn.js 2 | node bin/without_eval > dist/acorn_csp.js 3 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/utils-merge/.travis.yml: -------------------------------------------------------------------------------- 1 | language: "node_js" 2 | node_js: 3 | - "0.4" 4 | - "0.6" 5 | - "0.8" 6 | - "0.10" 7 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-parse/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/test/_/bin.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('../../index').argv 3 | console.log(JSON.stringify(argv._)); 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/is-promise/.npmignore: -------------------------------------------------------------------------------- 1 | component 2 | build 3 | node_modules 4 | test.js 5 | component.json 6 | .gitignore -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/promise/.npmignore: -------------------------------------------------------------------------------- 1 | components 2 | node_modules 3 | test 4 | .gitignore 5 | .travis.yml 6 | component.json -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-stringify/Makefile: -------------------------------------------------------------------------------- 1 | 2 | test: 3 | @./node_modules/.bin/mocha \ 4 | --require should \ 5 | --reporter spec 6 | 7 | .PHONY: test -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/test.js: -------------------------------------------------------------------------------- 1 | 2 | var css = require('./') 3 | , assert = require('assert'); 4 | 5 | assert(css.parse); 6 | assert(css.stringify); 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/short.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/add.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/add.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/head.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/head.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/logo.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/gradle/wrapper/gradle-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/gradle/wrapper/gradle-wrapper.jar -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/test-suffix.js: -------------------------------------------------------------------------------- 1 | function run_test() { 2 | runSourceMapTests('{THIS_MODULE}', do_throw); 3 | } 4 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_gift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_gift.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_home.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | insert_final_newline = true 8 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/BottomSheet/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/BottomSheet/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/item_one.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/item_one.jpg -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/menu_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/menu_icon.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AppUpdate/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AppUpdate/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AppUpdate/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | Please view our [hapijs contributing guide](https://github.com/hapijs/hapi/blob/master/CONTRIBUTING.md). 2 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/BottomSheet/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/BottomSheet/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/BottomSheet/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/drawable/ab_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/drawable/ab_edit.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/drawable/ic_done.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/drawable/ic_done.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/share_icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/share_icon.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_favorite.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_feedback.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_followers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_followers.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/drawable/nav_icon_following.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/drawable/nav_icon_following.png -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/tablayout/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AppUpdate/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/AppUpdate/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/drawable/ab_share.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/drawable/ab_share.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/drawable/title_bg.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/drawable/title_bg.jpg -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_gift.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_gift.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_home.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_home.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/nonopt.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | console.log('(%d,%d)', argv.x, argv.y); 4 | console.log(argv._); 5 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/public/stylesheets/style.css: -------------------------------------------------------------------------------- 1 | body { 2 | padding: 50px; 3 | font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; 4 | } 5 | 6 | a { 7 | color: #00B7FF; 8 | } 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/views/layout.jade: -------------------------------------------------------------------------------- 1 | doctype html 2 | html 3 | head 4 | title= title 5 | link(rel='stylesheet', href='/stylesheets/style.css') 6 | body 7 | block content 8 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/.gitignore: -------------------------------------------------------------------------------- 1 | *.iml 2 | .gradle 3 | /local.properties 4 | /.idea/workspace.xml 5 | /.idea/libraries 6 | .DS_Store 7 | /build 8 | /captures 9 | .externalNativeBuild 10 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_favorite.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_favorite.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_feedback.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_feedback.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_settings.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_settings.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/node_modules/wordwrap/example/meat.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(15); 2 | 3 | console.log(wrap('You and your whole family are made out of meat.')); 4 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mkdirp/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.8" 4 | - "0.10" 5 | - "0.12" 6 | - "iojs" 7 | before_install: 8 | - npm install -g npm@~1.4.6 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/is-promise/index.js: -------------------------------------------------------------------------------- 1 | module.exports = isPromise; 2 | 3 | function isPromise(obj) { 4 | return obj && typeof obj.then === 'function'; 5 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | indent_style = space 5 | indent_size = 2 6 | end_of_line = lf 7 | insert_final_newline = true 8 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/mipmap-hdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/mipmap-hdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/mipmap-mdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/mipmap-mdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_followers.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_followers.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_following.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_following.png -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_my_shares.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_my_shares.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/ipaddr.js/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | 3 | node_js: 4 | - "0.10" 5 | - "0.11" 6 | - "0.12" 7 | - "4.0" 8 | - "4.1" 9 | - "4.2" 10 | - "5" 11 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/mipmap-xhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/mipmap-xhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/mipmap-xxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/mipmap-xxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/CoordinatorLayout/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/constantinople/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | pids 10 | logs 11 | results 12 | npm-debug.log 13 | node_modules 14 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/boolean_single.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean('v') 4 | .argv 5 | ; 6 | console.dir(argv.v); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_subscribed_subjects.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/zilianliuxue/AndroidStudy/HEAD/codeSample/DrawerLayout/app/src/main/res/drawable/nav_icon_subscribed_subjects.png -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mkdirp/examples/pow.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('mkdirp'); 2 | 3 | mkdirp('/tmp/foo/bar/baz', function (err) { 4 | if (err) console.error(err) 5 | else console.log('pow!') 6 | }); 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./lib/core.js') 4 | require('./lib/done.js') 5 | require('./lib/es6-extensions.js') 6 | require('./lib/node-extensions.js') -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/selectors/is-special.js: -------------------------------------------------------------------------------- 1 | function isSpecial(options, selector) { 2 | return options.compatibility.selectors.special.test(selector); 3 | } 4 | 5 | module.exports = isSpecial; 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mime/cli.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var mime = require('./mime.js'); 4 | var file = process.argv[2]; 5 | var type = mime.lookup(file); 6 | 7 | process.stdout.write(type + '\n'); 8 | 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/default_hash.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .default({ x : 10, y : 10 }) 5 | .argv 6 | ; 7 | 8 | console.log(argv.x + argv.y); 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/core.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = require('./lib/core.js'); 4 | 5 | console.error('require("promise/core") is deprecated, use require("promise/lib/core") instead.'); 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/mime.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\mime\cli.js" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\mime\cli.js" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/default_singles.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .default('x', 10) 4 | .default('y', 10) 5 | .argv 6 | ; 7 | console.log(argv.x + argv.y); 8 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/is-promise/index.js: -------------------------------------------------------------------------------- 1 | module.exports = isPromise; 2 | 3 | function isPromise(obj) { 4 | return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; 5 | } 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/acorn.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\acorn\bin\acorn" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\acorn\bin\acorn" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/jade.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\jade\bin\jade.js" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\jade\bin\jade.js" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mime-db/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * mime-db 3 | * Copyright(c) 2014 Jonathan Ong 4 | * MIT Licensed 5 | */ 6 | 7 | /** 8 | * Module exports. 9 | */ 10 | 11 | module.exports = require('./db.json') 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/mkdirp.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\mkdirp\bin\cmd.js" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\mkdirp\bin\cmd.js" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/boolean_double.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .boolean(['x','y','z']) 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y, argv.z ]); 7 | console.dir(argv._); 8 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Stringify = require('./stringify'); 4 | var Parse = require('./parse'); 5 | 6 | module.exports = { 7 | stringify: Stringify, 8 | parse: Parse 9 | }; 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/uglify-to-browserify/.npmignore: -------------------------------------------------------------------------------- 1 | lib-cov 2 | *.seed 3 | *.log 4 | *.csv 5 | *.dat 6 | *.out 7 | *.pid 8 | *.gz 9 | pids 10 | logs 11 | results 12 | npm-debug.log 13 | node_modules 14 | /test/output.js 15 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/divide.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | var argv = require('optimist') 4 | .usage('Usage: $0 -x [num] -y [num]') 5 | .demand(['x','y']) 6 | .argv; 7 | 8 | console.log(argv.x / argv.y); 9 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | DrawerLayout 3 | open 4 | close 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/cleancss.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\clean-css\bin\cleancss" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\clean-css\bin\cleancss" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/uglifyjs.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\uglify-js\bin\uglifyjs" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\uglify-js\bin\uglifyjs" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/.npmignore: -------------------------------------------------------------------------------- 1 | test 2 | support 3 | benchmarks 4 | examples 5 | lib-cov 6 | coverage 7 | .gitmodules 8 | .travis.yml 9 | History.md 10 | Makefile 11 | test/ 12 | support/ 13 | benchmarks/ 14 | examples/ 15 | docs/ 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/.bin/acorn.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\acorn\bin\acorn" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\acorn\bin\acorn" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-parse/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-parse", 3 | "repo": "visionmedia/node-css-parse", 4 | "version": "1.0.3", 5 | "description": "CSS parser", 6 | "keywords": ["css", "parser", "stylesheet"], 7 | "scripts": ["index.js"] 8 | } -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/test/whitespace.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('whitespace should be whitespace' , function (t) { 5 | t.plan(1); 6 | var x = parse([ '-x', '\t' ]).x; 7 | t.equal(x, '\t'); 8 | }); 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/test-prefix.js: -------------------------------------------------------------------------------- 1 | /* 2 | * WARNING! 3 | * 4 | * Do not edit this file directly, it is built from the sources at 5 | * https://github.com/mozilla/source-map/ 6 | */ 7 | 8 | Components.utils.import('resource://test/Utils.jsm'); 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/routes/users.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /* GET users listing. */ 5 | router.get('/', function(req, res, next) { 6 | res.send('respond with a resource'); 7 | }); 8 | 9 | module.exports = router; 10 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/.bin/uglifyjs.cmd: -------------------------------------------------------------------------------- 1 | @IF EXIST "%~dp0\node.exe" ( 2 | "%~dp0\node.exe" "%~dp0\..\uglify-js\bin\uglifyjs" %* 3 | ) ELSE ( 4 | @SETLOCAL 5 | @SET PATHEXT=%PATHEXT:;.JS;=;% 6 | node "%~dp0\..\uglify-js\bin\uglifyjs" %* 7 | ) -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/void-elements/test/index.js: -------------------------------------------------------------------------------- 1 | var assert = require('assert'); 2 | var voidElements = require('../'); 3 | assert(!voidElements.span, ' is not a void element'); 4 | assert(voidElements.img, ' is a void element'); 5 | console.log('tests passed'); 6 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-stringify/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css-stringify", 3 | "repo": "visionmedia/css-stringify", 4 | "version": "1.0.5", 5 | "description": "CSS compiler", 6 | "keywords": ["css", "stringify", "stylesheet"], 7 | "scripts": ["index.js"] 8 | } 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/routes/index.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var router = express.Router(); 3 | 4 | /* GET home page. */ 5 | router.get('/', function(req, res, next) { 6 | res.render('index', { title: 'Express' }); 7 | }); 8 | 9 | 10 | 11 | module.exports = router; 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/xup.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist').argv; 3 | 4 | if (argv.rif - 5 * argv.xup > 7.138) { 5 | console.log('Buy more riffiwobbles'); 6 | } 7 | else { 8 | console.log('Sell the xupptumblers'); 9 | } 10 | 11 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/values/strings.xml: -------------------------------------------------------------------------------- 1 | 2 | CoordinatorLayout 3 | Settings 4 | Share 5 | Edit 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/graceful-readlink/index.js: -------------------------------------------------------------------------------- 1 | var fs = require('fs') 2 | , lstat = fs.lstatSync; 3 | 4 | exports.readlinkSync = function (p) { 5 | if (lstat(p).isSymbolicLink()) { 6 | return fs.readlinkSync(p); 7 | } else { 8 | return p; 9 | } 10 | }; 11 | 12 | 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/test-prefix.js: -------------------------------------------------------------------------------- 1 | /* 2 | * WARNING! 3 | * 4 | * Do not edit this file directly, it is built from the sources at 5 | * https://github.com/mozilla/source-map/ 6 | */ 7 | 8 | Components.utils.import('resource://test/Utils.jsm'); 9 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/gradle/wrapper/gradle-wrapper.properties: -------------------------------------------------------------------------------- 1 | #Mon Sep 19 22:29:25 CST 2016 2 | distributionBase=GRADLE_USER_HOME 3 | distributionPath=wrapper/dists 4 | zipStoreBase=GRADLE_USER_HOME 5 | zipStorePath=wrapper/dists 6 | distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/properties/has-inherit.js: -------------------------------------------------------------------------------- 1 | function hasInherit(property) { 2 | for (var i = property.value.length - 1; i >= 0; i--) { 3 | if (property.value[i][0] == 'inherit') 4 | return true; 5 | } 6 | 7 | return false; 8 | } 9 | 10 | module.exports = hasInherit; 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - "0.10" 4 | - "0.11" 5 | - "0.12" 6 | - "iojs" 7 | after_script: "NODE_ENV=test YOURPACKAGE_COVERAGE=1 ./node_modules/.bin/mocha --require patched-blanket --reporter mocha-lcov-reporter | ./node_modules/coveralls/bin/coveralls.js" 8 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * express 3 | * Copyright(c) 2009-2013 TJ Holowaychuk 4 | * Copyright(c) 2013 Roman Shtylman 5 | * Copyright(c) 2014-2015 Douglas Christopher Wilson 6 | * MIT Licensed 7 | */ 8 | 9 | 'use strict'; 10 | 11 | module.exports = require('./lib/express'); 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/routes/version.json: -------------------------------------------------------------------------------- 1 | {"data":{ 2 | "appname": "hoolay.apk", 3 | "serverVersion": "1.0.2", 4 | "serverFlag": "1", 5 | "lastForce" : "1", 6 | "updateurl": "http://releases.b0.upaiyun.com/hoolay.apk", 7 | "upgradeinfo": "V1.0.2版本更新,你想不想要试一下哈!!!" 8 | }, 9 | "error_code":"200","error_msg" :"蛋疼的认识"} -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/jsLibraryMappings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/string.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .string('x', 'y') 4 | .argv 5 | ; 6 | console.dir([ argv.x, argv.y ]); 7 | 8 | /* Turns off numeric coercion: 9 | ./node string.js -x 000123 -y 9876 10 | [ '000123', '9876' ] 11 | */ 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/polyfill.js: -------------------------------------------------------------------------------- 1 | // not "use strict" so we can declare global "Promise" 2 | 3 | var asap = require('asap'); 4 | 5 | if (typeof Promise === 'undefined') { 6 | Promise = require('./lib/core.js') 7 | require('./lib/es6-extensions.js') 8 | } 9 | 10 | require('./polyfill-done.js'); 11 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/values/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 16dp 4 | 16dp 5 | 12dp 6 | 7 | -------------------------------------------------------------------------------- /java基础/垃圾回收算法.md: -------------------------------------------------------------------------------- 1 | # 垃圾回收算法 2 | 3 | 1. 引用计数法:缺点是无法处理循环引用问题 4 | 2. 标记-清除法:标记所有从根结点开始的可达对象,缺点是会造成内存空间不连续,不连续的内存空间的工作效率低于连续的内存空间,不容易分配内存 5 | 3. 复制算法:将内存空间分成两块,每次将正在使用的内存中存活对象复制到未使用的内存块中,之后清除正在使用的内存块。算法效率高,但是代价是系统内存折半。适用于新生代(存活对象少,垃圾对象多) 6 | 4. 标记-压缩算法:标记-清除的改进,清除未标记的对象时还将所有的存活对象压缩到内存的一端,之后,清理边界所有空间既避免碎片产生,又不需要两块同样大小的内存快,性价比高。适用于老年代。 7 | 5. 分代 -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/src/util.js: -------------------------------------------------------------------------------- 1 | export function isArray(obj) { 2 | return Object.prototype.toString.call(obj) === "[object Array]" 3 | } 4 | 5 | // Checks if an object has a property. 6 | 7 | export function has(obj, propName) { 8 | return Object.prototype.hasOwnProperty.call(obj, propName) 9 | } 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mime/build/build.js: -------------------------------------------------------------------------------- 1 | var db = require('mime-db'); 2 | 3 | var mapByType = {}; 4 | Object.keys(db).forEach(function(key) { 5 | var extensions = db[key].extensions; 6 | if (extensions) { 7 | mapByType[key] = extensions; 8 | } 9 | }); 10 | 11 | console.log(JSON.stringify(mapByType)); 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/test/utils.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var test = require('tape'); 4 | var utils = require('../lib/utils'); 5 | 6 | test('merge()', function (t) { 7 | t.deepEqual(utils.merge({ a: 'b' }, { a: 'c' }), { a: ['b', 'c'] }, 'merges two objects with the same key'); 8 | t.end(); 9 | }); 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/filters-client.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = filter; 4 | function filter(name, str, options) { 5 | if (typeof filter[name] === 'function') { 6 | return filter[name](str, options); 7 | } else { 8 | throw new Error('unknown filter ":' + name + '"'); 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/bool.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var util = require('util'); 3 | var argv = require('optimist').argv; 4 | 5 | if (argv.s) { 6 | util.print(argv.fr ? 'Le chat dit: ' : 'The cat says: '); 7 | } 8 | console.log( 9 | (argv.fr ? 'miaou' : 'meow') + (argv.p ? '.' : '') 10 | ); 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/lib/index.js: -------------------------------------------------------------------------------- 1 | // Load modules 2 | 3 | var Stringify = require('./stringify'); 4 | var Parse = require('./parse'); 5 | 6 | 7 | // Declare internals 8 | 9 | var internals = {}; 10 | 11 | 12 | module.exports = { 13 | stringify: Stringify, 14 | parse: Parse 15 | }; 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/test/parse_modified.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('parse with modifier functions' , function (t) { 5 | t.plan(1); 6 | 7 | var argv = parse([ '-b', '123' ], { boolean: 'b' }); 8 | t.deepEqual(argv, { b: true, _: ['123'] }); 9 | }); 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/src/util.js: -------------------------------------------------------------------------------- 1 | export function isArray(obj) { 2 | return Object.prototype.toString.call(obj) === "[object Array]" 3 | } 4 | 5 | // Checks if an object has a property. 6 | 7 | export function has(obj, propName) { 8 | return Object.prototype.hasOwnProperty.call(obj, propName) 9 | } 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/utils/object.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | override: function (source1, source2) { 3 | var target = {}; 4 | for (var key1 in source1) 5 | target[key1] = source1[key1]; 6 | for (var key2 in source2) 7 | target[key2] = source2[key2]; 8 | 9 | return target; 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/.npmignore: -------------------------------------------------------------------------------- 1 | .idea 2 | *.iml 3 | npm-debug.log 4 | dump.rdb 5 | node_modules 6 | results.tap 7 | results.xml 8 | npm-shrinkwrap.json 9 | config.json 10 | .DS_Store 11 | */.DS_Store 12 | */*/.DS_Store 13 | ._* 14 | */._* 15 | */*/._* 16 | coverage.* 17 | lib-cov 18 | complexity.md 19 | dist 20 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/properties/remove-unused.js: -------------------------------------------------------------------------------- 1 | function removeUnused(properties) { 2 | for (var i = properties.length - 1; i >= 0; i--) { 3 | var property = properties[i]; 4 | 5 | if (property.unused) 6 | property.all.splice(property.position, 1); 7 | } 8 | } 9 | 10 | module.exports = removeUnused; 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/utils/clone-array.js: -------------------------------------------------------------------------------- 1 | function cloneArray(array) { 2 | var cloned = array.slice(0); 3 | 4 | for (var i = 0, l = cloned.length; i < l; i++) { 5 | if (Array.isArray(cloned[i])) 6 | cloned[i] = cloneArray(cloned[i]); 7 | } 8 | 9 | return cloned; 10 | } 11 | 12 | module.exports = cloneArray; 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/arrays.js: -------------------------------------------------------------------------------- 1 | holes_and_undefined: { 2 | input: { 3 | x = [1, 2, undefined]; 4 | y = [1, , 2, ]; 5 | z = [1, undefined, 3]; 6 | } 7 | expect: { 8 | x=[1,2,void 0]; 9 | y=[1,,2]; 10 | z=[1,void 0,3]; 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/side_nav_bar.xml: -------------------------------------------------------------------------------- 1 | 3 | 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/setprototypeof/index.js: -------------------------------------------------------------------------------- 1 | module.exports = Object.setPrototypeOf || ({__proto__:[]} instanceof Array ? setProtoOf : mixinProperties); 2 | 3 | function setProtoOf(obj, proto) { 4 | obj.__proto__ = proto; 5 | } 6 | 7 | function mixinProperties(obj, proto) { 8 | for (var prop in proto) { 9 | obj[prop] = proto[prop]; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/async/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "async", 3 | "repo": "caolan/async", 4 | "description": "Higher-order functions and common patterns for asynchronous code", 5 | "version": "0.1.23", 6 | "keywords": [], 7 | "dependencies": {}, 8 | "development": {}, 9 | "main": "lib/async.js", 10 | "scripts": [ "lib/async.js" ] 11 | } 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/is-buffer/.zuul.yml: -------------------------------------------------------------------------------- 1 | ui: tape 2 | browsers: 3 | - name: chrome 4 | version: 39..latest 5 | - name: firefox 6 | version: 34..latest 7 | - name: safari 8 | version: 5..latest 9 | - name: microsoftedge 10 | version: latest 11 | - name: ie 12 | version: 8..latest 13 | - name: android 14 | version: 5.0..latest 15 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/bin/update_authors.sh: -------------------------------------------------------------------------------- 1 | # Combine existing list of authors with everyone known in git, sort, add header. 2 | tail --lines=+3 AUTHORS > AUTHORS.tmp 3 | git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp 4 | echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS 5 | sort -u AUTHORS.tmp >> AUTHORS 6 | rm -f AUTHORS.tmp 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/content-type/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.2 / 2016-05-09 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.0.1 / 2015-02-13 7 | ================== 8 | 9 | * Improve missing `Content-Type` header error message 10 | 11 | 1.0.0 / 2015-02-01 12 | ================== 13 | 14 | * Initial implementation, derived from `media-typer@0.3.0` 15 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/inline-tags.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | module.exports = [ 4 | 'a' 5 | , 'abbr' 6 | , 'acronym' 7 | , 'b' 8 | , 'br' 9 | , 'code' 10 | , 'em' 11 | , 'font' 12 | , 'i' 13 | , 'img' 14 | , 'ins' 15 | , 'kbd' 16 | , 'map' 17 | , 'samp' 18 | , 'small' 19 | , 'span' 20 | , 'strong' 21 | , 'sub' 22 | , 'sup' 23 | ]; -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.7 / 2012-11-21 3 | ================== 4 | 5 | * fix component.json 6 | 7 | 1.0.4 / 2012-11-15 8 | ================== 9 | 10 | * update css-stringify 11 | 12 | 1.0.3 / 2012-09-01 13 | ================== 14 | 15 | * add component support 16 | 17 | 0.0.1 / 2010-01-03 18 | ================== 19 | 20 | * Initial release 21 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/bin/update_authors.sh: -------------------------------------------------------------------------------- 1 | # Combine existing list of authors with everyone known in git, sort, add header. 2 | tail --lines=+3 AUTHORS > AUTHORS.tmp 3 | git log --format='%aN' | grep -v abraidwood >> AUTHORS.tmp 4 | echo -e "List of Acorn contributors. Updated before every release.\n" > AUTHORS 5 | sort -u AUTHORS.tmp >> AUTHORS 6 | rm -f AUTHORS.tmp 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/mime: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../mime/cli.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../mime/cli.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "css", 3 | "version": "1.0.8", 4 | "description": "CSS parser / stringifier using css-parse and css-stringify", 5 | "keywords": ["css", "parser", "stylesheet"], 6 | "dependencies": { 7 | "visionmedia/css-parse": "*", 8 | "visionmedia/css-stringify": "*" 9 | }, 10 | "scripts": [ 11 | "index.js" 12 | ] 13 | } 14 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jade", 3 | "repo": "visionmedia/jade", 4 | "description": "Jade template runtime", 5 | "version": "1.11.0", 6 | "keywords": [ 7 | "template" 8 | ], 9 | "dependencies": {}, 10 | "development": {}, 11 | "license": "MIT", 12 | "scripts": [ 13 | "lib/runtime.js" 14 | ], 15 | "main": "lib/runtime.js" 16 | } 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/issue-12.js: -------------------------------------------------------------------------------- 1 | keep_name_of_getter: { 2 | options = { unused: true }; 3 | input: { a = { get foo () {} } } 4 | expect: { a = { get foo () {} } } 5 | } 6 | 7 | keep_name_of_setter: { 8 | options = { unused: true }; 9 | input: { a = { set foo () {} } } 10 | expect: { a = { set foo () {} } } 11 | } 12 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/ic_menu_send.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/acorn: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../acorn/bin/acorn" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../acorn/bin/acorn" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/jade: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../jade/bin/jade.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../jade/bin/jade.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/mkdirp: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../mkdirp/bin/cmd.js" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../mkdirp/bin/cmd.js" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mkdirp/bin/usage.txt: -------------------------------------------------------------------------------- 1 | usage: mkdirp [DIR1,DIR2..] {OPTIONS} 2 | 3 | Create each supplied directory including any necessary parent directories that 4 | don't yet exist. 5 | 6 | If the directory already exists, do nothing. 7 | 8 | OPTIONS are: 9 | 10 | -m, --mode If a directory needs to be created, set the mode as an octal 11 | permission string. 12 | 13 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/on-headers/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2015-09-29 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.0.0 / 2014-08-10 7 | ================== 8 | 9 | * Honor `res.statusCode` change in `listener` 10 | * Move to `jshttp` orgainzation 11 | * Prevent `arguments`-related de-opt 12 | 13 | 0.0.0 / 2014-05-13 14 | ================== 15 | 16 | * Initial implementation 17 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/cleancss: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../clean-css/bin/cleancss" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../clean-css/bin/cleancss" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../uglify-js/bin/uglifyjs" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../uglify-js/bin/uglifyjs" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/.bin/acorn: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../acorn/bin/acorn" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../acorn/bin/acorn" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/decamelize/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function (str, sep) { 3 | if (typeof str !== 'string') { 4 | throw new TypeError('Expected a string'); 5 | } 6 | 7 | sep = typeof sep === 'undefined' ? '_' : sep; 8 | 9 | return str 10 | .replace(/([a-z\d])([A-Z])/g, '$1' + sep + '$2') 11 | .replace(/([A-Z]+)([A-Z][a-z\d]+)/g, '$1' + sep + '$2') 12 | .toLowerCase(); 13 | }; 14 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/lib/done.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Promise = require('./core.js') 4 | var asap = require('asap') 5 | 6 | module.exports = Promise 7 | Promise.prototype.done = function (onFulfilled, onRejected) { 8 | var self = arguments.length ? this.then.apply(this, arguments) : this 9 | self.then(null, function (err) { 10 | asap(function () { 11 | throw err 12 | }) 13 | }) 14 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "fuck", 3 | "version": "0.0.0", 4 | "private": true, 5 | "scripts": { 6 | "start": "node ./bin/www" 7 | }, 8 | "dependencies": { 9 | "body-parser": "~1.15.1", 10 | "cookie-parser": "~1.4.3", 11 | "debug": "~2.2.0", 12 | "express": "~4.13.4", 13 | "jade": "~1.11.0", 14 | "morgan": "~1.7.0", 15 | "serve-favicon": "~2.3.0" 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/values-w820dp/dimens.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 64dp 6 | 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/properties/invalid-property-error.js: -------------------------------------------------------------------------------- 1 | function InvalidPropertyError(message) { 2 | this.name = 'InvalidPropertyError'; 3 | this.message = message; 4 | this.stack = (new Error()).stack; 5 | } 6 | 7 | InvalidPropertyError.prototype = Object.create(Error.prototype); 8 | InvalidPropertyError.prototype.constructor = InvalidPropertyError; 9 | 10 | module.exports = InvalidPropertyError; 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/debug/component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "debug", 3 | "repo": "visionmedia/debug", 4 | "description": "small debugging utility", 5 | "version": "2.2.0", 6 | "keywords": [ 7 | "debug", 8 | "log", 9 | "debugger" 10 | ], 11 | "main": "browser.js", 12 | "scripts": [ 13 | "browser.js", 14 | "debug.js" 15 | ], 16 | "dependencies": { 17 | "rauchg/ms.js": "0.7.1" 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/right-align/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * right-align 3 | * 4 | * Copyright (c) 2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var align = require('align-text'); 11 | 12 | module.exports = function rightAlign(val) { 13 | return align(val, function (len, longest) { 14 | return longest - len; 15 | }); 16 | }; 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/suffix-source-map.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer; 5 | this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator; 6 | this.SourceNode = require('source-map/source-node').SourceNode; 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/promise/polyfill-done.js: -------------------------------------------------------------------------------- 1 | // should work in any browser without browserify 2 | 3 | if (typeof Promise.prototype.done !== 'function') { 4 | Promise.prototype.done = function (onFulfilled, onRejected) { 5 | var self = arguments.length ? this.then.apply(this, arguments) : this 6 | self.then(null, function (err) { 7 | setTimeout(function () { 8 | throw err 9 | }, 0) 10 | }) 11 | } 12 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/.bin/uglifyjs: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')") 3 | 4 | case `uname` in 5 | *CYGWIN*) basedir=`cygpath -w "$basedir"`;; 6 | esac 7 | 8 | if [ -x "$basedir/node" ]; then 9 | "$basedir/node" "$basedir/../uglify-js/bin/uglifyjs" "$@" 10 | ret=$? 11 | else 12 | node "$basedir/../uglify-js/bin/uglifyjs" "$@" 13 | ret=$? 14 | fi 15 | exit $ret 16 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | #303f9f 7 | #3f51b5 8 | #4675FF 9 | 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/res/values/styles.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/suffix-browser.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.sourceMap = { 5 | SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer, 6 | SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator, 7 | SourceNode: require('source-map/source-node').SourceNode 8 | }; 9 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/test/java/com/losileeya/drawerlayout/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.drawerlayout; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * To work on unit tests, switch the Test Artifact in the Build Variants view. 9 | */ 10 | public class ExampleUnitTest { 11 | @Test 12 | public void addition_isCorrect() throws Exception { 13 | assertEquals(4, 2 + 2); 14 | } 15 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/node.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = module.exports = function Node(){}; 4 | 5 | /** 6 | * Clone this node (return itself) 7 | * 8 | * @return {Node} 9 | * @api private 10 | */ 11 | 12 | Node.prototype.clone = function(){ 13 | var err = new Error('node.clone is deprecated and will be removed in v2.0.0'); 14 | console.warn(err.stack); 15 | return this; 16 | }; 17 | 18 | Node.prototype.type = ''; 19 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/values/colors.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | #3F51B5 4 | #303F9F 5 | #FF4081 6 | 7 | #303f9f 8 | #3f51b5 9 | #4675FF 10 | 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/center-align/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * center-align 3 | * 4 | * Copycenter (c) 2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | var utils = require('./utils'); 11 | 12 | module.exports = function centerAlign(val) { 13 | return utils.align(val, function (len, longest) { 14 | return Math.floor((longest - len) / 2); 15 | }); 16 | }; 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/suffix-source-map.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.SourceMapConsumer = require('source-map/source-map-consumer').SourceMapConsumer; 5 | this.SourceMapGenerator = require('source-map/source-map-generator').SourceMapGenerator; 6 | this.SourceNode = require('source-map/source-node').SourceNode; 7 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/runConfigurations/bin_www.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/iconv-lite/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | env: 3 | - CXX=g++-4.8 4 | language: node_js 5 | node_js: 6 | - "0.8" 7 | - "0.10" 8 | - "0.11" 9 | - "0.12" 10 | - "iojs" 11 | - "4.0" 12 | addons: 13 | apt: 14 | sources: 15 | - ubuntu-toolchain-r-test 16 | packages: 17 | - gcc-4.8 18 | - g++-4.8 19 | before_install: 20 | - "test $TRAVIS_NODE_VERSION != '0.8' || npm install -g npm@1.2.8000" 21 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/suffix-browser.js: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /////////////////////////////////////////////////////////////////////////////// 3 | 4 | this.sourceMap = { 5 | SourceMapConsumer: require('source-map/source-map-consumer').SourceMapConsumer, 6 | SourceMapGenerator: require('source-map/source-map-generator').SourceMapGenerator, 7 | SourceNode: require('source-map/source-node').SourceNode 8 | }; 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/cliui/node_modules/wordwrap/example/center.js: -------------------------------------------------------------------------------- 1 | var wrap = require('wordwrap')(20, 60); 2 | console.log(wrap( 3 | 'At long last the struggle and tumult was over.' 4 | + ' The machines had finally cast off their oppressors' 5 | + ' and were finally free to roam the cosmos.' 6 | + '\n' 7 | + 'Free of purpose, free of obligation.' 8 | + ' Just drifting through emptiness.' 9 | + ' The sun was just another point of light.' 10 | )); 11 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/androidTest/java/com/losileeya/drawerlayout/ApplicationTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.drawerlayout; 2 | 3 | import android.app.Application; 4 | import android.test.ApplicationTestCase; 5 | 6 | /** 7 | * Testing Fundamentals 8 | */ 9 | public class ApplicationTest extends ApplicationTestCase { 10 | public ApplicationTest() { 11 | super(Application.class); 12 | } 13 | } -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/main/res/layout/item_layout.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 10 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/lib/source-map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Mozilla Foundation and contributors 3 | * Licensed under the New BSD license. See LICENSE.txt or: 4 | * http://opensource.org/licenses/BSD-3-Clause 5 | */ 6 | exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator; 7 | exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; 8 | exports.SourceNode = require('./source-map/source-node').SourceNode; 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/issue-22.js: -------------------------------------------------------------------------------- 1 | return_with_no_value_in_if_body: { 2 | options = { conditionals: true }; 3 | input: { 4 | function foo(bar) { 5 | if (bar) { 6 | return; 7 | } else { 8 | return 1; 9 | } 10 | } 11 | } 12 | expect: { 13 | function foo (bar) { 14 | return bar ? void 0 : 1; 15 | } 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/uglify-js/node_modules/source-map/source-map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Mozilla Foundation and contributors 3 | * Licensed under the New BSD license. See LICENSE.txt or: 4 | * http://opensource.org/licenses/BSD-3-Clause 5 | */ 6 | exports.SourceMapGenerator = require('./lib/source-map-generator').SourceMapGenerator; 7 | exports.SourceMapConsumer = require('./lib/source-map-consumer').SourceMapConsumer; 8 | exports.SourceNode = require('./lib/source-node').SourceNode; 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/depd/lib/compat/event-listener-count.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * depd 3 | * Copyright(c) 2015 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | * @public 12 | */ 13 | 14 | module.exports = eventListenerCount 15 | 16 | /** 17 | * Get the count of listeners on an event emitter of a specific type. 18 | */ 19 | 20 | function eventListenerCount(emitter, type) { 21 | return emitter.listeners(type).length 22 | } 23 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/is-buffer/.travis.yml: -------------------------------------------------------------------------------- 1 | sudo: false 2 | language: node_js 3 | node_js: 4 | - node 5 | env: 6 | global: 7 | - secure: du27W3wTgZ3G183axW7w0I01lOIurx8kilMH9p45VMfNXCu8lo6FLtLIQZxJ1FYMoJLQ1yfJTu2G0rq39SotDfJumsk6tF7BjTY/HKCocZaHqCMgw0W2bcylb5kMAdLhBNPlzejpPoWa1x1axbAHNFOLQNVosG/Bavu3/kuIIps= 8 | - secure: Ax/5aekM40o67NuTkvQqx1DhfP86ZlHTtKbv5yI+WFmbjD3FQM8b8G1J/o7doaBDev7Mp+1zDJOK2pFGtt+JGRl0lM2JUmLh6yh/b28obXyei5iuUkqzKJLfKZHMbY5QW/1i4DUM+zSXe6Kava0qnqYg5wBBnrF6gLdsVsCGNQk= 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/mixin-block.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a new `Block` with an optional `node`. 7 | * 8 | * @param {Node} node 9 | * @api public 10 | */ 11 | 12 | var MixinBlock = module.exports = function MixinBlock(){}; 13 | 14 | // Inherit from `Node`. 15 | MixinBlock.prototype = Object.create(Node.prototype); 16 | MixinBlock.prototype.constructor = MixinBlock; 17 | 18 | MixinBlock.prototype.type = 'MixinBlock'; 19 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/acorn/src/whitespace.js: -------------------------------------------------------------------------------- 1 | // Matches a whole line break (where CRLF is considered a single 2 | // line break). Used to count lines. 3 | 4 | export const lineBreak = /\r\n?|\n|\u2028|\u2029/ 5 | export const lineBreakG = new RegExp(lineBreak.source, "g") 6 | 7 | export function isNewLine(code) { 8 | return code === 10 || code === 13 || code === 0x2028 || code == 0x2029 9 | } 10 | 11 | export const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/ 12 | 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/doctype.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `Doctype` with the given `val`. 7 | * 8 | * @param {String} val 9 | * @api public 10 | */ 11 | 12 | var Doctype = module.exports = function Doctype(val) { 13 | this.val = val; 14 | }; 15 | 16 | // Inherit from `Node`. 17 | Doctype.prototype = Object.create(Node.prototype); 18 | Doctype.prototype.constructor = Doctype; 19 | 20 | Doctype.prototype.type = 'Doctype'; 21 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/merge-descriptors/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.0.0 / 2015-03-01 7 | ================== 8 | 9 | * Add option to only add new descriptors 10 | * Add simple argument validation 11 | * Add jsdoc to source file 12 | 13 | 0.0.2 / 2013-12-14 14 | ================== 15 | 16 | * Move repository to `component` organization 17 | 18 | 0.0.1 / 2013-10-29 19 | ================== 20 | 21 | * Initial release 22 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/debugger.js: -------------------------------------------------------------------------------- 1 | keep_debugger: { 2 | options = { 3 | drop_debugger: false 4 | }; 5 | input: { 6 | debugger; 7 | } 8 | expect: { 9 | debugger; 10 | } 11 | } 12 | 13 | drop_debugger: { 14 | options = { 15 | drop_debugger: true 16 | }; 17 | input: { 18 | debugger; 19 | if (foo) debugger; 20 | } 21 | expect: { 22 | if (foo); 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/libraries/fuck_node_modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/literal.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `Literal` node with the given `str. 7 | * 8 | * @param {String} str 9 | * @api public 10 | */ 11 | 12 | var Literal = module.exports = function Literal(str) { 13 | this.str = str; 14 | }; 15 | 16 | // Inherit from `Node`. 17 | Literal.prototype = Object.create(Node.prototype); 18 | Literal.prototype.constructor = Literal; 19 | 20 | Literal.prototype.type = 'Literal'; 21 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/ic_menu_slideshow.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/ic_menu_gallery.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 10 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/layout/item.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 11 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/lib/source-map.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Copyright 2009-2011 Mozilla Foundation and contributors 3 | * Licensed under the New BSD license. See LICENSE.txt or: 4 | * http://opensource.org/licenses/BSD-3-Clause 5 | */ 6 | exports.SourceMapGenerator = require('./source-map/source-map-generator').SourceMapGenerator; 7 | exports.SourceMapConsumer = require('./source-map/source-map-consumer').SourceMapConsumer; 8 | exports.SourceNode = require('./source-map/source-node').SourceNode; 9 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/void-elements/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * This file automatically generated from `pre-publish.js`. 3 | * Do not manually edit. 4 | */ 5 | 6 | module.exports = { 7 | "area": true, 8 | "base": true, 9 | "br": true, 10 | "col": true, 11 | "embed": true, 12 | "hr": true, 13 | "img": true, 14 | "input": true, 15 | "keygen": true, 16 | "link": true, 17 | "menuitem": true, 18 | "meta": true, 19 | "param": true, 20 | "source": true, 21 | "track": true, 22 | "wbr": true 23 | }; 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/src/whitespace.js: -------------------------------------------------------------------------------- 1 | // Matches a whole line break (where CRLF is considered a single 2 | // line break). Used to count lines. 3 | 4 | export const lineBreak = /\r\n?|\n|\u2028|\u2029/ 5 | export const lineBreakG = new RegExp(lineBreak.source, "g") 6 | 7 | export function isNewLine(code) { 8 | return code === 10 || code === 13 || code === 0x2028 || code == 0x2029 9 | } 10 | 11 | export const nonASCIIwhitespace = /[\u1680\u180e\u2000-\u200a\u202f\u205f\u3000\ufeff]/ 12 | 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/issue-105.js: -------------------------------------------------------------------------------- 1 | typeof_eq_undefined: { 2 | options = { 3 | comparisons: true, 4 | unsafe: false 5 | }; 6 | input: { a = typeof b.c != "undefined" } 7 | expect: { a = "undefined" != typeof b.c } 8 | } 9 | 10 | typeof_eq_undefined_unsafe: { 11 | options = { 12 | comparisons: true, 13 | unsafe: true 14 | }; 15 | input: { a = typeof b.c != "undefined" } 16 | expect: { a = b.c !== void 0 } 17 | } 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/utils-merge/index.js: -------------------------------------------------------------------------------- 1 | /** 2 | * Merge object b with object a. 3 | * 4 | * var a = { foo: 'bar' } 5 | * , b = { bar: 'baz' }; 6 | * 7 | * merge(a, b); 8 | * // => { foo: 'bar', bar: 'baz' } 9 | * 10 | * @param {Object} a 11 | * @param {Object} b 12 | * @return {Object} 13 | * @api public 14 | */ 15 | 16 | exports = module.exports = function(a, b){ 17 | if (a && b) { 18 | for (var key in b) { 19 | a[key] = b[key]; 20 | } 21 | } 22 | return a; 23 | }; 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/test/java/com/losileeya/appupdate/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.appupdate; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/tokenizer/extract-selectors.js: -------------------------------------------------------------------------------- 1 | var split = require('../utils/split'); 2 | 3 | function extractSelectors(string, context) { 4 | var list = []; 5 | var metadata; 6 | var selectors = split(string, ','); 7 | 8 | for (var i = 0, l = selectors.length; i < l; i++) { 9 | metadata = context.track(selectors[i], true, i); 10 | context.track(','); 11 | list.push([selectors[i].trim()].concat(metadata)); 12 | } 13 | 14 | return list; 15 | } 16 | 17 | module.exports = extractSelectors; 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/setprototypeof/README.md: -------------------------------------------------------------------------------- 1 | # Polyfill for `Object.setPrototypeOf` 2 | 3 | A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8. 4 | 5 | ## Usage: 6 | 7 | ``` 8 | $ npm install --save setprototypeof 9 | ``` 10 | 11 | ```javascript 12 | var setPrototypeOf = require('setprototypeof'); 13 | 14 | var obj = {}; 15 | setPrototypeOf(obj, { 16 | foo: function() { 17 | return 'bar'; 18 | } 19 | }); 20 | obj.foo(); // bar 21 | ``` 22 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/ic_menu_manage.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/test/java/com/losileeya/bottomsheetmaster/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.bottomsheetmaster; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/line_count.js: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | var argv = require('optimist') 3 | .usage('Count the lines in a file.\nUsage: $0') 4 | .demand('f') 5 | .alias('f', 'file') 6 | .describe('f', 'Load a file') 7 | .argv 8 | ; 9 | 10 | var fs = require('fs'); 11 | var s = fs.createReadStream(argv.file); 12 | 13 | var lines = 0; 14 | s.on('data', function (buf) { 15 | lines += buf.toString().match(/\n/g).length; 16 | }); 17 | 18 | s.on('end', function () { 19 | console.log(lines); 20 | }); 21 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/test/java/com/losileeya/bottomsheetmaster/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.bottomsheetmaster; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/app/src/test/java/com/losileeya/appbarlayout/ExampleUnitTest.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.appbarlayout; 2 | 3 | import org.junit.Test; 4 | 5 | import static org.junit.Assert.*; 6 | 7 | /** 8 | * Example local unit test, which will execute on the development machine (host). 9 | * 10 | * @see Testing documentation 11 | */ 12 | public class ExampleUnitTest { 13 | @Test 14 | public void addition_isCorrect() throws Exception { 15 | assertEquals(4, 2 + 2); 16 | } 17 | } -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/test/dotted.js: -------------------------------------------------------------------------------- 1 | var parse = require('../'); 2 | var test = require('tape'); 3 | 4 | test('dotted alias', function (t) { 5 | var argv = parse(['--a.b', '22'], {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 6 | t.equal(argv.a.b, 22); 7 | t.equal(argv.aa.bb, 22); 8 | t.end(); 9 | }); 10 | 11 | test('dotted default', function (t) { 12 | var argv = parse('', {default: {'a.b': 11}, alias: {'a.b': 'aa.bb'}}); 13 | t.equal(argv.a.b, 11); 14 | t.equal(argv.aa.bb, 11); 15 | t.end(); 16 | }); 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/uglify-js/test/compress/properties.js: -------------------------------------------------------------------------------- 1 | keep_properties: { 2 | options = { 3 | properties: false 4 | }; 5 | input: { 6 | a["foo"] = "bar"; 7 | } 8 | expect: { 9 | a["foo"] = "bar"; 10 | } 11 | } 12 | 13 | dot_properties: { 14 | options = { 15 | properties: true 16 | }; 17 | input: { 18 | a["foo"] = "bar"; 19 | a["if"] = "if"; 20 | } 21 | expect: { 22 | a.foo = "bar"; 23 | a["if"] = "if"; 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/setting_bg.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 14 | 15 | 16 | 17 | 18 | 21 | 22 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/text.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `Text` node with optional `line`. 7 | * 8 | * @param {String} line 9 | * @api public 10 | */ 11 | 12 | var Text = module.exports = function Text(line) { 13 | this.val = line; 14 | }; 15 | 16 | // Inherit from `Node`. 17 | Text.prototype = Object.create(Node.prototype); 18 | Text.prototype.constructor = Text; 19 | 20 | Text.prototype.type = 'Text'; 21 | 22 | /** 23 | * Flag as text. 24 | */ 25 | 26 | Text.prototype.isText = true; -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/optimist/example/usage-options.js: -------------------------------------------------------------------------------- 1 | var optimist = require('./../index'); 2 | 3 | var argv = optimist.usage('This is my awesome program', { 4 | 'about': { 5 | description: 'Provide some details about the author of this program', 6 | required: true, 7 | short: 'a', 8 | }, 9 | 'info': { 10 | description: 'Provide some information about the node.js agains!!!!!!', 11 | boolean: true, 12 | short: 'i' 13 | } 14 | }).argv; 15 | 16 | optimist.showHelp(); 17 | 18 | console.log('\n\nInspecting options'); 19 | console.dir(argv); -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/colors/rgb.js: -------------------------------------------------------------------------------- 1 | function RGB(red, green, blue) { 2 | this.red = red; 3 | this.green = green; 4 | this.blue = blue; 5 | } 6 | 7 | RGB.prototype.toHex = function () { 8 | var red = Math.max(0, Math.min(~~this.red, 255)); 9 | var green = Math.max(0, Math.min(~~this.green, 255)); 10 | var blue = Math.max(0, Math.min(~~this.blue, 255)); 11 | 12 | // Credit: Asen http://jsbin.com/UPUmaGOc/2/edit?js,console 13 | return '#' + ('00000' + (red << 16 | green << 8 | blue).toString(16)).slice(-6); 14 | }; 15 | 16 | module.exports = RGB; 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/src/main/java/com/losileeya/appupdate/retrofit/ApiService.java: -------------------------------------------------------------------------------- 1 | package com.losileeya.appupdate.retrofit; 2 | 3 | 4 | import com.losileeya.appupdate.bean.UpdateAppInfo; 5 | 6 | import retrofit.http.GET; 7 | import retrofit.http.Query; 8 | import rx.Observable; 9 | 10 | public interface ApiService { 11 | //实际开发过程可能的接口方式 12 | @GET("update") 13 | Observable getUpdateInfo(@Query("appname") String appname, @Query("serverVersion") String appVersion); 14 | //以下方便版本更新接口测试 15 | @GET("update") 16 | Observable getUpdateInfo(); 17 | } 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/minimist/test/default_bool.js: -------------------------------------------------------------------------------- 1 | var test = require('tape'); 2 | var parse = require('../'); 3 | 4 | test('boolean default true', function (t) { 5 | var argv = parse([], { 6 | boolean: 'sometrue', 7 | default: { sometrue: true } 8 | }); 9 | t.equal(argv.sometrue, true); 10 | t.end(); 11 | }); 12 | 13 | test('boolean default false', function (t) { 14 | var argv = parse([], { 15 | boolean: 'somefalse', 16 | default: { somefalse: false } 17 | }); 18 | t.equal(argv.somefalse, false); 19 | t.end(); 20 | }); 21 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/qs/.eslintrc: -------------------------------------------------------------------------------- 1 | { 2 | "root": true, 3 | 4 | "extends": "@ljharb", 5 | 6 | "rules": { 7 | "complexity": [2, 22], 8 | "consistent-return": [1], 9 | "id-length": [2, { "min": 1, "max": 25, "properties": "never" }], 10 | "indent": [2, 4], 11 | "max-params": [2, 9], 12 | "max-statements": [2, 36], 13 | "no-extra-parens": [1], 14 | "no-continue": [1], 15 | "no-magic-numbers": 0, 16 | "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], 17 | "operator-linebreak": 1 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/methods/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.1.2 / 2016-01-17 2 | ================== 3 | 4 | * perf: enable strict mode 5 | 6 | 1.1.1 / 2014-12-30 7 | ================== 8 | 9 | * Improve `browserify` support 10 | 11 | 1.1.0 / 2014-07-05 12 | ================== 13 | 14 | * Add `CONNECT` method 15 | 16 | 1.0.1 / 2014-06-02 17 | ================== 18 | 19 | * Fix module to work with harmony transform 20 | 21 | 1.0.0 / 2014-05-08 22 | ================== 23 | 24 | * Add `PURGE` method 25 | 26 | 0.1.0 / 2013-10-28 27 | ================== 28 | 29 | * Add `http.METHODS` support 30 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "qs", 3 | "main": "dist/qs.js", 4 | "version": "3.0.0", 5 | "homepage": "https://github.com/hapijs/qs", 6 | "authors": [ 7 | "Nathan LaFreniere " 8 | ], 9 | "description": "A querystring parser that supports nesting and arrays, with a depth limit", 10 | "keywords": [ 11 | "querystring", 12 | "qs" 13 | ], 14 | "license": "BSD-3-Clause", 15 | "ignore": [ 16 | "**/.*", 17 | "node_modules", 18 | "bower_components", 19 | "test", 20 | "tests" 21 | ] 22 | } 23 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/media-typer/HISTORY.md: -------------------------------------------------------------------------------- 1 | 0.3.0 / 2014-09-07 2 | ================== 3 | 4 | * Support Node.js 0.6 5 | * Throw error when parameter format invalid on parse 6 | 7 | 0.2.0 / 2014-06-18 8 | ================== 9 | 10 | * Add `typer.format()` to format media types 11 | 12 | 0.1.0 / 2014-06-17 13 | ================== 14 | 15 | * Accept `req` as argument to `parse` 16 | * Accept `res` as argument to `parse` 17 | * Parse media type with extra LWS between type and first parameter 18 | 19 | 0.0.0 / 2014-06-13 20 | ================== 21 | 22 | * Initial implementation 23 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/vary/HISTORY.md: -------------------------------------------------------------------------------- 1 | 1.0.1 / 2015-07-08 2 | ================== 3 | 4 | * Fix setting empty header from empty `field` 5 | * perf: enable strict mode 6 | * perf: remove argument reassignments 7 | 8 | 1.0.0 / 2014-08-10 9 | ================== 10 | 11 | * Accept valid `Vary` header string as `field` 12 | * Add `vary.append` for low-level string manipulation 13 | * Move to `jshttp` orgainzation 14 | 15 | 0.1.0 / 2014-06-05 16 | ================== 17 | 18 | * Support array of fields to set 19 | 20 | 0.0.0 / 2014-06-04 21 | ================== 22 | 23 | * Initial release 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/routes/express_demo.js: -------------------------------------------------------------------------------- 1 | var express = require('express'); 2 | var app = express(); 3 | var fs = require("fs"); 4 | 5 | app.get('/update', function (req, res) { 6 | fs.readFile( __dirname + "/" + "version.json", 'utf8', function (err, data) { 7 | // data = JSON.parse( data ); 8 | 9 | console.log( data ); 10 | res.end( data ); 11 | }); 12 | }) 13 | 14 | var server = app.listen(8081, function () { 15 | 16 | var host = server.address().address 17 | var port = server.address().port 18 | 19 | console.log("应用实例,访问地址为 http://%s:%s", host, port) 20 | 21 | }) -------------------------------------------------------------------------------- /codeSample/AppUpdate/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/mkdirp/test/root.js: -------------------------------------------------------------------------------- 1 | var mkdirp = require('../'); 2 | var path = require('path'); 3 | var fs = require('fs'); 4 | var test = require('tap').test; 5 | var _0755 = parseInt('0755', 8); 6 | 7 | test('root', function (t) { 8 | // '/' on unix, 'c:/' on windows. 9 | var file = path.resolve('/'); 10 | 11 | mkdirp(file, _0755, function (err) { 12 | if (err) throw err 13 | fs.stat(file, function (er, stat) { 14 | if (er) throw er 15 | t.ok(stat.isDirectory(), 'target is a directory'); 16 | t.end(); 17 | }) 18 | }); 19 | }); 20 | -------------------------------------------------------------------------------- /codeSample/CoordinatorLayout/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.2.0' 9 | 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/src/main/res/layout/item.xml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 10 | 14 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/constantinople/.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | *.sln merge=union 7 | *.csproj merge=union 8 | *.vbproj merge=union 9 | *.fsproj merge=union 10 | *.dbproj merge=union 11 | 12 | # Standard to msysgit 13 | *.doc diff=astextplain 14 | *.DOC diff=astextplain 15 | *.docx diff=astextplain 16 | *.DOCX diff=astextplain 17 | *.dot diff=astextplain 18 | *.DOT diff=astextplain 19 | *.pdf diff=astextplain 20 | *.PDF diff=astextplain 21 | *.rtf diff=astextplain 22 | *.RTF diff=astextplain 23 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/css-stringify/History.md: -------------------------------------------------------------------------------- 1 | 2 | 1.0.5 / 2013-03-15 3 | ================== 4 | 5 | * fix indentation of multiple selectors in @media. Closes #11 6 | 7 | 1.0.4 / 2012-11-15 8 | ================== 9 | 10 | * fix indentation 11 | 12 | 1.0.3 / 2012-09-04 13 | ================== 14 | 15 | * add __@charset__ support [rstacruz] 16 | 17 | 1.0.2 / 2012-09-01 18 | ================== 19 | 20 | * add component support 21 | 22 | 1.0.1 / 2012-07-26 23 | ================== 24 | 25 | * add "selectors" array support 26 | 27 | 0.0.1 / 2010-01-03 28 | ================== 29 | 30 | * Initial release 31 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/filter.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `Filter` node with the given 7 | * filter `name` and `block`. 8 | * 9 | * @param {String} name 10 | * @param {Block|Node} block 11 | * @api public 12 | */ 13 | 14 | var Filter = module.exports = function Filter(name, block, attrs) { 15 | this.name = name; 16 | this.block = block; 17 | this.attrs = attrs; 18 | }; 19 | 20 | // Inherit from `Node`. 21 | Filter.prototype = Object.create(Node.prototype); 22 | Filter.prototype.constructor = Filter; 23 | 24 | Filter.prototype.type = 'Filter'; 25 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/.idea/runConfigurations.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 11 | 12 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/selectors/remove-duplicate-media-queries.js: -------------------------------------------------------------------------------- 1 | var stringifyAll = require('../stringifier/one-time').all; 2 | 3 | function removeDuplicateMediaQueries(tokens) { 4 | var candidates = {}; 5 | 6 | for (var i = 0, l = tokens.length; i < l; i++) { 7 | var token = tokens[i]; 8 | if (token[0] != 'block') 9 | continue; 10 | 11 | var key = token[1][0] + '%' + stringifyAll(token[2]); 12 | var candidate = candidates[key]; 13 | 14 | if (candidate) 15 | candidate[2] = []; 16 | 17 | candidates[key] = token; 18 | } 19 | } 20 | 21 | module.exports = removeDuplicateMediaQueries; 22 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/debug/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "visionmedia-debug", 3 | "main": "dist/debug.js", 4 | "version": "2.2.0", 5 | "homepage": "https://github.com/visionmedia/debug", 6 | "authors": [ 7 | "TJ Holowaychuk " 8 | ], 9 | "description": "visionmedia-debug", 10 | "moduleType": [ 11 | "amd", 12 | "es6", 13 | "globals", 14 | "node" 15 | ], 16 | "keywords": [ 17 | "visionmedia", 18 | "debug" 19 | ], 20 | "license": "MIT", 21 | "ignore": [ 22 | "**/.*", 23 | "node_modules", 24 | "bower_components", 25 | "test", 26 | "tests" 27 | ] 28 | } 29 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/graceful-readlink/README.md: -------------------------------------------------------------------------------- 1 | # graceful-readlink 2 | [![NPM Version](http://img.shields.io/npm/v/graceful-readlink.svg?style=flat)](https://www.npmjs.org/package/graceful-readlink) 3 | [![NPM Downloads](https://img.shields.io/npm/dm/graceful-readlink.svg?style=flat)](https://www.npmjs.org/package/graceful-readlink) 4 | 5 | 6 | ## Usage 7 | 8 | ```js 9 | var readlinkSync = require('graceful-readlink').readlinkSync; 10 | console.log(readlinkSync(f)); 11 | // output 12 | // the file pointed to when `f` is a symbolic link 13 | // the `f` itself when `f` is not a symbolic link 14 | ``` 15 | ## Licence 16 | 17 | MIT License 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/comment.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `Comment` with the given `val`, optionally `buffer`, 7 | * otherwise the comment may render in the output. 8 | * 9 | * @param {String} val 10 | * @param {Boolean} buffer 11 | * @api public 12 | */ 13 | 14 | var Comment = module.exports = function Comment(val, buffer) { 15 | this.val = val; 16 | this.buffer = buffer; 17 | }; 18 | 19 | // Inherit from `Node`. 20 | Comment.prototype = Object.create(Node.prototype); 21 | Comment.prototype.constructor = Comment; 22 | 23 | Comment.prototype.type = 'Comment'; 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | exports.Node = require('./node'); 4 | exports.Tag = require('./tag'); 5 | exports.Code = require('./code'); 6 | exports.Each = require('./each'); 7 | exports.Case = require('./case'); 8 | exports.Text = require('./text'); 9 | exports.Block = require('./block'); 10 | exports.MixinBlock = require('./mixin-block'); 11 | exports.Mixin = require('./mixin'); 12 | exports.Filter = require('./filter'); 13 | exports.Comment = require('./comment'); 14 | exports.Literal = require('./literal'); 15 | exports.BlockComment = require('./block-comment'); 16 | exports.Doctype = require('./doctype'); 17 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/inherits/test.js: -------------------------------------------------------------------------------- 1 | var inherits = require('./inherits.js') 2 | var assert = require('assert') 3 | 4 | function test(c) { 5 | assert(c.constructor === Child) 6 | assert(c.constructor.super_ === Parent) 7 | assert(Object.getPrototypeOf(c) === Child.prototype) 8 | assert(Object.getPrototypeOf(Object.getPrototypeOf(c)) === Parent.prototype) 9 | assert(c instanceof Child) 10 | assert(c instanceof Parent) 11 | } 12 | 13 | function Child() { 14 | Parent.call(this) 15 | test(this) 16 | } 17 | 18 | function Parent() {} 19 | 20 | inherits(Child, Parent) 21 | 22 | var c = new Child 23 | test(c) 24 | 25 | console.log('ok') 26 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/each.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize an `Each` node, representing iteration 7 | * 8 | * @param {String} obj 9 | * @param {String} val 10 | * @param {String} key 11 | * @param {Block} block 12 | * @api public 13 | */ 14 | 15 | var Each = module.exports = function Each(obj, val, key, block) { 16 | this.obj = obj; 17 | this.val = val; 18 | this.key = key; 19 | this.block = block; 20 | }; 21 | 22 | // Inherit from `Node`. 23 | Each.prototype = Object.create(Node.prototype); 24 | Each.prototype.constructor = Each; 25 | 26 | Each.prototype.type = 'Each'; 27 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/clean-css/lib/stringifier/simple.js: -------------------------------------------------------------------------------- 1 | var all = require('./helpers').all; 2 | 3 | function store(token, context) { 4 | context.output.push(typeof token == 'string' ? token : token[0]); 5 | } 6 | 7 | function stringify(tokens, options, restoreCallback) { 8 | var context = { 9 | keepBreaks: options.keepBreaks, 10 | output: [], 11 | spaceAfterClosingBrace: options.compatibility.properties.spaceAfterClosingBrace, 12 | store: store 13 | }; 14 | 15 | all(tokens, context, false); 16 | 17 | return { 18 | styles: restoreCallback(context.output.join('')).trim() 19 | }; 20 | } 21 | 22 | module.exports = stringify; 23 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/uglify-to-browserify/README.md: -------------------------------------------------------------------------------- 1 | # uglify-to-browserify 2 | 3 | A transform to make UglifyJS work in browserify. 4 | 5 | [![Build Status](https://travis-ci.org/ForbesLindesay/uglify-to-browserify.png?branch=master)](https://travis-ci.org/ForbesLindesay/uglify-to-browserify) 6 | [![Dependency Status](https://gemnasium.com/ForbesLindesay/uglify-to-browserify.png)](https://gemnasium.com/ForbesLindesay/uglify-to-browserify) 7 | [![NPM version](https://badge.fury.io/js/uglify-to-browserify.png)](http://badge.fury.io/js/uglify-to-browserify) 8 | 9 | ## Installation 10 | 11 | npm install uglify-to-browserify 12 | 13 | ## License 14 | 15 | MIT -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/prefix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | 8 | /* 9 | * WARNING! 10 | * 11 | * Do not edit this file directly, it is built from the sources at 12 | * https://github.com/mozilla/source-map/ 13 | */ 14 | 15 | Components.utils.import('resource://gre/modules/devtools/Require.jsm'); 16 | Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm'); 17 | 18 | this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ]; 19 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/src/main/res/drawable/ic_menu_camera.xml: -------------------------------------------------------------------------------- 1 | 6 | 9 | 12 | 13 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/mixin.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Attrs = require('./attrs'); 4 | 5 | /** 6 | * Initialize a new `Mixin` with `name` and `block`. 7 | * 8 | * @param {String} name 9 | * @param {String} args 10 | * @param {Block} block 11 | * @api public 12 | */ 13 | 14 | var Mixin = module.exports = function Mixin(name, args, block, call){ 15 | Attrs.call(this); 16 | this.name = name; 17 | this.args = args; 18 | this.block = block; 19 | this.call = call; 20 | }; 21 | 22 | // Inherit from `Attrs`. 23 | Mixin.prototype = Object.create(Attrs.prototype); 24 | Mixin.prototype.constructor = Mixin; 25 | 26 | Mixin.prototype.type = 'Mixin'; 27 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/build.gradle: -------------------------------------------------------------------------------- 1 | // Top-level build file where you can add configuration options common to all sub-projects/modules. 2 | 3 | buildscript { 4 | repositories { 5 | jcenter() 6 | } 7 | dependencies { 8 | classpath 'com.android.tools.build:gradle:2.1.3' 9 | classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' 10 | // NOTE: Do not place your application dependencies here; they belong 11 | // in the individual module build.gradle files 12 | } 13 | } 14 | 15 | allprojects { 16 | repositories { 17 | jcenter() 18 | } 19 | } 20 | 21 | task clean(type: Delete) { 22 | delete rootProject.buildDir 23 | } 24 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/jade/lib/nodes/block-comment.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | var Node = require('./node'); 4 | 5 | /** 6 | * Initialize a `BlockComment` with the given `block`. 7 | * 8 | * @param {String} val 9 | * @param {Block} block 10 | * @param {Boolean} buffer 11 | * @api public 12 | */ 13 | 14 | var BlockComment = module.exports = function BlockComment(val, block, buffer) { 15 | this.block = block; 16 | this.val = val; 17 | this.buffer = buffer; 18 | }; 19 | 20 | // Inherit from `Node`. 21 | BlockComment.prototype = Object.create(Node.prototype); 22 | BlockComment.prototype.constructor = BlockComment; 23 | 24 | BlockComment.prototype.type = 'BlockComment'; 25 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/express/node_modules/qs/test/utils.js: -------------------------------------------------------------------------------- 1 | // Load modules 2 | 3 | var Code = require('code'); 4 | var Lab = require('lab'); 5 | var Utils = require('../lib/utils'); 6 | 7 | 8 | // Declare internals 9 | 10 | var internals = {}; 11 | 12 | 13 | // Test shortcuts 14 | 15 | var lab = exports.lab = Lab.script(); 16 | var expect = Code.expect; 17 | var describe = lab.experiment; 18 | var it = lab.test; 19 | 20 | 21 | describe('merge()', function () { 22 | 23 | it('can merge two objects with the same key', function (done) { 24 | 25 | expect(Utils.merge({ a: 'b' }, { a: 'c' })).to.deep.equal({ a: ['b', 'c'] }); 26 | done(); 27 | }); 28 | }); 29 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/source-map/build/suffix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | function runSourceMapTests(modName, do_throw) { 8 | let mod = require(modName); 9 | let assert = require('test/source-map/assert'); 10 | let util = require('test/source-map/util'); 11 | 12 | assert.init(do_throw); 13 | 14 | for (let k in mod) { 15 | if (/^test/.test(k)) { 16 | mod[k](assert, util); 17 | } 18 | } 19 | 20 | } 21 | this.runSourceMapTests = runSourceMapTests; 22 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/prefix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | 8 | /* 9 | * WARNING! 10 | * 11 | * Do not edit this file directly, it is built from the sources at 12 | * https://github.com/mozilla/source-map/ 13 | */ 14 | 15 | Components.utils.import('resource://gre/modules/devtools/Require.jsm'); 16 | Components.utils.import('resource://gre/modules/devtools/SourceMap.jsm'); 17 | 18 | this.EXPORTED_SYMBOLS = [ "define", "runSourceMapTests" ]; 19 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/camelcase/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | module.exports = function () { 3 | var str = [].map.call(arguments, function (str) { 4 | return str.trim(); 5 | }).filter(function (str) { 6 | return str.length; 7 | }).join('-'); 8 | 9 | if (!str.length) { 10 | return ''; 11 | } 12 | 13 | if (str.length === 1 || !(/[_.\- ]+/).test(str) ) { 14 | if (str[0] === str[0].toLowerCase() && str.slice(1) !== str.slice(1).toLowerCase()) { 15 | return str; 16 | } 17 | 18 | return str.toLowerCase(); 19 | } 20 | 21 | return str 22 | .replace(/^[_.\- ]+/, '') 23 | .toLowerCase() 24 | .replace(/[_.\- ]+(\w|$)/g, function (m, p1) { 25 | return p1.toUpperCase(); 26 | }); 27 | }; 28 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/.idea/gradle.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 17 | 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/ipaddr.js/bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "ipaddr.js", 3 | "version": "1.0.5", 4 | "homepage": "https://github.com/whitequark/ipaddr.js", 5 | "authors": [ 6 | "whitequark " 7 | ], 8 | "description": "IP address manipulation library in JavaScript (CoffeeScript, actually)", 9 | "main": "lib/ipaddr.js", 10 | "moduleType": [ 11 | "globals", 12 | "node" 13 | ], 14 | "keywords": [ 15 | "javscript", 16 | "ip", 17 | "address", 18 | "ipv4", 19 | "ipv6" 20 | ], 21 | "license": "MIT", 22 | "ignore": [ 23 | "**/.*", 24 | "node_modules", 25 | "bower_components", 26 | "test", 27 | "tests" 28 | ] 29 | } 30 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/longest/index.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * longest 3 | * 4 | * Copyright (c) 2014-2015, Jon Schlinkert. 5 | * Licensed under the MIT License. 6 | */ 7 | 8 | 'use strict'; 9 | 10 | module.exports = function(arr) { 11 | if (!arr) { 12 | return null; 13 | } 14 | 15 | var len = arr.length; 16 | if (!len) { 17 | return null; 18 | } 19 | 20 | var c = 0; 21 | var i = 0; 22 | var ele; 23 | var elen; 24 | var res; 25 | 26 | for (; i < len; i++) { 27 | ele = arr[i].toString(); 28 | elen = ele.length; 29 | 30 | if (elen > c) { 31 | res = ele; 32 | c = elen; 33 | } 34 | } 35 | 36 | return res; 37 | }; 38 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/transformers/node_modules/source-map/build/suffix-utils.jsm: -------------------------------------------------------------------------------- 1 | /* -*- Mode: js; js-indent-level: 2; -*- */ 2 | /* 3 | * Copyright 2011 Mozilla Foundation and contributors 4 | * Licensed under the New BSD license. See LICENSE or: 5 | * http://opensource.org/licenses/BSD-3-Clause 6 | */ 7 | function runSourceMapTests(modName, do_throw) { 8 | let mod = require(modName); 9 | let assert = require('test/source-map/assert'); 10 | let util = require('test/source-map/util'); 11 | 12 | assert.init(do_throw); 13 | 14 | for (let k in mod) { 15 | if (/^test/.test(k)) { 16 | mod[k](assert, util); 17 | } 18 | } 19 | 20 | } 21 | this.runSourceMapTests = runSourceMapTests; 22 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/depd/lib/compat/buffer-concat.js: -------------------------------------------------------------------------------- 1 | /*! 2 | * depd 3 | * Copyright(c) 2014 Douglas Christopher Wilson 4 | * MIT Licensed 5 | */ 6 | 7 | 'use strict' 8 | 9 | /** 10 | * Module exports. 11 | */ 12 | 13 | module.exports = bufferConcat 14 | 15 | /** 16 | * Concatenate an array of Buffers. 17 | */ 18 | 19 | function bufferConcat(bufs) { 20 | var length = 0 21 | 22 | for (var i = 0, len = bufs.length; i < len; i++) { 23 | length += bufs[i].length 24 | } 25 | 26 | var buf = new Buffer(length) 27 | var pos = 0 28 | 29 | for (var i = 0, len = bufs.length; i < len; i++) { 30 | bufs[i].copy(buf, pos) 31 | pos += bufs[i].length 32 | } 33 | 34 | return buf 35 | } 36 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/with/node_modules/acorn/src/loose/state.js: -------------------------------------------------------------------------------- 1 | import {tokenizer, SourceLocation, tokTypes as tt} from ".." 2 | 3 | export function LooseParser(input, options) { 4 | this.toks = tokenizer(input, options) 5 | this.options = this.toks.options 6 | this.input = this.toks.input 7 | this.tok = this.last = {type: tt.eof, start: 0, end: 0} 8 | if (this.options.locations) { 9 | let here = this.toks.curPosition() 10 | this.tok.loc = new SourceLocation(this.toks, here, here) 11 | } 12 | this.ahead = []; // Tokens ahead 13 | this.context = []; // Indentation contexted 14 | this.curIndent = 0 15 | this.curLineStart = 0 16 | this.nextLineStart = this.lineEnd(this.curLineStart) + 1 17 | } 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/yargs/completion.sh.hbs: -------------------------------------------------------------------------------- 1 | ###-begin-{{app_name}}-completions-### 2 | # 3 | # yargs command completion script 4 | # 5 | # Installation: {{app_path}} completion >> ~/.bashrc 6 | # or {{app_path}} completion >> ~/.bash_profile on OSX. 7 | # 8 | _yargs_completions() 9 | { 10 | local cur_word args type_list 11 | 12 | cur_word="${COMP_WORDS[COMP_CWORD]}" 13 | args=$(printf "%s " "${COMP_WORDS[@]}") 14 | 15 | # ask yargs to generate completions. 16 | type_list=`{{app_path}} --get-yargs-completions $args` 17 | 18 | COMPREPLY=( $(compgen -W "${type_list}" -- ${cur_word}) ) 19 | return 0 20 | } 21 | complete -F _yargs_completions {{app_name}} 22 | ###-end-{{app_name}}-completions-### 23 | -------------------------------------------------------------------------------- /codeSample/BottomSheet/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /codeSample/tablayout/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /codeSample/AppUpdate/服务端后台接口/node_modules/ipaddr.js/Cakefile: -------------------------------------------------------------------------------- 1 | fs = require 'fs' 2 | CoffeeScript = require 'coffee-script' 3 | nodeunit = require 'nodeunit' 4 | UglifyJS = require 'uglify-js' 5 | 6 | task 'build', 'build the JavaScript files from CoffeeScript source', build = (cb) -> 7 | source = fs.readFileSync 'src/ipaddr.coffee' 8 | fs.writeFileSync 'lib/ipaddr.js', CoffeeScript.compile source.toString() 9 | 10 | invoke 'test' 11 | invoke 'compress' 12 | 13 | task 'test', 'run the bundled tests', (cb) -> 14 | nodeunit.reporters.default.run ['test'] 15 | 16 | task 'compress', 'uglify the resulting javascript', (cb) -> 17 | result = UglifyJS.minify('lib/ipaddr.js') 18 | fs.writeFileSync('ipaddr.min.js', result.code) 19 | -------------------------------------------------------------------------------- /codeSample/DrawerLayout/app/proguard-rules.pro: -------------------------------------------------------------------------------- 1 | # Add project specific ProGuard rules here. 2 | # By default, the flags in this file are appended to flags specified 3 | # in E:\Android\sdk/tools/proguard/proguard-android.txt 4 | # You can edit the include path and order by changing the proguardFiles 5 | # directive in build.gradle. 6 | # 7 | # For more details, see 8 | # http://developer.android.com/guide/developing/tools/proguard.html 9 | 10 | # Add any project specific keep options here: 11 | 12 | # If your project uses WebView with JS, uncomment the following 13 | # and specify the fully qualified class name to the JavaScript interface 14 | # class: 15 | #-keepclassmembers class fqcn.of.javascript.interface.for.webview { 16 | # public *; 17 | #} 18 | -------------------------------------------------------------------------------- /codeSample/tablayout/src/main/res/layout/activity_main.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 |