From 2e375602c3b71a0e6bd9873b03b9f40864da11a4 Mon Sep 17 00:00:00 2001 From: Eric Douglas Date: Sat, 3 Oct 2015 22:45:01 -0300 Subject: [PATCH] Remove personal files --- .../README.md | 14 - .../src/00-problem-set.js | 44 - .../src/01-01-problem-set.js | 88 - .../src/01-02-bisection-method-problem-set.js | 49 - .../src/01-02-problem-set.js | 59 - .../src/02-lecture.js | 126 -- .../src/03-lecture.js | 149 -- .../src/node_modules/prompt/.jshintrc | 54 - .../src/node_modules/prompt/.npmignore | 3 - .../src/node_modules/prompt/.travis.yml | 10 - .../src/node_modules/prompt/CHANGELOG.md | 13 - .../src/node_modules/prompt/LICENSE | 19 - .../src/node_modules/prompt/README.md | 317 ---- .../src/node_modules/prompt/docs/docco.css | 194 --- .../src/node_modules/prompt/docs/prompt.html | 296 ---- .../prompt/examples/add-properties.js | 35 - .../prompt/examples/existing-properties.js | 35 - .../node_modules/prompt/examples/history.js | 44 - .../examples/nested-properties-prompt.js | 37 - .../prompt/examples/old-schema.js | 36 - .../prompt/examples/override-validation.js | 52 - .../node_modules/prompt/examples/password.js | 34 - .../prompt/examples/prompt-override.js | 36 - .../prompt/examples/property-prompt.js | 45 - .../prompt/examples/simple-prompt.js | 25 - .../prompt/examples/yes-or-no-prompt.js | 32 - .../src/node_modules/prompt/lib/prompt.js | 756 --------- .../prompt/node_modules/pkginfo/.npmignore | 2 - .../prompt/node_modules/pkginfo/LICENSE | 19 - .../prompt/node_modules/pkginfo/README.md | 86 - .../node_modules/pkginfo/docs/docco.css | 194 --- .../node_modules/pkginfo/docs/pkginfo.html | 101 -- .../pkginfo/examples/all-properties.js | 19 - .../pkginfo/examples/array-argument.js | 20 - .../pkginfo/examples/multiple-properties.js | 19 - .../pkginfo/examples/object-argument.js | 22 - .../pkginfo/examples/package.json | 10 - .../pkginfo/examples/single-property.js | 19 - .../pkginfo/examples/subdir/package.json | 11 - .../pkginfo/examples/target-dir.js | 20 - .../node_modules/pkginfo/lib/pkginfo.js | 136 -- .../prompt/node_modules/pkginfo/package.json | 54 - .../node_modules/pkginfo/test/pkginfo-test.js | 83 - .../prompt/node_modules/read/.npmignore | 2 - .../prompt/node_modules/read/LICENCE | 25 - .../prompt/node_modules/read/LICENSE | 15 - .../prompt/node_modules/read/README.md | 53 - .../node_modules/read/example/example.js | 13 - .../prompt/node_modules/read/lib/read.js | 113 -- .../read/node_modules/mute-stream/LICENSE | 15 - .../read/node_modules/mute-stream/README.md | 68 - .../read/node_modules/mute-stream/mute.js | 140 -- .../node_modules/mute-stream/package.json | 56 - .../node_modules/mute-stream/test/basic.js | 207 --- .../prompt/node_modules/read/package.json | 55 - .../prompt/node_modules/read/rs.js | 4 - .../prompt/node_modules/read/test/basic.js | 60 - .../prompt/node_modules/read/test/defaults.js | 60 - .../prompt/node_modules/read/test/many.js | 83 - .../node_modules/revalidator/.npmignore | 2 - .../node_modules/revalidator/.travis.yml | 11 - .../node_modules/revalidator/CHANGELOG.md | 25 - .../prompt/node_modules/revalidator/LICENSE | 179 --- .../prompt/node_modules/revalidator/README.md | 301 ---- .../revalidator/example/webservice.js | 204 --- .../revalidator/lib/revalidator.js | 427 ----- .../node_modules/revalidator/package.json | 57 - .../revalidator/test/validator-test.js | 421 ----- .../prompt/node_modules/utile/.npmignore | 4 - .../prompt/node_modules/utile/.travis.yml | 10 - .../prompt/node_modules/utile/CHANGELOG.md | 16 - .../prompt/node_modules/utile/LICENSE | 19 - .../prompt/node_modules/utile/README.md | 87 - .../prompt/node_modules/utile/lib/args.js | 46 - .../prompt/node_modules/utile/lib/base64.js | 44 - .../prompt/node_modules/utile/lib/file.js | 33 - .../prompt/node_modules/utile/lib/format.js | 25 - .../prompt/node_modules/utile/lib/index.js | 467 ------ .../utile/node_modules/.bin/mkdirp | 1 - .../node_modules/utile/node_modules/.bin/ncp | 1 - .../utile/node_modules/.bin/rimraf | 1 - .../utile/node_modules/async/LICENSE | 19 - .../utile/node_modules/async/README.md | 1425 ----------------- .../utile/node_modules/async/component.json | 11 - .../utile/node_modules/async/lib/async.js | 958 ----------- .../utile/node_modules/async/package.json | 60 - .../utile/node_modules/deep-equal/.travis.yml | 4 - .../utile/node_modules/deep-equal/LICENSE | 18 - .../node_modules/deep-equal/example/cmp.js | 11 - .../utile/node_modules/deep-equal/index.js | 94 -- .../deep-equal/lib/is_arguments.js | 20 - .../utile/node_modules/deep-equal/lib/keys.js | 9 - .../node_modules/deep-equal/package.json | 84 - .../node_modules/deep-equal/readme.markdown | 61 - .../utile/node_modules/deep-equal/test/cmp.js | 89 - .../utile/node_modules/i/.npmignore | 3 - .../utile/node_modules/i/.travis.yml | 9 - .../node_modules/utile/node_modules/i/LICENSE | 18 - .../utile/node_modules/i/README.md | 174 -- .../utile/node_modules/i/lib/defaults.js | 63 - .../utile/node_modules/i/lib/inflect.js | 11 - .../utile/node_modules/i/lib/inflections.js | 116 -- .../utile/node_modules/i/lib/methods.js | 233 --- .../utile/node_modules/i/lib/native.js | 26 - .../utile/node_modules/i/lib/util.js | 136 -- .../utile/node_modules/i/package.json | 79 - .../node_modules/i/test/inflector/cases.js | 209 --- .../i/test/inflector/inflections-test.js | 87 - .../i/test/inflector/methods-test.js | 342 ---- .../node_modules/i/test/utils/array-test.js | 39 - .../node_modules/i/test/utils/string-test.js | 88 - .../utile/node_modules/mkdirp/.travis.yml | 8 - .../utile/node_modules/mkdirp/LICENSE | 21 - .../utile/node_modules/mkdirp/bin/cmd.js | 33 - .../utile/node_modules/mkdirp/bin/usage.txt | 12 - .../utile/node_modules/mkdirp/examples/pow.js | 6 - .../utile/node_modules/mkdirp/index.js | 98 -- .../mkdirp/node_modules/minimist/.travis.yml | 4 - .../mkdirp/node_modules/minimist/LICENSE | 18 - .../node_modules/minimist/example/parse.js | 2 - .../mkdirp/node_modules/minimist/index.js | 187 --- .../mkdirp/node_modules/minimist/package.json | 67 - .../node_modules/minimist/readme.markdown | 73 - .../mkdirp/node_modules/minimist/test/dash.js | 24 - .../minimist/test/default_bool.js | 20 - .../node_modules/minimist/test/dotted.js | 16 - .../mkdirp/node_modules/minimist/test/long.js | 31 - .../node_modules/minimist/test/parse.js | 318 ---- .../minimist/test/parse_modified.js | 9 - .../node_modules/minimist/test/short.js | 67 - .../node_modules/minimist/test/whitespace.js | 8 - .../utile/node_modules/mkdirp/package.json | 60 - .../utile/node_modules/mkdirp/readme.markdown | 100 -- .../utile/node_modules/mkdirp/test/chmod.js | 41 - .../utile/node_modules/mkdirp/test/clobber.js | 38 - .../utile/node_modules/mkdirp/test/mkdirp.js | 28 - .../utile/node_modules/mkdirp/test/opts_fs.js | 29 - .../node_modules/mkdirp/test/opts_fs_sync.js | 27 - .../utile/node_modules/mkdirp/test/perm.js | 32 - .../node_modules/mkdirp/test/perm_sync.js | 36 - .../utile/node_modules/mkdirp/test/race.js | 37 - .../utile/node_modules/mkdirp/test/rel.js | 32 - .../utile/node_modules/mkdirp/test/return.js | 25 - .../node_modules/mkdirp/test/return_sync.js | 24 - .../utile/node_modules/mkdirp/test/root.js | 19 - .../utile/node_modules/mkdirp/test/sync.js | 32 - .../utile/node_modules/mkdirp/test/umask.js | 28 - .../node_modules/mkdirp/test/umask_sync.js | 32 - .../utile/node_modules/ncp/.npmignore | 4 - .../utile/node_modules/ncp/.travis.yml | 7 - .../utile/node_modules/ncp/LICENSE.md | 21 - .../utile/node_modules/ncp/README.md | 52 - .../utile/node_modules/ncp/bin/ncp | 48 - .../utile/node_modules/ncp/lib/ncp.js | 222 --- .../utile/node_modules/ncp/package.json | 58 - .../node_modules/ncp/test/fixtures/src/a | 1 - .../node_modules/ncp/test/fixtures/src/b | 1 - .../node_modules/ncp/test/fixtures/src/c | 0 .../node_modules/ncp/test/fixtures/src/d | 0 .../node_modules/ncp/test/fixtures/src/e | 0 .../node_modules/ncp/test/fixtures/src/f | 0 .../node_modules/ncp/test/fixtures/src/sub/a | 1 - .../node_modules/ncp/test/fixtures/src/sub/b | 0 .../utile/node_modules/ncp/test/ncp-test.js | 86 - .../utile/node_modules/rimraf/LICENSE | 15 - .../utile/node_modules/rimraf/README.md | 36 - .../utile/node_modules/rimraf/bin.js | 33 - .../rimraf/node_modules/glob/LICENSE | 15 - .../rimraf/node_modules/glob/README.md | 369 ----- .../rimraf/node_modules/glob/common.js | 237 --- .../rimraf/node_modules/glob/glob.js | 740 --------- .../glob/node_modules/inflight/.eslintrc | 17 - .../glob/node_modules/inflight/LICENSE | 15 - .../glob/node_modules/inflight/README.md | 37 - .../glob/node_modules/inflight/inflight.js | 44 - .../inflight/node_modules/wrappy/LICENSE | 15 - .../inflight/node_modules/wrappy/README.md | 36 - .../inflight/node_modules/wrappy/package.json | 52 - .../node_modules/wrappy/test/basic.js | 51 - .../inflight/node_modules/wrappy/wrappy.js | 33 - .../glob/node_modules/inflight/package.json | 61 - .../glob/node_modules/inflight/test.js | 97 -- .../glob/node_modules/inherits/LICENSE | 16 - .../glob/node_modules/inherits/README.md | 42 - .../glob/node_modules/inherits/inherits.js | 1 - .../node_modules/inherits/inherits_browser.js | 23 - .../glob/node_modules/inherits/package.json | 51 - .../glob/node_modules/inherits/test.js | 25 - .../glob/node_modules/minimatch/LICENSE | 15 - .../glob/node_modules/minimatch/README.md | 216 --- .../glob/node_modules/minimatch/browser.js | 1113 ------------- .../glob/node_modules/minimatch/minimatch.js | 867 ---------- .../node_modules/brace-expansion/.npmignore | 2 - .../node_modules/brace-expansion/.travis.yml | 3 - .../node_modules/brace-expansion/README.md | 121 -- .../node_modules/brace-expansion/example.js | 8 - .../node_modules/brace-expansion/index.js | 191 --- .../node_modules/balanced-match/.npmignore | 2 - .../node_modules/balanced-match/.travis.yml | 4 - .../node_modules/balanced-match/Makefile | 6 - .../node_modules/balanced-match/README.md | 80 - .../node_modules/balanced-match/example.js | 5 - .../node_modules/balanced-match/index.js | 38 - .../node_modules/balanced-match/package.json | 73 - .../balanced-match/test/balanced.js | 56 - .../node_modules/concat-map/.travis.yml | 4 - .../node_modules/concat-map/LICENSE | 18 - .../node_modules/concat-map/README.markdown | 62 - .../node_modules/concat-map/example/map.js | 6 - .../node_modules/concat-map/index.js | 13 - .../node_modules/concat-map/package.json | 83 - .../node_modules/concat-map/test/map.js | 39 - .../node_modules/brace-expansion/package.json | 75 - .../brace-expansion/test/bash-comparison.js | 32 - .../brace-expansion/test/bash-results.txt | 1075 ------------- .../brace-expansion/test/cases.txt | 182 --- .../brace-expansion/test/dollar.js | 9 - .../brace-expansion/test/empty-option.js | 10 - .../brace-expansion/test/generate.sh | 24 - .../test/negative-increment.js | 15 - .../brace-expansion/test/nested.js | 16 - .../brace-expansion/test/order.js | 10 - .../node_modules/brace-expansion/test/pad.js | 13 - .../brace-expansion/test/same-type.js | 7 - .../brace-expansion/test/sequence.js | 50 - .../glob/node_modules/minimatch/package.json | 63 - .../glob/node_modules/once/LICENSE | 15 - .../glob/node_modules/once/README.md | 51 - .../once/node_modules/wrappy/LICENSE | 15 - .../once/node_modules/wrappy/README.md | 36 - .../once/node_modules/wrappy/package.json | 52 - .../once/node_modules/wrappy/test/basic.js | 51 - .../once/node_modules/wrappy/wrappy.js | 33 - .../glob/node_modules/once/once.js | 21 - .../glob/node_modules/once/package.json | 60 - .../glob/node_modules/once/test/once.js | 23 - .../rimraf/node_modules/glob/package.json | 72 - .../rimraf/node_modules/glob/sync.js | 457 ------ .../utile/node_modules/rimraf/package.json | 58 - .../utile/node_modules/rimraf/rimraf.js | 332 ---- .../prompt/node_modules/utile/package.json | 65 - .../node_modules/utile/test/file-test.js | 31 - .../test/fixtures/read-json-file/config.json | 9 - .../require-directory/directory/index.js | 2 - .../fixtures/require-directory/helloWorld.js | 2 - .../node_modules/utile/test/format-test.js | 31 - .../utile/test/function-args-test.js | 104 -- .../node_modules/utile/test/helpers/macros.js | 37 - .../utile/test/random-string-test.js | 39 - .../utile/test/require-directory-test.js | 35 - .../node_modules/utile/test/utile-test.js | 126 -- .../prompt/node_modules/winston/.jshintrc | 54 - .../prompt/node_modules/winston/.npmignore | 6 - .../prompt/node_modules/winston/.travis.yml | 10 - .../prompt/node_modules/winston/CHANGELOG.md | 46 - .../prompt/node_modules/winston/LICENSE | 19 - .../prompt/node_modules/winston/README.md | 901 ----------- .../node_modules/winston/docs/transports.md | 399 ----- .../node_modules/winston/examples/couchdb.js | 18 - .../winston/examples/custom-levels.js | 44 - .../winston/examples/exception.js | 4 - .../node_modules/winston/examples/raw-mode.js | 10 - .../winston/examples/webhook-post.js | 17 - .../node_modules/winston/lib/winston.js | 164 -- .../winston/lib/winston/common.js | 349 ---- .../winston/lib/winston/config.js | 60 - .../winston/lib/winston/config/cli-config.js | 35 - .../winston/lib/winston/config/npm-config.js | 27 - .../lib/winston/config/syslog-config.js | 31 - .../winston/lib/winston/container.js | 112 -- .../winston/lib/winston/exception.js | 56 - .../winston/lib/winston/logger.js | 670 -------- .../winston/lib/winston/transports.js | 34 - .../winston/lib/winston/transports/console.js | 89 - .../winston/transports/daily-rotate-file.js | 571 ------- .../winston/lib/winston/transports/file.js | 554 ------- .../winston/lib/winston/transports/http.js | 228 --- .../winston/lib/winston/transports/memory.js | 85 - .../lib/winston/transports/transport.js | 121 -- .../winston/lib/winston/transports/webhook.js | 146 -- .../winston/node_modules/async/LICENSE | 19 - .../winston/node_modules/async/README.md | 1425 ----------------- .../winston/node_modules/async/component.json | 11 - .../winston/node_modules/async/lib/async.js | 958 ----------- .../winston/node_modules/async/package.json | 60 - .../node_modules/colors/MIT-LICENSE.txt | 22 - .../winston/node_modules/colors/ReadMe.md | 77 - .../winston/node_modules/colors/colors.js | 342 ---- .../winston/node_modules/colors/example.html | 76 - .../winston/node_modules/colors/example.js | 77 - .../winston/node_modules/colors/package.json | 32 - .../winston/node_modules/colors/test.js | 70 - .../colors/themes/winston-dark.js | 12 - .../colors/themes/winston-light.js | 12 - .../winston/node_modules/cycle/README.md | 49 - .../winston/node_modules/cycle/cycle.js | 170 -- .../winston/node_modules/cycle/package.json | 46 - .../winston/node_modules/eyes/LICENSE | 20 - .../winston/node_modules/eyes/Makefile | 4 - .../winston/node_modules/eyes/README.md | 73 - .../winston/node_modules/eyes/lib/eyes.js | 236 --- .../winston/node_modules/eyes/package.json | 60 - .../node_modules/eyes/test/eyes-test.js | 56 - .../winston/node_modules/isstream/.jshintrc | 59 - .../winston/node_modules/isstream/.npmignore | 1 - .../winston/node_modules/isstream/.travis.yml | 12 - .../winston/node_modules/isstream/LICENSE.md | 11 - .../winston/node_modules/isstream/README.md | 66 - .../winston/node_modules/isstream/isstream.js | 27 - .../node_modules/isstream/package.json | 59 - .../winston/node_modules/isstream/test.js | 168 -- .../node_modules/stack-trace/.npmignore | 1 - .../winston/node_modules/stack-trace/License | 19 - .../winston/node_modules/stack-trace/Makefile | 11 - .../node_modules/stack-trace/Readme.md | 98 -- .../stack-trace/lib/stack-trace.js | 111 -- .../node_modules/stack-trace/package.json | 56 - .../prompt/node_modules/winston/package.json | 82 - .../node_modules/winston/test/cli-test.js | 52 - .../winston/test/container-test.js | 99 -- .../winston/test/custom-timestamp-test.js | 62 - .../winston/test/exception-test.js | 47 - .../winston/test/fixtures/.gitkeep | 0 .../test/fixtures/keys/agent2-cert.pem | 13 - .../winston/test/fixtures/keys/agent2-key.pem | 9 - .../winston/test/fixtures/logs/.gitkeep | 0 .../fixtures/scripts/default-exceptions.js | 21 - .../test/fixtures/scripts/exit-on-error.js | 25 - .../test/fixtures/scripts/log-exceptions.js | 25 - .../fixtures/scripts/log-string-exception.js | 25 - .../fixtures/scripts/unhandle-exceptions.js | 26 - .../node_modules/winston/test/helpers.js | 186 --- .../winston/test/log-exception-test.js | 65 - .../winston/test/log-rewriter-test.js | 98 -- .../winston/test/logger-levels-test.js | 116 -- .../node_modules/winston/test/logger-test.js | 362 ----- .../winston/test/stress/http-server.js | 27 - .../winston/test/transports/console-test.js | 39 - .../test/transports/daily-rotate-file-test.js | 62 - .../test/transports/file-maxfiles-test.js | 102 -- .../test/transports/file-maxsize-test.js | 82 - .../winston/test/transports/file-open-test.js | 57 - .../test/transports/file-stress-test.js | 72 - .../winston/test/transports/file-test.js | 60 - .../winston/test/transports/memory-test.js | 31 - .../winston/test/transports/transport.js | 215 --- .../winston/test/transports/webhook-test.js | 125 -- .../node_modules/winston/test/winston-test.js | 98 -- .../src/node_modules/prompt/package.json | 69 - .../src/node_modules/prompt/test/helpers.js | 155 -- .../prompt/test/interactive-prompt-test.js | 49 - .../src/node_modules/prompt/test/macros.js | 82 - .../node_modules/prompt/test/prompt-test.js | 697 -------- .../src/node_modules/range/LICENSE.md | 23 - .../src/node_modules/range/README.md | 124 -- .../src/node_modules/range/lib/range.js | 28 - .../src/node_modules/range/package.json | 60 - .../src/package.json | 15 - .../README.md | 6 - .../statement.pdf | 874 ---------- 360 files changed, 35761 deletions(-) delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/00-problem-set.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/01-01-problem-set.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-bisection-method-problem-set.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-problem-set.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/02-lecture.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/03-lecture.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.jshintrc delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/CHANGELOG.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/docco.css delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/prompt.html delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/add-properties.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/existing-properties.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/history.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/nested-properties-prompt.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/old-schema.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/override-validation.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/password.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/prompt-override.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/property-prompt.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/simple-prompt.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/yes-or-no-prompt.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/lib/prompt.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/docco.css delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/all-properties.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/array-argument.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/multiple-properties.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/object-argument.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/single-property.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/subdir/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/target-dir.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/lib/pkginfo.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/test/pkginfo-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENCE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/example/example.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/lib/read.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/node_modules/mute-stream/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/node_modules/mute-stream/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/node_modules/mute-stream/mute.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/node_modules/mute-stream/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/node_modules/mute-stream/test/basic.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/rs.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/test/basic.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/test/defaults.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/test/many.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/CHANGELOG.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/example/webservice.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/lib/revalidator.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/revalidator/test/validator-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/CHANGELOG.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/lib/args.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/lib/base64.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/lib/file.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/lib/format.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/lib/index.js delete mode 120000 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/.bin/mkdirp delete mode 120000 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/.bin/ncp delete mode 120000 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/.bin/rimraf delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/async/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/async/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/async/component.json delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/async/lib/async.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/async/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/example/cmp.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/lib/is_arguments.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/lib/keys.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/readme.markdown delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/deep-equal/test/cmp.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/defaults.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/inflect.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/inflections.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/methods.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/native.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/lib/util.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/cases.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/inflections-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/test/inflector/methods-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/array-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/i/test/utils/string-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/LICENSE delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/bin/cmd.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/bin/usage.txt delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/examples/pow.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/example/parse.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/readme.markdown delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/dash.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/default_bool.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/dotted.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/long.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/parse.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/parse_modified.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/short.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/node_modules/minimist/test/whitespace.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/readme.markdown delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/chmod.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/clobber.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/mkdirp.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/opts_fs.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/opts_fs_sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/perm_sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/race.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/rel.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/return_sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/root.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/mkdirp/test/umask_sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/LICENSE.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/README.md delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/bin/ncp delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/lib/ncp.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/a delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/b delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/c delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/d delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/e delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/f delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/a delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/fixtures/src/sub/b delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/ncp/test/ncp-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/README.md delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/bin.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/common.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/glob.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/.eslintrc delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/inflight.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/test/basic.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/node_modules/wrappy/wrappy.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inflight/test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/inherits_browser.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/inherits/test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/browser.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/minimatch.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/example.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/Makefile delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/example.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/balanced-match/test/balanced.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/README.markdown delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/example/map.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/node_modules/concat-map/test/map.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-comparison.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/bash-results.txt delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/cases.txt delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/dollar.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/empty-option.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/generate.sh delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/negative-increment.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/nested.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/order.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/pad.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/same-type.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/node_modules/brace-expansion/test/sequence.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/minimatch/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/test/basic.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/node_modules/wrappy/wrappy.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/once.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/node_modules/once/test/once.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/node_modules/glob/sync.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/node_modules/rimraf/rimraf.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/file-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/fixtures/read-json-file/config.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/fixtures/require-directory/directory/index.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/fixtures/require-directory/helloWorld.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/format-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/function-args-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/helpers/macros.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/random-string-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/require-directory-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/utile/test/utile-test.js delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/.jshintrc delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/CHANGELOG.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/docs/transports.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/examples/couchdb.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/examples/custom-levels.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/examples/exception.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/examples/raw-mode.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/examples/webhook-post.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/common.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/config.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/config/cli-config.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/config/npm-config.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/config/syslog-config.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/container.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/exception.js delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/logger.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/console.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/daily-rotate-file.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/file.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/http.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/memory.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/transport.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/lib/winston/transports/webhook.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/async/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/async/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/async/component.json delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/async/lib/async.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/async/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/MIT-LICENSE.txt delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/ReadMe.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/colors.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/example.html delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/example.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/themes/winston-dark.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/colors/themes/winston-light.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/cycle/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/cycle/cycle.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/cycle/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/LICENSE delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/Makefile delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/lib/eyes.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/eyes/test/eyes-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/.jshintrc delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/.travis.yml delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/LICENSE.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/isstream.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/isstream/test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/.npmignore delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/License delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/Makefile delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/Readme.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/lib/stack-trace.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/node_modules/stack-trace/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/cli-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/container-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/custom-timestamp-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/exception-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/.gitkeep delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/keys/agent2-cert.pem delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/keys/agent2-key.pem delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/logs/.gitkeep delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/scripts/default-exceptions.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/scripts/exit-on-error.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/scripts/log-exceptions.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/scripts/log-string-exception.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/fixtures/scripts/unhandle-exceptions.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/helpers.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/log-exception-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/log-rewriter-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/logger-levels-test.js delete mode 100755 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/logger-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/stress/http-server.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/console-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/daily-rotate-file-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/file-maxfiles-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/file-maxsize-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/file-open-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/file-stress-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/file-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/memory-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/transport.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/transports/webhook-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/winston/test/winston-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/test/helpers.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/test/interactive-prompt-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/test/macros.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/test/prompt-test.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/range/LICENSE.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/range/README.md delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/range/lib/range.js delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/range/package.json delete mode 100644 computer-science/01-introduction-to-cs-and-programming-mit/src/package.json delete mode 100644 computer-science/02-stanford-computer-science-101/README.md delete mode 100644 computer-science/02-stanford-computer-science-101/statement.pdf diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/README.md b/computer-science/01-introduction-to-cs-and-programming-mit/README.md deleted file mode 100644 index 3a62922..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/README.md +++ /dev/null @@ -1,14 +0,0 @@ -# [Introduction to Computer Science and Programming](http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-00sc-introduction-to-computer-science-and-programming-spring-2011/) - -## Unit 1 - -- **INTRODUCTION TO 6.00** ✔ -- **CORE ELEMENTS OF A PROGRAM** ✔ -- **PROBLEM SOLVING** ✔ -- MACHINE INTERPRETATION OF A PROGRAM ✍ -- OBJECTS IN PYTHON -- RECURSION -- DEBUGGING -- EFFICIENCY AND ORDER OF GROWTH -- MEMORY AND SEARCH METHODS -- QUIZ 1 \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/00-problem-set.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/00-problem-set.js deleted file mode 100644 index a530156..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/00-problem-set.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - - Write a program that does the following in order: - - 1. Asks the user to enter his/her date of birth. - 2. Asks the user to enter his/her last name. - 3. Prints out the user’s last name and date of birth, in that order. - -*/ - -var answers = 0; -var birthDate = ''; -var lastName = ''; - -process.stdin.resume(); - -console.log( 'What is your birth date?' ); -process.stdin.setEncoding( 'utf8' ); - -process.stdin.on( 'data', function( input ) { - - if ( answers === 0 ) { - - birthDate = input; - answers += 1; - - console.log( 'What is your last name?' ); - - } else if ( answers === 1 ) { - - lastName = input; - - console.log( - '================\n<< Informations >>\n' + - 'Birth date: ' + birthDate + '\n' + - 'Last Name: ' + lastName + '\n' + - 'Bye!' - ); - - process.exit(); - - } - -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-01-problem-set.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/01-01-problem-set.js deleted file mode 100644 index 5e3f9d4..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-01-problem-set.js +++ /dev/null @@ -1,88 +0,0 @@ -/* -* -* Author: Eric Douglas -* Finished: 20/06/2015 -* -* Write a program to calculate the credit card balance after one year -* if a person only pays the minimum monthly payment required by the credit -* card company each month. -* -* Use raw_input() to ask for the following three floating point numbers: -* -* 1. the outstanding balance on the credit card -* 2. annual interest rate -* 3. minimum monthly payment rate -* -* For each month, print the minimum monthly payment, remaining balance, -* principle paid in the format shown in the test cases below. -* All numbers should be rounded to the nearest penny. Finally, print the result, -* which should include the total amount paid that year and the remaining balance. -* -* - Minimum monthly payment = Minimum monthly payment rate x Balance -* (Minimum monthly payment gets split into interest paid and principal paid) -* - Interest Paid = Annual interest rate / 12 months x Balance -* - Principal paid = Minimum monthly payment – Interest paid -* - Remaining balance = Balance – Principal paid -* -* http://bit.ly/1S6Tdys -* -*/ -var prompt = require( 'prompt' ); - -prompt.start(); -prompt.get([ - { - name : 'balance', - description : 'Enter the outstanding balance on your credit card' - }, - { - name : 'interest', - description : 'Enter the annual credit card interest rate as a decimal' - }, - { - name : 'minimum', - description : 'Enter the minimum monthly payment rate as a decimal' - } -], function( err, results ) { - - // constants - var PERIOD = 12; - - // input variables - var initialBalance = parseFloat( results.balance ); - var interest = parseFloat( results.interest ); - var minPayment = parseFloat( results.minimum ); - - // output variables - var month = 1; - var minMonthlyPayment = 0; - var principalPaid = 0; - var actualBalance = initialBalance; - - // helper variables - var actualMinPayment = 0; - var actualInterest = 0; - var totalPaid = 0; - - while( month <= PERIOD ) { - - actualMinPayment = minPayment * actualBalance; - actualInterest = ( interest / 12 ) * actualBalance; - principalPaid = actualMinPayment - actualInterest; - actualBalance -= principalPaid; - totalPaid += actualMinPayment; - - console.log( 'Month:', month ); - console.log( 'Minimum monthly payment:', actualMinPayment.toFixed( 2 )); - console.log( 'Principal paid:', principalPaid.toFixed( 2 )); - console.log( 'Remaining balance', actualBalance.toFixed( 2 ), '\n' ); - - month += 1; - - } - - console.log( '======= RESULT ======='); - console.log( 'Total amount paid:', totalPaid.toFixed( 2 )); - console.log( 'Remaining balance', actualBalance.toFixed( 2 ), '\n' ); - -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-bisection-method-problem-set.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-bisection-method-problem-set.js deleted file mode 100644 index b66e99f..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-bisection-method-problem-set.js +++ /dev/null @@ -1,49 +0,0 @@ -/* -* -* Author: Eric Douglas -* Finished: -* -* Paying Debt Off In a Year - BISECTION METHOD -* -* - interest is compounded monthly according to the balance at -* the start of the month -* - monthly payment must be a multiple of $10 and is the same for all months -* - it is possible for the balance to become negative using this scheme -*/ - -var prompt = require( 'prompt' ); - -prompt.start(); -prompt.get([ - { - name : 'balance', - description : 'Enter the outstanding balance on your credit card' - }, - { - name : 'interest', - description : 'Enter the annual credit card interest rate as a decimal' - } -], function( err, results ) { - - // input variables - var balance = parseFloat( results.balance ); - var interest = parseFloat( results.interest ); - - // output variables - var parcel = 0; - var months = 0; - var paid = 0; - - // helper variables - var step = 0.01; - var min = 0; - var max = 0; - var guesses = 0; - - // Results - console.log( '======= RESULT ======='); - console.log( 'Monthly payment to pay off debt in 1 year:', parcel ); - console.log( 'Number of months needed:', months ); - console.log( 'Balance', paid ); - -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-problem-set.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-problem-set.js deleted file mode 100644 index accb929..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/01-02-problem-set.js +++ /dev/null @@ -1,59 +0,0 @@ -/* -* -* Author: Eric Douglas -* Finished: 2015-06-21 -* -* Paying Debt Off In a Year -* -* - interest is compounded monthly according to the balance at -* the start of the month -* - monthly payment must be a multiple of $10 and is the same for all months -* - it is possible for the balance to become negative using this scheme -*/ - -var prompt = require( 'prompt' ); - -prompt.start(); -prompt.get([ - { - name : 'balance', - description : 'Enter the outstanding balance on your credit card' - }, - { - name : 'interest', - description : 'Enter the annual credit card interest rate as a decimal' - } -], function( err, results ) { - - // constants - var PERIOD = 12; - - // input variables - var initialBalance = parseFloat( results.balance ); - var interest = parseFloat( results.interest ); - - // helper variables - var monthsNeeded = 0; - var totalBalance = initialBalance; - var monthInterest = interest / 12; - var monthPayment = 10; - - while ( totalBalance > 0 ) { - - totalBalance = ( totalBalance * ( 1 + monthInterest ) - monthPayment ); - monthsNeeded += 1; - - if ( monthsNeeded >= 12 ) { - monthPayment += 10; - totalBalance = initialBalance; - monthsNeeded = 0; - } - - } - - console.log( '======= RESULT ======='); - console.log( 'Monthly payment to pay off debt in 1 year:', monthPayment ); - console.log( 'Number of months needed:', monthsNeeded ); - console.log( 'Balance', totalBalance.toFixed( 2 )); - -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/02-lecture.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/02-lecture.js deleted file mode 100644 index f837cf2..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/02-lecture.js +++ /dev/null @@ -1,126 +0,0 @@ -// Modules -var prompt = require( 'prompt' ); - -// // Create a variable x and assign value 3 to it -// var x = 3; - -// // Bind x to value 9 -// x *= x; // or x = x * x; -// console.log( x ); - -// // read input data from terminal -// prompt.start(); -// prompt.get({ -// name : 'number', -// description : 'Enter a number' -// }, function( err, results ) { - -// console.log( results.number ); - -// }); - -// // Verify if a integer number is even or odd. -// // If odd, verify if the number is divisible by 3 -// // read input data from terminal -// prompt.start(); - -// prompt.get([ -// { -// name : 'number', -// description : 'Enter a integer' -// } -// ], function( err, results ) { - -// var int = parseInt( results.number, 10 ); - -// if ( int % 2 === 0 ) { - -// console.log( int + ' is EVEN' ); - -// } else { - -// var msg = int.toString() + ' is ODD'; - -// if ( int % 3 !== 0 ) { - -// msg += ' and NOT divisible by 3'; - -// } - -// console.log( msg ); - -// } - -// }); - -// // Find the lowest among three numbers -// prompt.start(); -// prompt.get([ -// { -// name : 'x', -// description : 'Enter x' -// }, -// { -// name : 'y', -// description : 'Enter y' -// }, -// { -// name : 'z', -// description : 'Enter z' -// } -// ], function( err, results ) { - -// if ( results.x < results.y ) { - -// if ( results.x < results.z ) { -// console.log( 'x is least' ); -// } else { -// console.log( 'z is least' ); -// } - -// } else if ( results.y < results.z ) { - -// console.log( 'y is least' ); - -// } else { - -// console.log( 'z is least' ); - -// } - -// }); - -// Find the cube root of a perfect cube -prompt.start(); -prompt.get([ - { - name : 'x', - description : 'Enter a interger' - } -], function( err, results ) { - - var x = parseInt( results.x, 10 ); - var ans = 0; - - while ( Math.pow( ans, 3 ) < Math.abs( x )) { - - ans += 1; - console.log( 'Current guess:', ans ); - - } - - if ( Math.pow( ans, 3 ) !== Math.abs( x )) { - - console.log( x, 'is not a perfect cube' ); - - } else { - - if ( x < 0 ) { - ans = -ans; - } - - console.log( 'Cube root of ' + x.toString() + ' is ' + ans.toString()); - - } - -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/03-lecture.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/03-lecture.js deleted file mode 100644 index 68d153e..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/03-lecture.js +++ /dev/null @@ -1,149 +0,0 @@ -// Modules -var range = require( 'range' ).range; -var prompt = require( 'prompt' ); - -// // Find the cube root of a perfect cube -// prompt.start(); -// prompt.get([ -// { -// name : 'x', -// description : 'Enter a interger' -// } -// ], function( err, results ) { - -// var x = parseInt( results.x, 10 ); -// var ans = 0; - -// while ( Math.pow( ans, 3 ) < Math.abs( x )) { - -// ans += 1; -// console.log( 'Current guess:', ans ); - -// } - -// if ( Math.pow( ans, 3 ) !== Math.abs( x )) { - -// console.log( x, 'is not a perfect cube' ); - -// } else { - -// if ( x < 0 ) { -// ans = -ans; -// } - -// console.log( 'Cube root of ' + x.toString() + ' is ' + ans.toString()); - -// } - -// }); - -// // Find the cube root of a perfect cube -// prompt.start(); -// prompt.get([ -// { -// name : 'x', -// description : 'Enter a interger' -// } -// ], function( err, results ) { - -// var x = parseInt( results.x, 10 ); -// var ans; - -// for ( ans in range( 0, Math.abs( x ) + 1 )) { - -// if ( Math.pow( ans, 3 ) === Math.abs( x )) { -// break; -// } - -// } - -// if ( Math.pow( ans, 3 ) !== Math.abs( x )) { - -// console.log( x + ' is not a perfect cube' ); - -// } else { - -// console.log( 'Cube root of ' + x.toString() + ' is ' + ans.toString()); - -// } - -// }); - -// // Find closest number to be a square root of another number - Brute Force -// var x = 25; -// var epsilon = 0.01; -// var numGuesses = 0; -// var ans = 0; - -// while ( Math.abs( Math.pow( ans, 2 ) - x ) >= epsilon && ans <= x ) { - -// ans += 0.00001; -// numGuesses += 1; - -// } - -// console.log( 'numGuesses: ' + numGuesses ); - -// if ( Math.abs( Math.pow( ans, 2 ) - x >= epsilon )) { -// console.log( 'Failed on square root of ' + x.toString()); -// } else { -// console.log( ans.toString() + ' is close to square root of ' + x.toString()); -// } - -// // Find closest number to be a square root of another number - bisection method -// var x = 12345; -// var epsilon = 0.01; -// var numGuesses = 0; -// var low = 0; -// var high = x; -// var ans = ( high + low ) / 2; - -// while ( Math.abs( Math.pow( ans, 2 ) - x ) >= epsilon && ans <= x ) { - -// numGuesses += 1; - -// if ( Math.pow( ans, 2 ) < x ) { - -// low = ans; - -// } else { - -// high = ans; - -// } - -// ans = ( high + low ) / 2; - -// } - -// console.log( 'numGuesses:', numGuesses ); -// console.log( ans, 'is close to square root of', x ); - -// Returns true or false if x is within epsilon of y -function withinEpsilon( x, y, epsilon ) { - - console.log( 'Returns true if x is within epsilon of y' ); - - return Math.abs( x - y ) <= epsilon; - -} - -if ( withinEpsilon( 25, 26, 1 )) { - - console.log( 'Yes' ); - -} else { - - console.log( 'No' ); - -} - -if ( withinEpsilon( 25, 26, 0.9 )) { - - console.log( 'Yes' ); - -} else { - - console.log( 'No' ); - -} \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.jshintrc b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.jshintrc deleted file mode 100644 index 0d97986..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.jshintrc +++ /dev/null @@ -1,54 +0,0 @@ -{ - "passfail": false, - "maxerr": 100, - - "browser": false, - "node": true, - "rhino": false, - "couch": true, - "wsh": true, - "jquery": true, - "prototypejs": false, - "mootools": false, - "dojo": false, - - "devel": false, - - "es5": true, - "strict": false, - "globalstrict": false, - - "asi": false, - "lastsemic": true, - "laxbreak": true, - "laxcomma": false, - "bitwise": false, - "boss": false, - "curly": true, - "eqeqeq": true, - "eqnull": false, - "evil": false, - "expr": false, - "forin": false, - "immed": false, - "latedef": false, - "loopfunc": true, - "noarg": true, - "regexp": true, - "regexdash": false, - "scripturl": true, - "shadow": true, - "supernew": true, - "undef": true, - - "newcap": true, - "noempty": true, - "nonew": true, - "nomen": false, - "onevar": true, - "plusplus": false, - "sub": true, - "trailing": true, - "white": false, - "indent": 2 -} \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.npmignore b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.npmignore deleted file mode 100644 index e3bc275..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.npmignore +++ /dev/null @@ -1,3 +0,0 @@ -node_modules/ -node_modules/* -npm-debug.log \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.travis.yml b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.travis.yml deleted file mode 100644 index b6a50e4..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/.travis.yml +++ /dev/null @@ -1,10 +0,0 @@ -language: node_js -node_js: - - 0.8 - - 0.10 - -notifications: - email: - - travis@nodejitsu.com - irc: "irc.freenode.org#nodejitsu" - diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/CHANGELOG.md b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/CHANGELOG.md deleted file mode 100644 index b094c48..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ - -0.2.7 / 2012-08-30 -================== - - * Fixed handling of numeric inputs with parseFloat - * Fixed overwriting of non-string inputs - * Added support for boolean types - -0.2.6 / 2012-08-12 -================== - - * Added allowance of empty default values - diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/LICENSE b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/LICENSE deleted file mode 100644 index 56217ca..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2010 Nodejitsu Inc. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/README.md b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/README.md deleted file mode 100644 index 795bf42..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/README.md +++ /dev/null @@ -1,317 +0,0 @@ -# prompt [![Build Status](https://secure.travis-ci.org/flatiron/prompt.svg)](http://travis-ci.org/flatiron/prompt) - -A beautiful command-line prompt for node.js - -## Features - -* prompts the user for input -* supports validation and defaults -* hides passwords - -## Usage -Using prompt is relatively straight forward. There are two core methods you should be aware of: `prompt.get()` and `prompt.addProperties()`. There methods take strings representing property names in addition to objects for complex property validation (and more). There are a number of [examples][0] that you should examine for detailed usage. - -### Getting Basic Prompt Information -Getting started with `prompt` is easy. Lets take a look at `examples/simple-prompt.js`: - -``` js - var prompt = require('prompt'); - - // - // Start the prompt - // - prompt.start(); - - // - // Get two properties from the user: username and email - // - prompt.get(['username', 'email'], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' email: ' + result.email); - }); -``` - -This will result in the following command-line output: - -``` - $ node examples/simple-prompt.js - prompt: username: some-user - prompt: email: some-user@some-place.org - Command-line input received: - username: some-user - email: some-user@some-place.org -``` - -### Prompting with Validation, Default Values, and More (Complex Properties) -In addition to prompting the user with simple string prompts, there is a robust API for getting and validating complex information from a command-line prompt. Here's a quick sample: - -``` js - var schema = { - properties: { - name: { - pattern: /^[a-zA-Z\s\-]+$/, - message: 'Name must be only letters, spaces, or dashes', - required: true - }, - password: { - hidden: true - } - } - }; - - // - // Start the prompt - // - prompt.start(); - - // - // Get two properties from the user: email, password - // - prompt.get(schema, function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' name: ' + result.name); - console.log(' password: ' + result.password); - }); -``` - -Pretty easy right? The output from the above script is: - -``` - $ node examples/property-prompt.js - prompt: name: nodejitsu000 - error: Invalid input for name - error: Name must be only letters, spaces, or dashes - prompt: name: Nodejitsu Inc - prompt: password: - Command-line input received: - name: Nodejitsu Inc - password: some-password -``` - -## Valid Property Settings -`prompt` understands JSON-schema with a few extra parameters and uses [revalidator](https://github.com/flatiron/revalidator) for validation. - -Here's an overview of the properties that may be used for validation and prompting controls: - -``` js - { - description: 'Enter your password', // Prompt displayed to the user. If not supplied name will be used. - type: 'string', // Specify the type of input to expect. - pattern: /^\w+$/, // Regular expression that input must be valid against. - message: 'Password must be letters', // Warning message to display if validation fails. - hidden: true, // If true, characters entered will not be output to console. - default: 'lamepassword', // Default value to use if no value is entered. - required: true // If true, value entered must be non-empty. - before: function(value) { return 'v' + value; } // Runs before node-prompt callbacks. It modifies user's input - } -``` - -Alternatives to `pattern` include `format` and `conform`, as documented in [revalidator](https://github.com/flatiron/revalidator). - -Using `type: 'array'` has some special cases. - -- `description` will not work in the schema if `type: 'array'` is defined. -- `maxItems` takes precedence over `minItems`. -- Arrays that do not have `maxItems` defined will require users to `SIGINT` (`^C`) before the array is ended. -- If `SIGINT` (`^C`) is triggered before `minItems` is met, a validation error will appear. This will require users to `SIGEOF` (`^D`) to end the input. - -For more information on things such as `maxItems` and `minItems`, refer to the [revalidator](https://github.com/flatiron/revalidator) repository. - -### Alternate Validation API: - -Prompt, in addition to iterating over JSON-Schema properties, will also happily iterate over an array of validation objects given an extra 'name' property: - -```js - var prompt = require('../lib/prompt'); - - // - // Start the prompt - // - prompt.start(); - - // - // Get two properties from the user: username and password - // - prompt.get([{ - name: 'username', - required: true - }, { - name: 'password', - hidden: true, - conform: function (value) { - return true; - } - }], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' password: ' + result.password); - }); -``` - -### Backward Compatibility - -Note that, while this structure is similar to that used by prompt 0.1.x, that the object properties use the same names as in JSON-Schema. prompt 0.2.x is backward compatible with prompt 0.1.x except for asynchronous validation. - -### Skipping Prompts - -Sometimes power users may wish to skip promts and specify all data as command line options. -if a value is set as a property of `prompt.override` prompt will use that instead of -prompting the user. - -``` js - //prompt-override.js - - var prompt = require('prompt'), - optimist = require('optimist') - - // - // set the overrides - // - prompt.override = optimist.argv - - // - // Start the prompt - // - prompt.start(); - - // - // Get two properties from the user: username and email - // - prompt.get(['username', 'email'], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' email: ' + result.email); - }) - - //: node prompt-override.js --username USER --email EMAIL -``` - - -### Adding Properties to an Object -A common use-case for prompting users for data from the command-line is to extend or create a configuration object that is passed onto the entry-point method for your CLI tool. `prompt` exposes a convenience method for doing just this: - -``` js - var obj = { - password: 'lamepassword', - mindset: 'NY' - } - - // - // Log the initial object. - // - console.log('Initial object to be extended:'); - console.dir(obj); - - // - // Add two properties to the empty object: username and email - // - prompt.addProperties(obj, ['username', 'email'], function (err) { - // - // Log the results. - // - console.log('Updated object received:'); - console.dir(obj); - }); -``` - -### Prompt history -You can use the `prompt.history()` method to get access to previous prompt input. - -``` js - prompt.get([{ - name: 'name', - description: 'Your name', - type: 'string', - required: true - }, { - name: 'surname', - description: 'Your surname', - type: 'string', - required: true, - message: 'Please dont use the demo credentials', - conform: function(surname) { - var name = prompt.history('name').value; - return (name !== 'John' || surname !== 'Smith'); - } - }], function(err, results) { - console.log(results); - }); -``` - -## Customizing your prompt -Aside from changing `property.message`, you can also change `prompt.message` -and `prompt.delimiter` to change the appearance of your prompt. - -The basic structure of a prompt is this: - -``` js -prompt.message + prompt.delimiter + property.message + prompt.delimiter; -``` - -The default `prompt.message` is "prompt," the default `prompt.delimiter` is -": ", and the default `property.message` is `property.name`. -Changing these allows you to customize the appearance of your prompts! In -addition, prompt supports ANSI color codes via the -[colors module](https://github.com/Marak/colors.js) for custom colors. For a -very colorful example: - -``` js - var prompt = require("prompt"); - - // - // Setting these properties customizes the prompt. - // - prompt.message = "Question!".rainbow; - prompt.delimiter = "><".green; - - prompt.start(); - - prompt.get({ - properties: { - name: { - description: "What is your name?".magenta - } - } - }, function (err, result) { - console.log("You said your name is: ".cyan + result.name.cyan); - }); -``` - -If you don't want colors, you can set - -```js -var prompt = require('prompt'); - -prompt.colors = false; -``` - -## Installation - -``` bash - $ [sudo] npm install prompt -``` - -## Running tests - -``` bash - $ npm test -``` - -#### License: MIT -#### Author: [Charlie Robbins](http://github.com/indexzero) -#### Contributors: [Josh Holbrook](http://github.com/jesusabdullah), [Pavan Kumar Sunkara](http://github.com/pksunkara) - -[0]: https://github.com/flatiron/prompt/tree/master/examples diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/docco.css b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/docco.css deleted file mode 100644 index bd54134..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/docco.css +++ /dev/null @@ -1,194 +0,0 @@ -/*--------------------- Layout and Typography ----------------------------*/ -body { - font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; - font-size: 15px; - line-height: 22px; - color: #252519; - margin: 0; padding: 0; -} -a { - color: #261a3b; -} - a:visited { - color: #261a3b; - } -p { - margin: 0 0 15px 0; -} -h4, h5, h6 { - color: #333; - margin: 6px 0 6px 0; - font-size: 13px; -} - h2, h3 { - margin-bottom: 0; - color: #000; - } - h1 { - margin-top: 40px; - margin-bottom: 15px; - color: #000; - } -#container { - position: relative; -} -#background { - position: fixed; - top: 0; left: 525px; right: 0; bottom: 0; - background: #f5f5ff; - border-left: 1px solid #e5e5ee; - z-index: -1; -} -#jump_to, #jump_page { - background: white; - -webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777; - -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; - font: 10px Arial; - text-transform: uppercase; - cursor: pointer; - text-align: right; -} -#jump_to, #jump_wrapper { - position: fixed; - right: 0; top: 0; - padding: 5px 10px; -} - #jump_wrapper { - padding: 0; - display: none; - } - #jump_to:hover #jump_wrapper { - display: block; - } - #jump_page { - padding: 5px 0 3px; - margin: 0 0 25px 25px; - } - #jump_page .source { - display: block; - padding: 5px 10px; - text-decoration: none; - border-top: 1px solid #eee; - } - #jump_page .source:hover { - background: #f5f5ff; - } - #jump_page .source:first-child { - } -table td { - border: 0; - outline: 0; -} - td.docs, th.docs { - max-width: 450px; - min-width: 450px; - min-height: 5px; - padding: 10px 25px 1px 50px; - overflow-x: hidden; - vertical-align: top; - text-align: left; - } - .docs pre { - margin: 15px 0 15px; - padding-left: 15px; - } - .docs p tt, .docs p code { - background: #f8f8ff; - border: 1px solid #dedede; - font-size: 12px; - padding: 0 0.2em; - } - .pilwrap { - position: relative; - } - .pilcrow { - font: 12px Arial; - text-decoration: none; - color: #454545; - position: absolute; - top: 3px; left: -20px; - padding: 1px 2px; - opacity: 0; - -webkit-transition: opacity 0.2s linear; - } - td.docs:hover .pilcrow { - opacity: 1; - } - td.code, th.code { - padding: 14px 15px 16px 25px; - width: 100%; - vertical-align: top; - background: #f5f5ff; - border-left: 1px solid #e5e5ee; - } - pre, tt, code { - font-size: 12px; line-height: 18px; - font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; - margin: 0; padding: 0; - } - - -/*---------------------- Syntax Highlighting -----------------------------*/ -td.linenos { background-color: #f0f0f0; padding-right: 10px; } -span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; } -body .hll { background-color: #ffffcc } -body .c { color: #408080; font-style: italic } /* Comment */ -body .err { border: 1px solid #FF0000 } /* Error */ -body .k { color: #954121 } /* Keyword */ -body .o { color: #666666 } /* Operator */ -body .cm { color: #408080; font-style: italic } /* Comment.Multiline */ -body .cp { color: #BC7A00 } /* Comment.Preproc */ -body .c1 { color: #408080; font-style: italic } /* Comment.Single */ -body .cs { color: #408080; font-style: italic } /* Comment.Special */ -body .gd { color: #A00000 } /* Generic.Deleted */ -body .ge { font-style: italic } /* Generic.Emph */ -body .gr { color: #FF0000 } /* Generic.Error */ -body .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -body .gi { color: #00A000 } /* Generic.Inserted */ -body .go { color: #808080 } /* Generic.Output */ -body .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ -body .gs { font-weight: bold } /* Generic.Strong */ -body .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -body .gt { color: #0040D0 } /* Generic.Traceback */ -body .kc { color: #954121 } /* Keyword.Constant */ -body .kd { color: #954121; font-weight: bold } /* Keyword.Declaration */ -body .kn { color: #954121; font-weight: bold } /* Keyword.Namespace */ -body .kp { color: #954121 } /* Keyword.Pseudo */ -body .kr { color: #954121; font-weight: bold } /* Keyword.Reserved */ -body .kt { color: #B00040 } /* Keyword.Type */ -body .m { color: #666666 } /* Literal.Number */ -body .s { color: #219161 } /* Literal.String */ -body .na { color: #7D9029 } /* Name.Attribute */ -body .nb { color: #954121 } /* Name.Builtin */ -body .nc { color: #0000FF; font-weight: bold } /* Name.Class */ -body .no { color: #880000 } /* Name.Constant */ -body .nd { color: #AA22FF } /* Name.Decorator */ -body .ni { color: #999999; font-weight: bold } /* Name.Entity */ -body .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ -body .nf { color: #0000FF } /* Name.Function */ -body .nl { color: #A0A000 } /* Name.Label */ -body .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ -body .nt { color: #954121; font-weight: bold } /* Name.Tag */ -body .nv { color: #19469D } /* Name.Variable */ -body .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ -body .w { color: #bbbbbb } /* Text.Whitespace */ -body .mf { color: #666666 } /* Literal.Number.Float */ -body .mh { color: #666666 } /* Literal.Number.Hex */ -body .mi { color: #666666 } /* Literal.Number.Integer */ -body .mo { color: #666666 } /* Literal.Number.Oct */ -body .sb { color: #219161 } /* Literal.String.Backtick */ -body .sc { color: #219161 } /* Literal.String.Char */ -body .sd { color: #219161; font-style: italic } /* Literal.String.Doc */ -body .s2 { color: #219161 } /* Literal.String.Double */ -body .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ -body .sh { color: #219161 } /* Literal.String.Heredoc */ -body .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ -body .sx { color: #954121 } /* Literal.String.Other */ -body .sr { color: #BB6688 } /* Literal.String.Regex */ -body .s1 { color: #219161 } /* Literal.String.Single */ -body .ss { color: #19469D } /* Literal.String.Symbol */ -body .bp { color: #954121 } /* Name.Builtin.Pseudo */ -body .vc { color: #19469D } /* Name.Variable.Class */ -body .vg { color: #19469D } /* Name.Variable.Global */ -body .vi { color: #19469D } /* Name.Variable.Instance */ -body .il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/prompt.html b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/prompt.html deleted file mode 100644 index 7776f5b..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/docs/prompt.html +++ /dev/null @@ -1,296 +0,0 @@ - prompt.js

prompt.js

/*
- * prompt.js: Simple prompt for prompting information from the command line 
- *
- * (C) 2010, Nodejitsu Inc.
- *
- */
-
-var events = require('events'),
-    async = require('async'),
-    colors = require('colors'),
-    winston = require('winston'),
-    stdio = process.binding('stdio');

@private function capitalize (str)

- -

str {string} String to capitalize

- -

Capitalizes the string supplied.

function capitalize(str) {
-  return str.charAt(0).toUpperCase() + str.slice(1);
-}
-
-var prompt = module.exports = Object.create(events.EventEmitter.prototype);
-
-var logger = prompt.logger = new winston.Logger({
-  transports: [
-    new (winston.transports.Console)()
-  ]
-});
-    
-prompt.started    = false;
-prompt.paused     = false;
-prompt.allowEmpty = false; 
-
-var stdin, stdout;

Create an empty object for the properties -known to prompt

prompt.properties = {};

Setup the default winston logger to use -the cli levels and colors.

logger.cli();

function start (options)

- -

@options {Object} Optional Options to consume by prompt

- -

Starts the prompt by listening to the appropriate events on options.stdin -and options.stdout. If no streams are supplied, then process.stdin -and process.stdout are used, respectively.

prompt.start = function (options) {
-  if (prompt.started) {
-    return;
-  }
-  
-  options = options        || {};
-  stdin   = options.stdin  || process.openStdin();
-  stdout  = options.stdout || process.stdout;
-  
-  prompt.allowEmpty = options.allowEmpty || false;
-  
-  process.on('SIGINT', function () {
-    stdout.write('\n');
-    process.exit(1);
-  })
-  
-  prompt.emit('start');
-  prompt.started = true;
-  return prompt;
-};

function pause ()

- -

Pauses input coming in from stdin

prompt.pause = function () {
-  if (!prompt.started || prompt.paused) {
-    return;
-  }
-  
-  stdin.pause();
-  prompt.emit('pause');
-  prompt.paused = true;
-  return prompt;
-};

function resume ()

- -

Resumes input coming in from stdin

prompt.resume = function () {
-  if (!prompt.started || !prompt.paused) {
-    return;
-  }
-  
-  stdin.resume();
-  prompt.emit('resume');
-  prompt.paused = false;
-  return prompt;
-};

function get (msg, [validator,] callback)

- -

@msg {Array|Object|string} Set of variables to get input for.

- -

@callback {function} Continuation to pass control to when complete.

- -

Gets input from the user via stdin for the specified message(s) msg.

prompt.get = function (msg, callback) {
-  var vars = !Array.isArray(msg) ? [msg] : msg,
-      result = {};
-  
-  vars = vars.map(function (v) {
-    if (typeof v === 'string') {
-      v = v.toLowerCase();
-    }
-    
-    return prompt.properties[v] || v;
-  });
-  
-  function get(target, next) {
-    prompt.getInput(target, function (err, line) {
-      if (err) {
-        return next(err);
-      }
-      
-      var name = target.name || target;
-      result[name] = line;
-      next();
-    });
-  }
-  
-  async.forEachSeries(vars, get, function (err) {
-    return err ? callback(err) : callback(null, result);
-  });
-  
-  return prompt;
-};

function getInput (msg, validator, callback)

- -

@msg {Object|string} Variable to get input for.

- -

@callback {function} Continuation to pass control to when complete.

- -

Gets input from the user via stdin for the specified message msg.

prompt.getInput = function (prop, callback) {
-  var name   = prop.message || prop.name || prop,
-      raw    = ['prompt', ': ' + name.grey, ': '.grey],
-      read   = prop.hidden ? prompt.readLineHidden : prompt.readLine,
-      length, msg;
-  
-  if (prop.default) {
-    raw.splice(2, -1, ' (' + prop.default + ')');
-  }
-  

Calculate the raw length and colorize the prompt

  length = raw.join('').length;
-  raw[0] = raw[0];
-  msg = raw.join('');
-  
-  if (prop.help) {
-    prop.help.forEach(function (line) {
-      logger.help(line);
-    });
-  }
-  
-  stdout.write(msg); 
-  prompt.emit('prompt', prop);
-  
-  read.call(null, function (err, line) {
-    if (err) {
-      return callback(err);
-    }
-  
-    if (!line || line === '') {
-      line = prop.default || line;
-    }
-    
-    if (prop.validator || prop.empty === false) {
-      var valid;
-      
-      if (prop.validator) {
-        valid = prop.validator.test 
-         ? prop.validator.test(line)
-         : prop.validator(line);
-      }
-      
-      if (prop.empty === false && valid) {
-        valid = line.length > 0;
-        prop.warning = prop.warning || 'You must supply a value.';
-      }
-      
-      if (!valid) {
-        logger.error('Invalid input for ' + name.grey);
-        if (prop.warning) {
-          logger.error(prop.warning);
-        }
-        
-        prompt.emit('invalid', prop, line);
-        return prompt.getInput(prop, callback);
-      }
-    }
-        
-    logger.input(line.yellow);
-    callback(null, line);
-  });
-
-  return prompt;
-};

function addProperties (obj, properties, callback)

- -

@obj {Object} Object to add properties to

- -

@properties {Array} List of properties to get values for

- -

@callback {function} Continuation to pass control to when complete.

- -

Prompts the user for values each of the properties if obj does not already -have a value for the property. Responds with the modified object.

prompt.addProperties = function (obj, properties, callback) {
-  properties = properties.filter(function (prop) {
-    return typeof obj[prop] === 'undefined';
-  });
-  
-  if (properties.length === 0) {
-    return callback(obj);
-  }
-  
-  prompt.get(properties, function (err, results) {
-    if (err) {
-      return callback(err);
-    }
-    else if (!results) {
-      return callback(null, obj);
-    }
-    
-    function putNested (obj, path, value) {
-      var last = obj, key; 
-      
-      while (path.length > 1) {
-        key = path.shift();
-        if (!last[key]) {
-          last[key] = {};
-        }
-        
-        last = last[key];
-      }
-      
-      last[path.shift()] = value;
-    }
-    
-    Object.keys(results).forEach(function (key) {
-      putNested(obj, key.split('.'), results[key]);
-    });
-    
-    callback(null, obj);
-  });
-  
-  return prompt;
-};

function readLine (callback)

- -

@callback {function} Continuation to respond to when complete

- -

Gets a single line of input from the user.

prompt.readLine = function (callback) {
-  var value = '', buffer = '';
-  prompt.resume();
-  stdin.setEncoding('utf8');
-  stdin.on('error', callback);
-  stdin.on('data', function data (chunk) {
-    value += buffer + chunk;
-    buffer = '';
-    value = value.replace(/\r/g, '');
-    if (value.indexOf('\n') !== -1) {
-      if (value !== '\n') {
-        value = value.replace(/^\n+/, '');
-      }
-      
-      buffer = value.substr(value.indexOf('\n'));
-      val = value.substr(0, value.indexOf('\n'));
-      prompt.pause();
-      stdin.removeListener('data', data);
-      stdin.removeListener('error', callback);
-      value = value.trim();
-      callback(null, value);
-    }
-  });
-  
-  return prompt;
-};

function readLineHidden (callback)

- -

@callback {function} Continuation to respond to when complete

- -

Gets a single line of hidden input (i.e. rawMode = true) from the user.

prompt.readLineHidden = function (callback) {
-  var value = '', buffer = '';
-  stdio.setRawMode(true);
-  prompt.resume();
-  stdin.on('error', callback);
-  stdin.on('data', function data (c) {
-    c = '' + c;
-    switch (c) {
-      case '\n': case '\r': case '\r\n': case '\u0004':
-        stdio.setRawMode(false);
-        stdin.removeListener('data', data);
-        stdin.removeListener('error', callback);
-        value = value.trim();
-        stdout.write('\n');
-        stdout.flush();
-        prompt.pause();
-        return callback(null, value)
-      case '\u0003': case '\0':
-        stdout.write('\n');
-        process.exit(1);
-        break;
-      default:
-        value += buffer + c
-        buffer = '';
-        break;
-    }
-  });
-  
-  return prompt;
-};
-
-
diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/add-properties.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/add-properties.js deleted file mode 100644 index 1a56176..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/add-properties.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * add-properties.js: Example of how to add properties to an object using prompt. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -var obj = { - password: 'lamepassword', - mindset: 'NY' -} - -// -// Log the initial object. -// -console.log('Initial object to be extended:'); -console.dir(obj); - -// -// Add two properties to the empty object: username and email -// -prompt.addProperties(obj, ['username', 'email'], function (err) { - // - // Log the results. - // - console.log('Updated object received:'); - console.dir(obj); -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/existing-properties.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/existing-properties.js deleted file mode 100644 index d87503b..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/existing-properties.js +++ /dev/null @@ -1,35 +0,0 @@ -/* - * existing-properties.js: Example of using prompt with predefined properties. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -prompt.properties = { - email: { - format: 'email', - message: 'Must be a valid email address' - }, - password: { - hidden: true - } -}; - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: email, password -// -prompt.get(['email', 'password'], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' email: ' + result.email); - console.log(' password: ' + result.password); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/history.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/history.js deleted file mode 100644 index fd4369d..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/history.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - * history.js: Example of using the prompt history capabilities. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -var properties = { - properties: { - animal: { - description: 'Enter an animal', - default: 'dog', - pattern: /dog|cat/ - }, - sound: { - description: 'What sound does this animal make?', - conform: function (value) { - var animal = prompt.history(0).value; - - return animal === 'dog' && value === 'woof' - || animal === 'cat' && value === 'meow'; - } - } - } -} - -// -// Get two properties from the user -// -prompt.get(properties, function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' animal: ' + result.animal); - console.log(' sound: ' + result.sound); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/nested-properties-prompt.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/nested-properties-prompt.js deleted file mode 100644 index 25106a2..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/nested-properties-prompt.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * property-prompt.js: Example of using prompt with complex properties. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -var schema = { - properties: { - url: { - required: true, - format: 'url' - }, - auth: { - properties: { - username: { - required: true - }, - password: { - required: true, - hidden: true - } - } - } - } -}; - -prompt.start(); - -prompt.get(schema, function (err, result) { - console.log('Command-line input received:'); - console.log(' url: ' + result.url); - console.log(' auth:username: ' + result.auth.username); - console.log(' auth:password: ' + result.auth.password); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/old-schema.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/old-schema.js deleted file mode 100644 index 631b7b5..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/old-schema.js +++ /dev/null @@ -1,36 +0,0 @@ -/* - * simple-prompt.js: Simple example of using prompt. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: username and email -// -prompt.get([ - { - name: 'username', - validator: /^[a-z]+$/, - warning: 'Username should consist only lowercase alphabets', - empty: false - }, - { - name: 'email', - message: 'Email Address' - } -], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' email: ' + result.email); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/override-validation.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/override-validation.js deleted file mode 100644 index 8b02373..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/override-validation.js +++ /dev/null @@ -1,52 +0,0 @@ -/* - * override-validation.js: Example of using prompt with complex properties and command-line input. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'), - optimist = require('optimist'); - -var schema = { - properties: { - name: { - pattern: /^[a-zA-Z\s-]+$/, - message: 'Name must be only letters, spaces, or dashes', - required: true - }, - email: { - name: 'email', - format: 'email', - message: 'Must be a valid email address' - } - } -}; - -// -// Set the overrides -// -prompt.override = optimist.argv - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: email, password -// -prompt.get(schema, function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' name: ' + result.name); - console.log(' email: ' + result.email); -}); - -// try running -// $ node ./override-validation.js --name USER --email EMAIL -// You will only be asked for email becasue it's invalid -// $ node ./override-validation.js --name h$acker --email me@example.com -// You will only be asked for email becasue it's invalid \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/password.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/password.js deleted file mode 100644 index 72fc02d..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/password.js +++ /dev/null @@ -1,34 +0,0 @@ -/* - * password.js: Simple example of using prompt. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: username and password -// -prompt.get([{ - name: 'username', - required: true - }, { - name: 'password', - hidden: true, - conform: function (value) { - return true; - } - }], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' password: ' + result.password); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/prompt-override.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/prompt-override.js deleted file mode 100644 index 7f2848b..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/prompt-override.js +++ /dev/null @@ -1,36 +0,0 @@ -var prompt = require('../lib/prompt'), - optimist; - -try { - optimist = require('optimist'); -} catch (err) { - throw new Error([ - 'You need to install optimist before this example will work!', - 'Try: `npm install optimist`.' - ].join('\n')); -} - -// -// Set the overrides -// -prompt.override = optimist.argv - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: username and email -// -prompt.get(['username', 'email'], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' email: ' + result.email); - prompt.pause(); -}) - -// $ node ./prompt-override.js --username USER --email EMAIL diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/property-prompt.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/property-prompt.js deleted file mode 100644 index c8b343b..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/property-prompt.js +++ /dev/null @@ -1,45 +0,0 @@ -/* - * property-prompt.js: Example of using prompt with complex properties. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -var schema = { - properties: { - name: { - pattern: /^[a-zA-Z\s-]+$/, - message: 'Name must be only letters, spaces, or dashes', - required: true - }, - email: { - name: 'email', - format: 'email', - message: 'Must be a valid email address' - }, - password: { - required: true, - hidden: true - } - } -}; - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: email, password -// -prompt.get(schema, function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' name: ' + result.name); - console.log(' email: ' + result.email); - console.log(' password: ' + result.password); -}); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/simple-prompt.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/simple-prompt.js deleted file mode 100644 index 062e529..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/simple-prompt.js +++ /dev/null @@ -1,25 +0,0 @@ -/* - * simple-prompt.js: Simple example of using prompt. - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -// -// Get two properties from the user: username and email -// -prompt.get(['username', 'email'], function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' username: ' + result.username); - console.log(' email: ' + result.email); -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/yes-or-no-prompt.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/yes-or-no-prompt.js deleted file mode 100644 index 512b556..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/examples/yes-or-no-prompt.js +++ /dev/null @@ -1,32 +0,0 @@ -/* - * yes-or-no-prompt.js: Simple example of using prompt. - * - * (C) 2012, Nodejitsu Inc. - * - */ - -var prompt = require('../lib/prompt'); - -// -// Start the prompt -// -prompt.start(); - -var property = { - name: 'yesno', - message: 'are you sure?', - validator: /y[es]*|n[o]?/, - warning: 'Must respond yes or no', - default: 'no' -}; - -// -// Get the simple yes or no property -// -prompt.get(property, function (err, result) { - // - // Log the results. - // - console.log('Command-line input received:'); - console.log(' result: ' + result.yesno); -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/lib/prompt.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/lib/prompt.js deleted file mode 100644 index a19c19a..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/lib/prompt.js +++ /dev/null @@ -1,756 +0,0 @@ -/* - * prompt.js: Simple prompt for prompting information from the command line - * - * (C) 2010, Nodejitsu Inc. - * - */ - -var events = require('events'), - readline = require('readline'), - utile = require('utile'), - async = utile.async, - read = require('read'), - validate = require('revalidator').validate, - winston = require('winston'); - -// -// Monkey-punch readline.Interface to work-around -// https://github.com/joyent/node/issues/3860 -// -readline.Interface.prototype.setPrompt = function(prompt, length) { - this._prompt = prompt; - if (length) { - this._promptLength = length; - } else { - var lines = prompt.split(/[\r\n]/); - var lastLine = lines[lines.length - 1]; - this._promptLength = lastLine.replace(/\u001b\[(\d+(;\d+)*)?m/g, '').length; - } -}; - -// -// Expose version using `pkginfo` -// -require('pkginfo')(module, 'version'); - -var stdin, stdout, history = []; -var prompt = module.exports = Object.create(events.EventEmitter.prototype); -var logger = prompt.logger = new winston.Logger({ - transports: [new (winston.transports.Console)()] -}); - -prompt.started = false; -prompt.paused = false; -prompt.allowEmpty = false; -prompt.message = 'prompt'; -prompt.delimiter = ': '; -prompt.colors = true; - -// -// Create an empty object for the properties -// known to `prompt` -// -prompt.properties = {}; - -// -// Setup the default winston logger to use -// the `cli` levels and colors. -// -logger.cli(); - -// -// ### function start (options) -// #### @options {Object} **Optional** Options to consume by prompt -// Starts the prompt by listening to the appropriate events on `options.stdin` -// and `options.stdout`. If no streams are supplied, then `process.stdin` -// and `process.stdout` are used, respectively. -// -prompt.start = function (options) { - if (prompt.started) { - return; - } - - options = options || {}; - stdin = options.stdin || process.stdin; - stdout = options.stdout || process.stdout; - - // - // By default: Remember the last `10` prompt property / - // answer pairs and don't allow empty responses globally. - // - prompt.memory = options.memory || 10; - prompt.allowEmpty = options.allowEmpty || false; - prompt.message = options.message || prompt.message; - prompt.delimiter = options.delimiter || prompt.delimiter; - prompt.colors = options.colors || prompt.colors; - - if (process.platform !== 'win32') { - // windows falls apart trying to deal with SIGINT - process.on('SIGINT', function () { - stdout.write('\n'); - process.exit(1); - }); - } - - prompt.emit('start'); - prompt.started = true; - return prompt; -}; - -// -// ### function pause () -// Pauses input coming in from stdin -// -prompt.pause = function () { - if (!prompt.started || prompt.paused) { - return; - } - - stdin.pause(); - prompt.emit('pause'); - prompt.paused = true; - return prompt; -}; - -// -// ### function resume () -// Resumes input coming in from stdin -// -prompt.resume = function () { - if (!prompt.started || !prompt.paused) { - return; - } - - stdin.resume(); - prompt.emit('resume'); - prompt.paused = false; - return prompt; -}; - -// -// ### function history (search) -// #### @search {Number|string} Index or property name to find. -// Returns the `property:value` pair from within the prompts -// `history` array. -// -prompt.history = function (search) { - if (typeof search === 'number') { - return history[search] || {}; - } - - var names = history.map(function (pair) { - return typeof pair.property === 'string' - ? pair.property - : pair.property.name; - }); - - if (!~names.indexOf(search)) { - return null; - } - - return history.filter(function (pair) { - return typeof pair.property === 'string' - ? pair.property === search - : pair.property.name === search; - })[0]; -}; - -// -// ### function get (schema, callback) -// #### @schema {Array|Object|string} Set of variables to get input for. -// #### @callback {function} Continuation to pass control to when complete. -// Gets input from the user via stdin for the specified message(s) `msg`. -// -prompt.get = function (schema, callback) { - // - // Transforms a full JSON-schema into an array describing path and sub-schemas. - // Used for iteration purposes. - // - function untangle(schema, path) { - var results = []; - path = path || []; - - if (schema.properties) { - // - // Iterate over the properties in the schema and use recursion - // to process sub-properties. - // - Object.keys(schema.properties).forEach(function (key) { - var obj = {}; - obj[key] = schema.properties[key]; - - // - // Concat a sub-untangling to the results. - // - results = results.concat(untangle(obj[key], path.concat(key))); - }); - - // Return the results. - return results; - } - - // - // This is a schema "leaf". - // - return { - path: path, - schema: schema - }; - } - - // - // Iterate over the values in the schema, represented as - // a legit single-property object subschemas. Accepts `schema` - // of the forms: - // - // 'prop-name' - // - // ['string-name', { path: ['or-well-formed-subschema'], properties: ... }] - // - // { path: ['or-well-formed-subschema'], properties: ... ] } - // - // { properties: { 'schema-with-no-path' } } - // - // And transforms them all into - // - // { path: ['path', 'to', 'property'], properties: { path: { to: ...} } } - // - function iterate(schema, get, done) { - var iterator = [], - result = {}; - - if (typeof schema === 'string') { - // - // We can iterate over a single string. - // - iterator.push({ - path: [schema], - schema: prompt.properties[schema.toLowerCase()] || {} - }); - } - else if (Array.isArray(schema)) { - // - // An array of strings and/or single-prop schema and/or no-prop schema. - // - iterator = schema.map(function (element) { - if (typeof element === 'string') { - return { - path: [element], - schema: prompt.properties[element.toLowerCase()] || {} - }; - } - else if (element.properties) { - return { - path: [Object.keys(element.properties)[0]], - schema: element.properties[Object.keys(element.properties)[0]] - }; - } - else if (element.path && element.schema) { - return element; - } - else { - return { - path: [element.name || 'question'], - schema: element - }; - } - }); - } - else if (schema.properties) { - // - // Or a complete schema `untangle` it for use. - // - iterator = untangle(schema); - } - else { - // - // Or a partial schema and path. - // TODO: Evaluate need for this option. - // - iterator = [{ - schema: schema.schema ? schema.schema : schema, - path: schema.path || [schema.name || 'question'] - }]; - } - - // - // Now, iterate and assemble the result. - // - async.forEachSeries(iterator, function (branch, next) { - get(branch, function assembler(err, line) { - if (err) { - return next(err); - } - - function build(path, line) { - var obj = {}; - if (path.length) { - obj[path[0]] = build(path.slice(1), line); - return obj; - } - - return line; - } - - function attach(obj, attr) { - var keys; - if (typeof attr !== 'object' || attr instanceof Array) { - return attr; - } - - keys = Object.keys(attr); - if (keys.length) { - if (!obj[keys[0]]) { - obj[keys[0]] = {}; - } - obj[keys[0]] = attach(obj[keys[0]], attr[keys[0]]); - } - - return obj; - } - - result = attach(result, build(branch.path, line)); - next(); - }); - }, function (err) { - return err ? done(err) : done(null, result); - }); - } - - iterate(schema, function get(target, next) { - prompt.getInput(target, function (err, line) { - return err ? next(err) : next(null, line); - }); - }, callback); - - return prompt; -}; - -// -// ### function confirm (msg, callback) -// #### @msg {Array|Object|string} set of message to confirm -// #### @callback {function} Continuation to pass control to when complete. -// Confirms a single or series of messages by prompting the user for a Y/N response. -// Returns `true` if ALL messages are answered in the affirmative, otherwise `false` -// -// `msg` can be a string, or object (or array of strings/objects). -// An object may have the following properties: -// -// { -// description: 'yes/no' // message to prompt user -// pattern: /^[yntf]{1}/i // optional - regex defining acceptable responses -// yes: /^[yt]{1}/i // optional - regex defining `affirmative` responses -// message: 'yes/no' // optional - message to display for invalid responses -// } -// -prompt.confirm = function (/* msg, options, callback */) { - var args = Array.prototype.slice.call(arguments), - msg = args.shift(), - callback = args.pop(), - opts = args.shift(), - vars = !Array.isArray(msg) ? [msg] : msg, - RX_Y = /^[yt]{1}/i, - RX_YN = /^[yntf]{1}/i; - - function confirm(target, next) { - var yes = target.yes || RX_Y, - options = utile.mixin({ - description: typeof target === 'string' ? target : target.description||'yes/no', - pattern: target.pattern || RX_YN, - name: 'confirm', - message: target.message || 'yes/no' - }, opts || {}); - - - prompt.get([options], function (err, result) { - next(err ? false : yes.test(result[options.name])); - }); - } - - async.rejectSeries(vars, confirm, function(result) { - callback(null, result.length===0); - }); -}; - - -// Variables needed outside of getInput for multiline arrays. -var tmp = []; - - -// ### function getInput (prop, callback) -// #### @prop {Object|string} Variable to get input for. -// #### @callback {function} Continuation to pass control to when complete. -// Gets input from the user via stdin for the specified message `msg`. -// -prompt.getInput = function (prop, callback) { - var schema = prop.schema || prop, - propName = prop.path && prop.path.join(':') || prop, - storedSchema = prompt.properties[propName.toLowerCase()], - delim = prompt.delimiter, - defaultLine, - against, - hidden, - length, - valid, - name, - raw, - msg; - - // - // If there is a stored schema for `propName` in `propmpt.properties` - // then use it. - // - if (schema instanceof Object && !Object.keys(schema).length && - typeof storedSchema !== 'undefined') { - schema = storedSchema; - } - - // - // Build a proper validation schema if we just have a string - // and no `storedSchema`. - // - if (typeof prop === 'string' && !storedSchema) { - schema = {}; - } - - schema = convert(schema); - defaultLine = schema.default; - name = prop.description || schema.description || propName; - raw = prompt.colors - ? [prompt.message, delim + name.grey, delim.grey] - : [prompt.message, delim + name, delim]; - - prop = { - schema: schema, - path: propName.split(':') - }; - - // - // If the schema has no `properties` value then set - // it to an object containing the current schema - // for `propName`. - // - if (!schema.properties) { - schema = (function () { - var obj = { properties: {} }; - obj.properties[propName] = schema; - return obj; - })(); - } - - // - // Handle overrides here. - // TODO: Make overrides nestable - // - if (prompt.override && prompt.override[propName]) { - if (prompt._performValidation(name, prop, prompt.override, schema, -1, callback)) { - return callback(null, prompt.override[propName]); - } - - delete prompt.override[propName]; - } - - var type = (schema.properties && schema.properties[propName] && - schema.properties[propName].type || '').toLowerCase().trim(), - wait = type === 'array'; - - if (type === 'array') { - length = prop.schema.maxItems; - if (length) { - msg = (tmp.length + 1).toString() + '/' + length.toString(); - } - else { - msg = (tmp.length + 1).toString(); - } - msg += delim; - raw.push(prompt.colors ? msg.grey : msg); - } - - // - // Calculate the raw length and colorize the prompt - // - length = raw.join('').length; - raw[0] = raw[0]; - msg = raw.join(''); - - if (schema.help) { - schema.help.forEach(function (line) { - logger.help(line); - }); - } - - // - // Emit a "prompting" event - // - prompt.emit('prompt', prop); - - // - // If there is no default line, set it to an empty string - // - if(typeof defaultLine === 'undefined') { - defaultLine = ''; - } - - // - // set to string for readline ( will not accept Numbers ) - // - defaultLine = defaultLine.toString(); - - // - // Make the actual read - // - read({ - prompt: msg, - silent: prop.schema && prop.schema.hidden, - default: defaultLine, - input: stdin, - output: stdout - }, function (err, line) { - if (err && wait === false) { - return callback(err); - } - - var against = {}, - numericInput, - isValid; - - if (line !== '') { - - if (schema.properties[propName]) { - var type = (schema.properties[propName].type || '').toLowerCase().trim() || undefined; - - // - // Attempt to parse input as a float if the schema expects a number. - // - if (type == 'number') { - numericInput = parseFloat(line, 10); - if (!isNaN(numericInput)) { - line = numericInput; - } - } - - // - // Attempt to parse input as a boolean if the schema expects a boolean - // - if (type == 'boolean') { - if(line === "true") { - line = true; - } - if(line === "false") { - line = false; - } - } - - // - // If the type is an array, wait for the end. Fixes #54 - // - if (type == 'array') { - var length = prop.schema.maxItems; - if (err) { - if (err.message == 'canceled') { - wait = false; - stdout.write('\n'); - } - } - else { - if (length) { - if (tmp.length + 1 < length) { - isValid = false; - wait = true; - } - else { - isValid = true; - wait = false; - } - } - else { - isValid = false; - wait = true; - } - tmp.push(line); - } - line = tmp; - } - } - - against[propName] = line; - } - - if (prop && prop.schema.before) { - line = prop.schema.before(line); - } - - // Validate - if (isValid === undefined) isValid = prompt._performValidation(name, prop, against, schema, line, callback); - - if (!isValid) { - return prompt.getInput(prop, callback); - } - - // - // Log the resulting line, append this `property:value` - // pair to the history for `prompt` and respond to - // the callback. - // - logger.input(line.yellow); - prompt._remember(propName, line); - callback(null, line); - - // Make sure `tmp` is emptied - tmp = []; - }); -}; - -// -// ### function performValidation (name, prop, against, schema, line, callback) -// #### @name {Object} Variable name -// #### @prop {Object|string} Variable to get input for. -// #### @against {Object} Input -// #### @schema {Object} Validation schema -// #### @line {String|Boolean} Input line -// #### @callback {function} Continuation to pass control to when complete. -// Perfoms user input validation, print errors if needed and returns value according to validation -// -prompt._performValidation = function (name, prop, against, schema, line, callback) { - var numericInput, valid, msg; - - try { - valid = validate(against, schema); - } - catch (err) { - return (line !== -1) ? callback(err) : false; - } - - if (!valid.valid) { - msg = line !== -1 ? 'Invalid input for ' : 'Invalid command-line input for '; - - if (prompt.colors) { - logger.error(msg + name.grey); - } - else { - logger.error(msg + name); - } - - if (prop.schema.message) { - logger.error(prop.schema.message); - } - - prompt.emit('invalid', prop, line); - } - - return valid.valid; -}; - -// -// ### function addProperties (obj, properties, callback) -// #### @obj {Object} Object to add properties to -// #### @properties {Array} List of properties to get values for -// #### @callback {function} Continuation to pass control to when complete. -// Prompts the user for values each of the `properties` if `obj` does not already -// have a value for the property. Responds with the modified object. -// -prompt.addProperties = function (obj, properties, callback) { - properties = properties.filter(function (prop) { - return typeof obj[prop] === 'undefined'; - }); - - if (properties.length === 0) { - return callback(obj); - } - - prompt.get(properties, function (err, results) { - if (err) { - return callback(err); - } - else if (!results) { - return callback(null, obj); - } - - function putNested (obj, path, value) { - var last = obj, key; - - while (path.length > 1) { - key = path.shift(); - if (!last[key]) { - last[key] = {}; - } - - last = last[key]; - } - - last[path.shift()] = value; - } - - Object.keys(results).forEach(function (key) { - putNested(obj, key.split('.'), results[key]); - }); - - callback(null, obj); - }); - - return prompt; -}; - -// -// ### @private function _remember (property, value) -// #### @property {Object|string} Property that the value is in response to. -// #### @value {string} User input captured by `prompt`. -// Prepends the `property:value` pair into the private `history` Array -// for `prompt` so that it can be accessed later. -// -prompt._remember = function (property, value) { - history.unshift({ - property: property, - value: value - }); - - // - // If the length of the `history` Array - // has exceeded the specified length to remember, - // `prompt.memory`, truncate it. - // - if (history.length > prompt.memory) { - history.splice(prompt.memory, history.length - prompt.memory); - } -}; - -// -// ### @private function convert (schema) -// #### @schema {Object} Schema for a property -// Converts the schema into new format if it is in old format -// -function convert(schema) { - var newProps = Object.keys(validate.messages), - newSchema = false, - key; - - newProps = newProps.concat(['description', 'dependencies']); - - for (key in schema) { - if (newProps.indexOf(key) > 0) { - newSchema = true; - break; - } - } - - if (!newSchema || schema.validator || schema.warning || typeof schema.empty !== 'undefined') { - schema.description = schema.message; - schema.message = schema.warning; - - if (typeof schema.validator === 'function') { - schema.conform = schema.validator; - } else { - schema.pattern = schema.validator; - } - - if (typeof schema.empty !== 'undefined') { - schema.required = !(schema.empty); - } - - delete schema.warning; - delete schema.validator; - delete schema.empty; - } - - return schema; -} diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/.npmignore b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/.npmignore deleted file mode 100644 index 9303c34..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules/ -npm-debug.log \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/LICENSE b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/LICENSE deleted file mode 100644 index ed4a4e7..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2010 Charlie Robbins. - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/README.md b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/README.md deleted file mode 100644 index 332704e..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/README.md +++ /dev/null @@ -1,86 +0,0 @@ -# node-pkginfo - -An easy way to expose properties on a module from a package.json - -## Installation - -### Installing npm (node package manager) -``` - curl http://npmjs.org/install.sh | sh -``` - -### Installing pkginfo -``` - [sudo] npm install pkginfo -``` - -## Motivation -How often when writing node.js modules have you written the following line(s) of code? - -* Hard code your version string into your code - -``` js - exports.version = '0.1.0'; -``` - -* Programmatically expose the version from the package.json - -``` js - exports.version = JSON.parse(fs.readFileSync('/path/to/package.json', 'utf8')).version; -``` - -In other words, how often have you wanted to expose basic information from your package.json onto your module programmatically? **WELL NOW YOU CAN!** - -## Usage - -Using `pkginfo` is idiot-proof, just require and invoke it. - -``` js - var pkginfo = require('pkginfo')(module); - - console.dir(module.exports); -``` - -By invoking the `pkginfo` module all of the properties in your `package.json` file will be automatically exposed on the callee module (i.e. the parent module of `pkginfo`). - -Here's a sample of the output: - -``` - { name: 'simple-app', - description: 'A test fixture for pkginfo', - version: '0.1.0', - author: 'Charlie Robbins ', - keywords: [ 'test', 'fixture' ], - main: './index.js', - scripts: { test: 'vows test/*-test.js --spec' }, - engines: { node: '>= 0.4.0' } } -``` - -### Expose specific properties -If you don't want to expose **all** properties on from your `package.json` on your module then simple pass those properties to the `pkginfo` function: - -``` js - var pkginfo = require('pkginfo')(module, 'version', 'author'); - - console.dir(module.exports); -``` - -``` - { version: '0.1.0', - author: 'Charlie Robbins ' } -``` - -If you're looking for further usage see the [examples][0] included in this repository. - -## Run Tests -Tests are written in [vows][1] and give complete coverage of all APIs. - -``` - vows test/*-test.js --spec -``` - -[0]: https://github.com/indexzero/node-pkginfo/tree/master/examples -[1]: http://vowsjs.org - -#### Author: [Charlie Robbins](http://nodejitsu.com) -#### License: MIT \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/docco.css b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/docco.css deleted file mode 100644 index bd54134..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/docco.css +++ /dev/null @@ -1,194 +0,0 @@ -/*--------------------- Layout and Typography ----------------------------*/ -body { - font-family: 'Palatino Linotype', 'Book Antiqua', Palatino, FreeSerif, serif; - font-size: 15px; - line-height: 22px; - color: #252519; - margin: 0; padding: 0; -} -a { - color: #261a3b; -} - a:visited { - color: #261a3b; - } -p { - margin: 0 0 15px 0; -} -h4, h5, h6 { - color: #333; - margin: 6px 0 6px 0; - font-size: 13px; -} - h2, h3 { - margin-bottom: 0; - color: #000; - } - h1 { - margin-top: 40px; - margin-bottom: 15px; - color: #000; - } -#container { - position: relative; -} -#background { - position: fixed; - top: 0; left: 525px; right: 0; bottom: 0; - background: #f5f5ff; - border-left: 1px solid #e5e5ee; - z-index: -1; -} -#jump_to, #jump_page { - background: white; - -webkit-box-shadow: 0 0 25px #777; -moz-box-shadow: 0 0 25px #777; - -webkit-border-bottom-left-radius: 5px; -moz-border-radius-bottomleft: 5px; - font: 10px Arial; - text-transform: uppercase; - cursor: pointer; - text-align: right; -} -#jump_to, #jump_wrapper { - position: fixed; - right: 0; top: 0; - padding: 5px 10px; -} - #jump_wrapper { - padding: 0; - display: none; - } - #jump_to:hover #jump_wrapper { - display: block; - } - #jump_page { - padding: 5px 0 3px; - margin: 0 0 25px 25px; - } - #jump_page .source { - display: block; - padding: 5px 10px; - text-decoration: none; - border-top: 1px solid #eee; - } - #jump_page .source:hover { - background: #f5f5ff; - } - #jump_page .source:first-child { - } -table td { - border: 0; - outline: 0; -} - td.docs, th.docs { - max-width: 450px; - min-width: 450px; - min-height: 5px; - padding: 10px 25px 1px 50px; - overflow-x: hidden; - vertical-align: top; - text-align: left; - } - .docs pre { - margin: 15px 0 15px; - padding-left: 15px; - } - .docs p tt, .docs p code { - background: #f8f8ff; - border: 1px solid #dedede; - font-size: 12px; - padding: 0 0.2em; - } - .pilwrap { - position: relative; - } - .pilcrow { - font: 12px Arial; - text-decoration: none; - color: #454545; - position: absolute; - top: 3px; left: -20px; - padding: 1px 2px; - opacity: 0; - -webkit-transition: opacity 0.2s linear; - } - td.docs:hover .pilcrow { - opacity: 1; - } - td.code, th.code { - padding: 14px 15px 16px 25px; - width: 100%; - vertical-align: top; - background: #f5f5ff; - border-left: 1px solid #e5e5ee; - } - pre, tt, code { - font-size: 12px; line-height: 18px; - font-family: Menlo, Monaco, Consolas, "Lucida Console", monospace; - margin: 0; padding: 0; - } - - -/*---------------------- Syntax Highlighting -----------------------------*/ -td.linenos { background-color: #f0f0f0; padding-right: 10px; } -span.lineno { background-color: #f0f0f0; padding: 0 5px 0 5px; } -body .hll { background-color: #ffffcc } -body .c { color: #408080; font-style: italic } /* Comment */ -body .err { border: 1px solid #FF0000 } /* Error */ -body .k { color: #954121 } /* Keyword */ -body .o { color: #666666 } /* Operator */ -body .cm { color: #408080; font-style: italic } /* Comment.Multiline */ -body .cp { color: #BC7A00 } /* Comment.Preproc */ -body .c1 { color: #408080; font-style: italic } /* Comment.Single */ -body .cs { color: #408080; font-style: italic } /* Comment.Special */ -body .gd { color: #A00000 } /* Generic.Deleted */ -body .ge { font-style: italic } /* Generic.Emph */ -body .gr { color: #FF0000 } /* Generic.Error */ -body .gh { color: #000080; font-weight: bold } /* Generic.Heading */ -body .gi { color: #00A000 } /* Generic.Inserted */ -body .go { color: #808080 } /* Generic.Output */ -body .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ -body .gs { font-weight: bold } /* Generic.Strong */ -body .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ -body .gt { color: #0040D0 } /* Generic.Traceback */ -body .kc { color: #954121 } /* Keyword.Constant */ -body .kd { color: #954121; font-weight: bold } /* Keyword.Declaration */ -body .kn { color: #954121; font-weight: bold } /* Keyword.Namespace */ -body .kp { color: #954121 } /* Keyword.Pseudo */ -body .kr { color: #954121; font-weight: bold } /* Keyword.Reserved */ -body .kt { color: #B00040 } /* Keyword.Type */ -body .m { color: #666666 } /* Literal.Number */ -body .s { color: #219161 } /* Literal.String */ -body .na { color: #7D9029 } /* Name.Attribute */ -body .nb { color: #954121 } /* Name.Builtin */ -body .nc { color: #0000FF; font-weight: bold } /* Name.Class */ -body .no { color: #880000 } /* Name.Constant */ -body .nd { color: #AA22FF } /* Name.Decorator */ -body .ni { color: #999999; font-weight: bold } /* Name.Entity */ -body .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ -body .nf { color: #0000FF } /* Name.Function */ -body .nl { color: #A0A000 } /* Name.Label */ -body .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ -body .nt { color: #954121; font-weight: bold } /* Name.Tag */ -body .nv { color: #19469D } /* Name.Variable */ -body .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ -body .w { color: #bbbbbb } /* Text.Whitespace */ -body .mf { color: #666666 } /* Literal.Number.Float */ -body .mh { color: #666666 } /* Literal.Number.Hex */ -body .mi { color: #666666 } /* Literal.Number.Integer */ -body .mo { color: #666666 } /* Literal.Number.Oct */ -body .sb { color: #219161 } /* Literal.String.Backtick */ -body .sc { color: #219161 } /* Literal.String.Char */ -body .sd { color: #219161; font-style: italic } /* Literal.String.Doc */ -body .s2 { color: #219161 } /* Literal.String.Double */ -body .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ -body .sh { color: #219161 } /* Literal.String.Heredoc */ -body .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ -body .sx { color: #954121 } /* Literal.String.Other */ -body .sr { color: #BB6688 } /* Literal.String.Regex */ -body .s1 { color: #219161 } /* Literal.String.Single */ -body .ss { color: #19469D } /* Literal.String.Symbol */ -body .bp { color: #954121 } /* Name.Builtin.Pseudo */ -body .vc { color: #19469D } /* Name.Variable.Class */ -body .vg { color: #19469D } /* Name.Variable.Global */ -body .vi { color: #19469D } /* Name.Variable.Instance */ -body .il { color: #666666 } /* Literal.Number.Integer.Long */ \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html deleted file mode 100644 index bf615fa..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/docs/pkginfo.html +++ /dev/null @@ -1,101 +0,0 @@ - pkginfo.js

pkginfo.js

/*
- * pkginfo.js: Top-level include for the pkginfo module
- *
- * (C) 2011, Charlie Robbins
- *
- */
- 
-var fs = require('fs'),
-    path = require('path');

function pkginfo ([options, 'property', 'property' ..])

- -

@pmodule {Module} Parent module to read from.

- -

@options {Object|Array|string} Optional Options used when exposing properties.

- -

@arguments {string...} Optional Specified properties to expose.

- -

Exposes properties from the package.json file for the parent module on -it's exports. Valid usage:

- -

require('pkginfo')()

- -

require('pkginfo')('version', 'author');

- -

require('pkginfo')(['version', 'author']);

- -

require('pkginfo')({ include: ['version', 'author'] });

var pkginfo = module.exports = function (pmodule, options) {
-  var args = [].slice.call(arguments, 2).filter(function (arg) {
-    return typeof arg === 'string';
-  });
-  

Parse variable arguments

  if (Array.isArray(options)) {

If the options passed in is an Array assume that -it is the Array of properties to expose from the -on the package.json file on the parent module.

    options = { include: options };
-  }
-  else if (typeof options === 'string') {

Otherwise if the first argument is a string, then -assume that it is the first property to expose from -the package.json file on the parent module.

    options = { include: [options] };
-  }
-  

Setup default options

  options = options || { include: [] };
-  
-  if (args.length > 0) {

If additional string arguments have been passed in -then add them to the properties to expose on the -parent module.

    options.include = options.include.concat(args);
-  }
-  
-  var pkg = pkginfo.read(pmodule, options.dir).package;
-  Object.keys(pkg).forEach(function (key) {
-    if (options.include.length > 0 && !~options.include.indexOf(key)) {
-      return;
-    }
-    
-    if (!pmodule.exports[key]) {
-      pmodule.exports[key] = pkg[key];
-    }
-  });
-  
-  return pkginfo;
-};

function find (dir)

- -

@pmodule {Module} Parent module to read from.

- -

@dir {string} Optional Directory to start search from.

- -

Searches up the directory tree from dir until it finds a directory -which contains a package.json file.

pkginfo.find = function (pmodule, dir) {
-  dir = dir || pmodule.filename;
-  dir = path.dirname(dir); 
-  
-  var files = fs.readdirSync(dir);
-  
-  if (~files.indexOf('package.json')) {
-    return path.join(dir, 'package.json');
-  }
-  
-  if (dir === '/') {
-    throw new Error('Could not find package.json up from: ' + dir);
-  }
-  
-  return pkginfo.find(dir);
-};

function read (pmodule, dir)

- -

@pmodule {Module} Parent module to read from.

- -

@dir {string} Optional Directory to start search from.

- -

Searches up the directory tree from dir until it finds a directory -which contains a package.json file and returns the package information.

pkginfo.read = function (pmodule, dir) { 
-  dir = pkginfo.find(pmodule, dir);
-  
-  var data = fs.readFileSync(dir).toString();
-      
-  return {
-    dir: dir, 
-    package: JSON.parse(data)
-  };
-};

Call pkginfo on this module and expose version.

pkginfo(module, {
-  dir: __dirname,
-  include: ['version'],
-  target: pkginfo
-});
-
-
\ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/all-properties.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/all-properties.js deleted file mode 100644 index fd1d831..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/all-properties.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * all-properties.js: Sample of including all properties from a package.json file - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - pkginfo = require('../lib/pkginfo')(module); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/array-argument.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/array-argument.js deleted file mode 100644 index b1b6848..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/array-argument.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * array-argument.js: Sample of including specific properties from a package.json file - * using Array argument syntax. - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - pkginfo = require('../lib/pkginfo')(module, ['version', 'author']); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/multiple-properties.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/multiple-properties.js deleted file mode 100644 index b4b5fd6..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/multiple-properties.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * multiple-properties.js: Sample of including multiple properties from a package.json file - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - pkginfo = require('../lib/pkginfo')(module, 'version', 'author'); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/object-argument.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/object-argument.js deleted file mode 100644 index 28420c8..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/object-argument.js +++ /dev/null @@ -1,22 +0,0 @@ -/* - * object-argument.js: Sample of including specific properties from a package.json file - * using Object argument syntax. - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - pkginfo = require('../lib/pkginfo')(module, { - include: ['version', 'author'] - }); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/package.json b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/package.json deleted file mode 100644 index 1f2f01c..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "name": "simple-app", - "description": "A test fixture for pkginfo", - "version": "0.1.0", - "author": "Charlie Robbins ", - "keywords": ["test", "fixture"], - "main": "./index.js", - "scripts": { "test": "vows test/*-test.js --spec" }, - "engines": { "node": ">= 0.4.0" } -} diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/single-property.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/single-property.js deleted file mode 100644 index 4f44561..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/single-property.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * single-property.js: Sample of including a single specific properties from a package.json file - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - pkginfo = require('../lib/pkginfo')(module, 'version'); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/subdir/package.json b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/subdir/package.json deleted file mode 100644 index aa85410..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/subdir/package.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "name": "simple-app-subdir", - "description": "A test fixture for pkginfo", - "version": "0.1.0", - "author": "Charlie Robbins ", - "keywords": ["test", "fixture"], - "main": "./index.js", - "scripts": { "test": "vows test/*-test.js --spec" }, - "engines": { "node": ">= 0.4.0" }, - "subdironly": "true" -} diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/target-dir.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/target-dir.js deleted file mode 100644 index 88770e6..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/examples/target-dir.js +++ /dev/null @@ -1,20 +0,0 @@ -/* - * multiple-properties.js: Sample of including multiple properties from a package.json file - * - * (C) 2011, Charlie Robbins - * - */ - -var util = require('util'), - path = require('path'), - pkginfo = require('../lib/pkginfo')(module, { dir: path.resolve(__dirname, 'subdir' )}); - -exports.someFunction = function () { - console.log('some of your custom logic here'); -}; - -console.log('Inspecting module:'); -console.dir(module.exports); - -console.log('\nAll exports exposed:'); -console.error(Object.keys(module.exports)); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/lib/pkginfo.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/lib/pkginfo.js deleted file mode 100644 index c5dc020..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/lib/pkginfo.js +++ /dev/null @@ -1,136 +0,0 @@ -/* - * pkginfo.js: Top-level include for the pkginfo module - * - * (C) 2011, Charlie Robbins - * - */ - -var fs = require('fs'), - path = require('path'); - -// -// ### function pkginfo ([options, 'property', 'property' ..]) -// #### @pmodule {Module} Parent module to read from. -// #### @options {Object|Array|string} **Optional** Options used when exposing properties. -// #### @arguments {string...} **Optional** Specified properties to expose. -// Exposes properties from the package.json file for the parent module on -// it's exports. Valid usage: -// -// `require('pkginfo')()` -// -// `require('pkginfo')('version', 'author');` -// -// `require('pkginfo')(['version', 'author']);` -// -// `require('pkginfo')({ include: ['version', 'author'] });` -// -var pkginfo = module.exports = function (pmodule, options) { - var args = [].slice.call(arguments, 2).filter(function (arg) { - return typeof arg === 'string'; - }); - - // - // **Parse variable arguments** - // - if (Array.isArray(options)) { - // - // If the options passed in is an Array assume that - // it is the Array of properties to expose from the - // on the package.json file on the parent module. - // - options = { include: options }; - } - else if (typeof options === 'string') { - // - // Otherwise if the first argument is a string, then - // assume that it is the first property to expose from - // the package.json file on the parent module. - // - options = { include: [options] }; - } - - // - // **Setup default options** - // - options = options || {}; - - // ensure that includes have been defined - options.include = options.include || []; - - if (args.length > 0) { - // - // If additional string arguments have been passed in - // then add them to the properties to expose on the - // parent module. - // - options.include = options.include.concat(args); - } - - var pkg = pkginfo.read(pmodule, options.dir).package; - Object.keys(pkg).forEach(function (key) { - if (options.include.length > 0 && !~options.include.indexOf(key)) { - return; - } - - if (!pmodule.exports[key]) { - pmodule.exports[key] = pkg[key]; - } - }); - - return pkginfo; -}; - -// -// ### function find (dir) -// #### @pmodule {Module} Parent module to read from. -// #### @dir {string} **Optional** Directory to start search from. -// Searches up the directory tree from `dir` until it finds a directory -// which contains a `package.json` file. -// -pkginfo.find = function (pmodule, dir) { - if (! dir) { - dir = path.dirname(pmodule.filename); - } - - var files = fs.readdirSync(dir); - - if (~files.indexOf('package.json')) { - return path.join(dir, 'package.json'); - } - - if (dir === '/') { - throw new Error('Could not find package.json up from: ' + dir); - } - else if (!dir || dir === '.') { - throw new Error('Cannot find package.json from unspecified directory'); - } - - return pkginfo.find(pmodule, path.dirname(dir)); -}; - -// -// ### function read (pmodule, dir) -// #### @pmodule {Module} Parent module to read from. -// #### @dir {string} **Optional** Directory to start search from. -// Searches up the directory tree from `dir` until it finds a directory -// which contains a `package.json` file and returns the package information. -// -pkginfo.read = function (pmodule, dir) { - dir = pkginfo.find(pmodule, dir); - - var data = fs.readFileSync(dir).toString(); - - return { - dir: dir, - package: JSON.parse(data) - }; -}; - -// -// Call `pkginfo` on this module and expose version. -// -pkginfo(module, { - dir: __dirname, - include: ['version'], - target: pkginfo -}); \ No newline at end of file diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/package.json b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/package.json deleted file mode 100644 index 968bcc1..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/package.json +++ /dev/null @@ -1,54 +0,0 @@ -{ - "name": "pkginfo", - "version": "0.3.0", - "description": "An easy way to expose properties on a module from a package.json", - "author": { - "name": "Charlie Robbins", - "email": "charlie.robbins@gmail.com" - }, - "repository": { - "type": "git", - "url": "http://github.com/indexzero/node-pkginfo.git" - }, - "keywords": [ - "info", - "tools", - "package.json" - ], - "devDependencies": { - "vows": "0.7.x" - }, - "main": "./lib/pkginfo", - "scripts": { - "test": "vows test/*-test.js --spec" - }, - "engines": { - "node": ">= 0.4.0" - }, - "readme": "# node-pkginfo\n\nAn easy way to expose properties on a module from a package.json\n\n## Installation\n\n### Installing npm (node package manager)\n```\n curl http://npmjs.org/install.sh | sh\n```\n\n### Installing pkginfo\n```\n [sudo] npm install pkginfo\n```\n\n## Motivation\nHow often when writing node.js modules have you written the following line(s) of code? \n\n* Hard code your version string into your code\n\n``` js\n exports.version = '0.1.0';\n```\n\n* Programmatically expose the version from the package.json\n\n``` js\n exports.version = JSON.parse(fs.readFileSync('/path/to/package.json', 'utf8')).version;\n```\n\nIn other words, how often have you wanted to expose basic information from your package.json onto your module programmatically? **WELL NOW YOU CAN!**\n\n## Usage\n\nUsing `pkginfo` is idiot-proof, just require and invoke it. \n\n``` js\n var pkginfo = require('pkginfo')(module);\n \n console.dir(module.exports);\n```\n\nBy invoking the `pkginfo` module all of the properties in your `package.json` file will be automatically exposed on the callee module (i.e. the parent module of `pkginfo`). \n\nHere's a sample of the output:\n\n```\n { name: 'simple-app',\n description: 'A test fixture for pkginfo',\n version: '0.1.0',\n author: 'Charlie Robbins ',\n keywords: [ 'test', 'fixture' ],\n main: './index.js',\n scripts: { test: 'vows test/*-test.js --spec' },\n engines: { node: '>= 0.4.0' } }\n```\n\n### Expose specific properties\nIf you don't want to expose **all** properties on from your `package.json` on your module then simple pass those properties to the `pkginfo` function:\n\n``` js\n var pkginfo = require('pkginfo')(module, 'version', 'author');\n \n console.dir(module.exports);\n```\n\n```\n { version: '0.1.0',\n author: 'Charlie Robbins ' }\n```\n\nIf you're looking for further usage see the [examples][0] included in this repository. \n\n## Run Tests\nTests are written in [vows][1] and give complete coverage of all APIs.\n\n```\n vows test/*-test.js --spec\n```\n\n[0]: https://github.com/indexzero/node-pkginfo/tree/master/examples\n[1]: http://vowsjs.org\n\n#### Author: [Charlie Robbins](http://nodejitsu.com)\n#### License: MIT", - "readmeFilename": "README.md", - "_id": "pkginfo@0.3.0", - "dist": { - "shasum": "726411401039fe9b009eea86614295d5f3a54276", - "tarball": "http://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz" - }, - "_npmVersion": "1.1.66", - "_npmUser": { - "name": "indexzero", - "email": "charlie.robbins@gmail.com" - }, - "maintainers": [ - { - "name": "indexzero", - "email": "charlie.robbins@gmail.com" - } - ], - "directories": {}, - "_shasum": "726411401039fe9b009eea86614295d5f3a54276", - "_from": "pkginfo@0.x.x", - "_resolved": "https://registry.npmjs.org/pkginfo/-/pkginfo-0.3.0.tgz", - "bugs": { - "url": "https://github.com/indexzero/node-pkginfo/issues" - }, - "homepage": "https://github.com/indexzero/node-pkginfo" -} diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/test/pkginfo-test.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/test/pkginfo-test.js deleted file mode 100644 index a59f077..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/pkginfo/test/pkginfo-test.js +++ /dev/null @@ -1,83 +0,0 @@ -/* - * pkginfo-test.js: Tests for the pkginfo module. - * - * (C) 2011, Charlie Robbins - * - */ - -var assert = require('assert'), - exec = require('child_process').exec, - fs = require('fs'), - path = require('path'), - vows = require('vows'), - pkginfo = require('../lib/pkginfo'); - -function assertProperties (source, target) { - assert.lengthOf(source, target.length + 1); - target.forEach(function (prop) { - assert.isTrue(!!~source.indexOf(prop)); - }); -} - -function compareWithExample(targetPath) { - var examplePaths = ['package.json']; - - if (targetPath) { - examplePaths.unshift(targetPath); - } - - return function(exposed) { - var pkg = fs.readFileSync(path.join.apply(null, [__dirname, '..', 'examples'].concat(examplePaths))).toString(), - keys = Object.keys(JSON.parse(pkg)); - - assertProperties(exposed, keys); - }; -} - -function testExposes (options) { - return { - topic: function () { - exec('node ' + path.join(__dirname, '..', 'examples', options.script), this.callback); - }, - "should expose that property correctly": function (err, stdout, stderr) { - assert.isNull(err); - - var exposed = stderr.match(/'(\w+)'/ig).map(function (p) { - return p.substring(1, p.length - 1); - }); - - return !options.assert - ? assertProperties(exposed, options.properties) - : options.assert(exposed); - } - } -} - -vows.describe('pkginfo').addBatch({ - "When using the pkginfo module": { - "and passed a single `string` argument": testExposes({ - script: 'single-property.js', - properties: ['version'] - }), - "and passed multiple `string` arguments": testExposes({ - script: 'multiple-properties.js', - properties: ['version', 'author'] - }), - "and passed an `object` argument": testExposes({ - script: 'object-argument.js', - properties: ['version', 'author'] - }), - "and passed an `array` argument": testExposes({ - script: 'array-argument.js', - properties: ['version', 'author'] - }), - "and read from a specified directory": testExposes({ - script: 'target-dir.js', - assert: compareWithExample('subdir') - }), - "and passed no arguments": testExposes({ - script: 'all-properties.js', - assert: compareWithExample() - }) - } -}).export(module); diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/.npmignore b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/.npmignore deleted file mode 100644 index 0db216b..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/.npmignore +++ /dev/null @@ -1,2 +0,0 @@ -npm-debug.log -node_modules diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENCE b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENCE deleted file mode 100644 index 74489e2..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENCE +++ /dev/null @@ -1,25 +0,0 @@ -Copyright (c) Isaac Z. Schlueter -All rights reserved. - -The BSD License - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: -1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. -2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - -THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS -``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED -TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR -PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS -BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENSE b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENSE deleted file mode 100644 index 19129e3..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/README.md b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/README.md deleted file mode 100644 index 5967fad..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/README.md +++ /dev/null @@ -1,53 +0,0 @@ -## read - -For reading user input from stdin. - -Similar to the `readline` builtin's `question()` method, but with a -few more features. - -## USAGE - -```javascript -var read = require("read") -read(options, callback) -``` - -The callback gets called with either the user input, or the default -specified, or an error, as `callback(error, result, isDefault)` -node style. - -## OPTIONS - -Every option is optional. - -* `prompt` What to write to stdout before reading input. -* `silent` Don't echo the output as the user types it. -* `replace` Replace silenced characters with the supplied character value. -* `timeout` Number of ms to wait for user input before giving up. -* `default` The default value if the user enters nothing. -* `edit` Allow the user to edit the default value. -* `terminal` Treat the output as a TTY, whether it is or not. -* `input` Readable stream to get input data from. (default `process.stdin`) -* `output` Writeable stream to write prompts to. (default: `process.stdout`) - -If silent is true, and the input is a TTY, then read will set raw -mode, and read character by character. - -## COMPATIBILITY - -This module works sort of with node 0.6. It does not work with node -versions less than 0.6. It is best on node 0.8. - -On node version 0.6, it will remove all listeners on the input -stream's `data` and `keypress` events, because the readline module did -not fully clean up after itself in that version of node, and did not -make it possible to clean up after it in a way that has no potential -for side effects. - -Additionally, some of the readline options (like `terminal`) will not -function in versions of node before 0.8, because they were not -implemented in the builtin readline module. - -## CONTRIBUTING - -Patches welcome. diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/example/example.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/example/example.js deleted file mode 100644 index cf213bf..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/example/example.js +++ /dev/null @@ -1,13 +0,0 @@ -var read = require("../lib/read.js") - -read({prompt: "Username: ", default: "test-user" }, function (er, user) { - read({prompt: "Password: ", default: "test-pass", silent: true }, function (er, pass) { - read({prompt: "Password again: ", default: "test-pass", silent: true }, function (er, pass2) { - console.error({user: user, - pass: pass, - verify: pass2, - passMatch: (pass === pass2)}) - console.error("the program should exit now") - }) - }) -}) diff --git a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/lib/read.js b/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/lib/read.js deleted file mode 100644 index a93d1b3..0000000 --- a/computer-science/01-introduction-to-cs-and-programming-mit/src/node_modules/prompt/node_modules/read/lib/read.js +++ /dev/null @@ -1,113 +0,0 @@ - -module.exports = read - -var readline = require('readline') -var Mute = require('mute-stream') - -function read (opts, cb) { - if (opts.num) { - throw new Error('read() no longer accepts a char number limit') - } - - if (typeof opts.default !== 'undefined' && - typeof opts.default !== 'string' && - typeof opts.default !== 'number') { - throw new Error('default value must be string or number') - } - - var input = opts.input || process.stdin - var output = opts.output || process.stdout - var prompt = (opts.prompt || '').trim() + ' ' - var silent = opts.silent - var editDef = false - var timeout = opts.timeout - - var def = opts.default || '' - if (def) { - if (silent) { - prompt += '(