From d860d0864e918b827017c5df4c96f65c62790d3c Mon Sep 17 00:00:00 2001 From: Shashank Date: Fri, 21 Dec 2018 21:15:23 +0545 Subject: [PATCH 01/10] Add @Shashankjain12 as a contributor --- .all-contributorsrc | 10 ++++++++++ CONTRIBUTORS.md | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/.all-contributorsrc b/.all-contributorsrc index 485e1629..a8cda2ee 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -111,6 +111,16 @@ "doc", "code" ] + }, + { + "login": "Shashankjain12", + "name": "Shashank jain", + "avatar_url": "https://avatars1.githubusercontent.com/u/20285786?v=4", + "profile": "http://www.myshashank.tech", + "contributions": [ + "doc", + "code" + ] } ] } diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index b3033a7a..42a33c5f 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -1,5 +1,5 @@ -[![All Contributors](https://img.shields.io/badge/all_contributors-10-orange.svg?style=flat-square)](#contributors) +[![All Contributors](https://img.shields.io/badge/all_contributors-11-orange.svg?style=flat-square)](#contributors) ## Contributors Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds/all-contributors#emoji-key)): @@ -8,7 +8,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds | [
MADHAV BAHL](http://madhavbahl.tech/)
[💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=MadhavBahlMD "Code") [📝](#blog-MadhavBahlMD "Blogposts") [📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=MadhavBahlMD "Documentation") [🎨](#design-MadhavBahlMD "Design") [✅](#tutorial-MadhavBahlMD "Tutorials") | [
Rajdeep Roy Chowdhury](http://www.linkedin.com/in/razdeeproychowdhury)
[💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Razdeep "Code") [📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Razdeep "Documentation") [✅](#tutorial-Razdeep "Tutorials") | [
Hrishi](https://hrishi1999.github.io)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Hrishi1999 "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Hrishi1999 "Code") | [
Bhanu Ailani](https://github.com/Bhanu0202)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Bhanu0202 "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Bhanu0202 "Code") | [
Deepak Sharma](https://sourcerer.io/dsdsharma)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=dsdsharma "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=dsdsharma "Code") | [
Ramanpreet Singh](https://github.com/Ramanpreet6262)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Ramanpreet6262 "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Ramanpreet6262 "Code") | [
Anil Khatri](https://imkaka.github.io/)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=imkaka "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=imkaka "Code") | | :---: | :---: | :---: | :---: | :---: | :---: | :---: | -| [
Ashwek Swamy](https://github.com/ashwek)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=ashwek "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=ashwek "Code") | [
Dhruv Gupta](https://github.com/dhruv-gupta14)
[💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=dhruv-gupta14 "Code") | [
Aadit Kamat](https://sg.linkedin.com/in/aadit-kamat-12a5a8140)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=aaditkamat "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=aaditkamat "Code") | +| [
Ashwek Swamy](https://github.com/ashwek)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=ashwek "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=ashwek "Code") | [
Dhruv Gupta](https://github.com/dhruv-gupta14)
[💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=dhruv-gupta14 "Code") | [
Aadit Kamat](https://sg.linkedin.com/in/aadit-kamat-12a5a8140)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=aaditkamat "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=aaditkamat "Code") | [
Shashank jain](http://www.myshashank.tech)
[📖](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Shashankjain12 "Documentation") [💻](https://github.com/MadhavBahlMD/DailyCodeBase/commits?author=Shashankjain12 "Code") | This project follows the [all-contributors](https://github.com/kentcdodds/all-contributors) specification. Contributions of any kind welcome! From 25c3000cdfcb2874e7df8fccb5034971045002f1 Mon Sep 17 00:00:00 2001 From: Shashank Date: Fri, 21 Dec 2018 21:17:03 +0545 Subject: [PATCH 02/10] contribution commit --- package-lock.json | 288 +++++++++++++++++++++++----------------------- 1 file changed, 144 insertions(+), 144 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2fc099db..65bb0d1f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,10 +10,10 @@ "integrity": "sha512-FBHEW6Jf5TB9MGBgUUA9XHkTbjXYfAUjY43ACMfmdMRHniyoMHjHjzD50OK8LGDWQwp4rWEsIq5kEqq7rvIM1g==", "dev": true, "requires": { - "fast-deep-equal": "2.0.1", - "fast-json-stable-stringify": "2.0.0", - "json-schema-traverse": "0.4.1", - "uri-js": "4.2.2" + "fast-deep-equal": "^2.0.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" } }, "all-contributors-cli": { @@ -22,13 +22,13 @@ "integrity": "sha512-9kgEa/s6dF6K7ky7eZcFTDcbVJWDZP9WK0YCZTmU1IbmwIAGu81/tiDdg/woTnw3VYtpzq4SCXxPlDymLfw+Mg==", "dev": true, "requires": { - "async": "2.6.1", - "chalk": "2.4.1", - "inquirer": "4.0.2", - "lodash": "4.17.11", - "pify": "3.0.0", - "request": "2.88.0", - "yargs": "10.1.2" + "async": "^2.0.0-rc.1", + "chalk": "^2.3.0", + "inquirer": "^4.0.0", + "lodash": "^4.11.2", + "pify": "^3.0.0", + "request": "^2.72.0", + "yargs": "^10.0.3" } }, "ansi-escapes": { @@ -49,7 +49,7 @@ "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", "dev": true, "requires": { - "color-convert": "1.9.3" + "color-convert": "^1.9.0" } }, "asn1": { @@ -58,7 +58,7 @@ "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", "dev": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": "~2.1.0" } }, "assert-plus": { @@ -73,7 +73,7 @@ "integrity": "sha512-fNEiL2+AZt6AlAw/29Cr0UDe4sRAHCpEHh54WMz+Bb7QfNcFw4h3loofyJpLeQs4Yx7yuqu/2dLgM5hKOs6HlQ==", "dev": true, "requires": { - "lodash": "4.17.11" + "lodash": "^4.17.10" } }, "asynckit": { @@ -100,7 +100,7 @@ "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", "dev": true, "requires": { - "tweetnacl": "0.14.5" + "tweetnacl": "^0.14.3" } }, "camelcase": { @@ -121,9 +121,9 @@ "integrity": "sha512-ObN6h1v2fTJSmUXoS3nMQ92LbDK9be4TV+6G+omQlGJFdcUX5heKi1LZ1YnRMIgwTLEj3E24bT6tYni50rlCfQ==", "dev": true, "requires": { - "ansi-styles": "3.2.1", - "escape-string-regexp": "1.0.5", - "supports-color": "5.5.0" + "ansi-styles": "^3.2.1", + "escape-string-regexp": "^1.0.5", + "supports-color": "^5.3.0" } }, "chardet": { @@ -138,7 +138,7 @@ "integrity": "sha1-s12sN2R5+sw+lHR9QdDQ9SOP/LU=", "dev": true, "requires": { - "restore-cursor": "2.0.0" + "restore-cursor": "^2.0.0" } }, "cli-width": { @@ -153,9 +153,9 @@ "integrity": "sha512-4FG+RSG9DL7uEwRUZXZn3SS34DiDPfzP0VOiEwtUWlE+AR2EIg+hSyvrIgUUfhdgR/UkAeW2QHgeP+hWrXs7jQ==", "dev": true, "requires": { - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "wrap-ansi": "2.1.0" + "string-width": "^2.1.1", + "strip-ansi": "^4.0.0", + "wrap-ansi": "^2.0.0" } }, "code-point-at": { @@ -185,7 +185,7 @@ "integrity": "sha512-brWl9y6vOB1xYPZcpZde3N9zDByXTosAeMDo4p1wzo6UMOX4vumB+TP1RZ76sfE6Md68Q0NJSrE/gbezd4Ul+w==", "dev": true, "requires": { - "delayed-stream": "1.0.0" + "delayed-stream": "~1.0.0" } }, "core-util-is": { @@ -200,9 +200,9 @@ "integrity": "sha1-6L0O/uWPz/b4+UUQoKVUu/ojVEk=", "dev": true, "requires": { - "lru-cache": "4.1.5", - "shebang-command": "1.2.0", - "which": "1.3.1" + "lru-cache": "^4.0.1", + "shebang-command": "^1.2.0", + "which": "^1.2.9" } }, "dashdash": { @@ -211,7 +211,7 @@ "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "decamelize": { @@ -232,8 +232,8 @@ "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", "dev": true, "requires": { - "jsbn": "0.1.1", - "safer-buffer": "2.1.2" + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" } }, "escape-string-regexp": { @@ -248,13 +248,13 @@ "integrity": "sha1-lEvs00zEHuMqY6n68nrVpl/Fl3c=", "dev": true, "requires": { - "cross-spawn": "5.1.0", - "get-stream": "3.0.0", - "is-stream": "1.1.0", - "npm-run-path": "2.0.2", - "p-finally": "1.0.0", - "signal-exit": "3.0.2", - "strip-eof": "1.0.0" + "cross-spawn": "^5.0.1", + "get-stream": "^3.0.0", + "is-stream": "^1.1.0", + "npm-run-path": "^2.0.0", + "p-finally": "^1.0.0", + "signal-exit": "^3.0.0", + "strip-eof": "^1.0.0" } }, "extend": { @@ -269,9 +269,9 @@ "integrity": "sha512-bSn6gvGxKt+b7+6TKEv1ZycHleA7aHhRHyAqJyp5pbUFuYYNIzpZnQDk7AsYckyWdEnTeAnay0aCy2aV6iTk9A==", "dev": true, "requires": { - "chardet": "0.4.2", - "iconv-lite": "0.4.24", - "tmp": "0.0.33" + "chardet": "^0.4.0", + "iconv-lite": "^0.4.17", + "tmp": "^0.0.33" } }, "extsprintf": { @@ -298,7 +298,7 @@ "integrity": "sha1-OrGi0qYsi/tDGgyUy3l6L84nyWI=", "dev": true, "requires": { - "escape-string-regexp": "1.0.5" + "escape-string-regexp": "^1.0.5" } }, "find-up": { @@ -307,7 +307,7 @@ "integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=", "dev": true, "requires": { - "locate-path": "2.0.0" + "locate-path": "^2.0.0" } }, "forever-agent": { @@ -322,9 +322,9 @@ "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", "dev": true, "requires": { - "asynckit": "0.4.0", - "combined-stream": "1.0.7", - "mime-types": "2.1.21" + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" } }, "get-caller-file": { @@ -345,7 +345,7 @@ "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", "dev": true, "requires": { - "assert-plus": "1.0.0" + "assert-plus": "^1.0.0" } }, "har-schema": { @@ -360,8 +360,8 @@ "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", "dev": true, "requires": { - "ajv": "6.6.2", - "har-schema": "2.0.0" + "ajv": "^6.5.5", + "har-schema": "^2.0.0" } }, "has-flag": { @@ -376,9 +376,9 @@ "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", "dev": true, "requires": { - "assert-plus": "1.0.0", - "jsprim": "1.4.1", - "sshpk": "1.15.2" + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" } }, "iconv-lite": { @@ -387,7 +387,7 @@ "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "requires": { - "safer-buffer": "2.1.2" + "safer-buffer": ">= 2.1.2 < 3" } }, "inquirer": { @@ -396,20 +396,20 @@ "integrity": "sha512-+f3qDNeZpkhFJ61NBA9jXDrGGhoQuqfEum9A681c9oHoIbGgVqjogKynjB/vNVP+nVu9w3FbFQ35c0ibU0MaIQ==", "dev": true, "requires": { - "ansi-escapes": "3.1.0", - "chalk": "2.4.1", - "cli-cursor": "2.1.0", - "cli-width": "2.2.0", - "external-editor": "2.2.0", - "figures": "2.0.0", - "lodash": "4.17.11", + "ansi-escapes": "^3.0.0", + "chalk": "^2.0.0", + "cli-cursor": "^2.1.0", + "cli-width": "^2.0.0", + "external-editor": "^2.1.0", + "figures": "^2.0.0", + "lodash": "^4.3.0", "mute-stream": "0.0.7", - "run-async": "2.3.0", - "rx-lite": "4.0.8", - "rx-lite-aggregates": "4.0.8", - "string-width": "2.1.1", - "strip-ansi": "4.0.0", - "through": "2.3.8" + "run-async": "^2.2.0", + "rx-lite": "^4.0.8", + "rx-lite-aggregates": "^4.0.8", + "string-width": "^2.1.0", + "strip-ansi": "^4.0.0", + "through": "^2.3.6" } }, "invert-kv": { @@ -496,7 +496,7 @@ "integrity": "sha1-MIrMr6C8SDo4Z7S28rlQYlHRuDU=", "dev": true, "requires": { - "invert-kv": "1.0.0" + "invert-kv": "^1.0.0" } }, "locate-path": { @@ -505,8 +505,8 @@ "integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=", "dev": true, "requires": { - "p-locate": "2.0.0", - "path-exists": "3.0.0" + "p-locate": "^2.0.0", + "path-exists": "^3.0.0" } }, "lodash": { @@ -521,8 +521,8 @@ "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", "dev": true, "requires": { - "pseudomap": "1.0.2", - "yallist": "2.1.2" + "pseudomap": "^1.0.2", + "yallist": "^2.1.2" } }, "mem": { @@ -531,7 +531,7 @@ "integrity": "sha1-Xt1StIXKHZAP5kiVUFOZoN+kX3Y=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "mime-db": { @@ -546,7 +546,7 @@ "integrity": "sha512-3iL6DbwpyLzjR3xHSFNFeb9Nz/M8WDkX33t1GFQnFOllWk8pOrh/LSrB5OXlnlW5P9LH73X6loW/eogc+F5lJg==", "dev": true, "requires": { - "mime-db": "1.37.0" + "mime-db": "~1.37.0" } }, "mimic-fn": { @@ -567,7 +567,7 @@ "integrity": "sha1-NakjLfo11wZ7TLLd8jV7GHFTbF8=", "dev": true, "requires": { - "path-key": "2.0.1" + "path-key": "^2.0.0" } }, "number-is-nan": { @@ -588,7 +588,7 @@ "integrity": "sha1-BnQoIw/WdEOyeUsiu6UotoZ5YtQ=", "dev": true, "requires": { - "mimic-fn": "1.2.0" + "mimic-fn": "^1.0.0" } }, "os-locale": { @@ -597,9 +597,9 @@ "integrity": "sha512-3sslG3zJbEYcaC4YVAvDorjGxc7tv6KVATnLPZONiljsUncvihe9BQoVCEs0RZ1kmf4Hk9OBqlZfJZWI4GanKA==", "dev": true, "requires": { - "execa": "0.7.0", - "lcid": "1.0.0", - "mem": "1.1.0" + "execa": "^0.7.0", + "lcid": "^1.0.0", + "mem": "^1.1.0" } }, "os-tmpdir": { @@ -620,7 +620,7 @@ "integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==", "dev": true, "requires": { - "p-try": "1.0.0" + "p-try": "^1.0.0" } }, "p-locate": { @@ -629,7 +629,7 @@ "integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=", "dev": true, "requires": { - "p-limit": "1.3.0" + "p-limit": "^1.1.0" } }, "p-try": { @@ -692,26 +692,26 @@ "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", "dev": true, "requires": { - "aws-sign2": "0.7.0", - "aws4": "1.8.0", - "caseless": "0.12.0", - "combined-stream": "1.0.7", - "extend": "3.0.2", - "forever-agent": "0.6.1", - "form-data": "2.3.3", - "har-validator": "5.1.3", - "http-signature": "1.2.0", - "is-typedarray": "1.0.0", - "isstream": "0.1.2", - "json-stringify-safe": "5.0.1", - "mime-types": "2.1.21", - "oauth-sign": "0.9.0", - "performance-now": "2.1.0", - "qs": "6.5.2", - "safe-buffer": "5.1.2", - "tough-cookie": "2.4.3", - "tunnel-agent": "0.6.0", - "uuid": "3.3.2" + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.0", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.4.3", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" } }, "require-directory": { @@ -732,8 +732,8 @@ "integrity": "sha1-n37ih/gv0ybU/RYpI9YhKe7g368=", "dev": true, "requires": { - "onetime": "2.0.1", - "signal-exit": "3.0.2" + "onetime": "^2.0.0", + "signal-exit": "^3.0.2" } }, "run-async": { @@ -742,7 +742,7 @@ "integrity": "sha1-A3GrSuC91yDUFm19/aZP96RFpsA=", "dev": true, "requires": { - "is-promise": "2.1.0" + "is-promise": "^2.1.0" } }, "rx-lite": { @@ -757,7 +757,7 @@ "integrity": "sha1-dTuHqJoRyVRnxKwWJsTvxOBcZ74=", "dev": true, "requires": { - "rx-lite": "4.0.8" + "rx-lite": "*" } }, "safe-buffer": { @@ -784,7 +784,7 @@ "integrity": "sha1-RKrGW2lbAzmJaMOfNj/uXer98eo=", "dev": true, "requires": { - "shebang-regex": "1.0.0" + "shebang-regex": "^1.0.0" } }, "shebang-regex": { @@ -805,15 +805,15 @@ "integrity": "sha512-Ra/OXQtuh0/enyl4ETZAfTaeksa6BXks5ZcjpSUNrjBr0DvrJKX+1fsKDPpT9TBXgHAFsa4510aNVgI8g/+SzA==", "dev": true, "requires": { - "asn1": "0.2.4", - "assert-plus": "1.0.0", - "bcrypt-pbkdf": "1.0.2", - "dashdash": "1.14.1", - "ecc-jsbn": "0.1.2", - "getpass": "0.1.7", - "jsbn": "0.1.1", - "safer-buffer": "2.1.2", - "tweetnacl": "0.14.5" + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" } }, "string-width": { @@ -822,8 +822,8 @@ "integrity": "sha512-nOqH59deCq9SRHlxq1Aw85Jnt4w6KvLKqWVik6oA9ZklXLNIOlqg4F2yrT1MVaTjAqvVwdfeZ7w7aCvJD7ugkw==", "dev": true, "requires": { - "is-fullwidth-code-point": "2.0.0", - "strip-ansi": "4.0.0" + "is-fullwidth-code-point": "^2.0.0", + "strip-ansi": "^4.0.0" } }, "strip-ansi": { @@ -832,7 +832,7 @@ "integrity": "sha1-qEeQIusaw2iocTibY1JixQXuNo8=", "dev": true, "requires": { - "ansi-regex": "3.0.0" + "ansi-regex": "^3.0.0" } }, "strip-eof": { @@ -847,7 +847,7 @@ "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", "dev": true, "requires": { - "has-flag": "3.0.0" + "has-flag": "^3.0.0" } }, "through": { @@ -862,7 +862,7 @@ "integrity": "sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw==", "dev": true, "requires": { - "os-tmpdir": "1.0.2" + "os-tmpdir": "~1.0.2" } }, "tough-cookie": { @@ -871,8 +871,8 @@ "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", "dev": true, "requires": { - "psl": "1.1.31", - "punycode": "1.4.1" + "psl": "^1.1.24", + "punycode": "^1.4.1" }, "dependencies": { "punycode": { @@ -889,7 +889,7 @@ "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", "dev": true, "requires": { - "safe-buffer": "5.1.2" + "safe-buffer": "^5.0.1" } }, "tweetnacl": { @@ -904,7 +904,7 @@ "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", "dev": true, "requires": { - "punycode": "2.1.1" + "punycode": "^2.1.0" } }, "uuid": { @@ -919,9 +919,9 @@ "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", "dev": true, "requires": { - "assert-plus": "1.0.0", + "assert-plus": "^1.0.0", "core-util-is": "1.0.2", - "extsprintf": "1.3.0" + "extsprintf": "^1.2.0" } }, "which": { @@ -930,7 +930,7 @@ "integrity": "sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ==", "dev": true, "requires": { - "isexe": "2.0.0" + "isexe": "^2.0.0" } }, "which-module": { @@ -945,8 +945,8 @@ "integrity": "sha1-2Pw9KE3QV5T+hJc8rs3Rz4JP3YU=", "dev": true, "requires": { - "string-width": "1.0.2", - "strip-ansi": "3.0.1" + "string-width": "^1.0.1", + "strip-ansi": "^3.0.1" }, "dependencies": { "ansi-regex": { @@ -961,7 +961,7 @@ "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "requires": { - "number-is-nan": "1.0.1" + "number-is-nan": "^1.0.0" } }, "string-width": { @@ -970,9 +970,9 @@ "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "requires": { - "code-point-at": "1.1.0", - "is-fullwidth-code-point": "1.0.0", - "strip-ansi": "3.0.1" + "code-point-at": "^1.0.0", + "is-fullwidth-code-point": "^1.0.0", + "strip-ansi": "^3.0.0" } }, "strip-ansi": { @@ -981,7 +981,7 @@ "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "requires": { - "ansi-regex": "2.1.1" + "ansi-regex": "^2.0.0" } } } @@ -1004,18 +1004,18 @@ "integrity": "sha512-ivSoxqBGYOqQVruxD35+EyCFDYNEFL/Uo6FcOnz+9xZdZzK0Zzw4r4KhbrME1Oo2gOggwJod2MnsdamSG7H9ig==", "dev": true, "requires": { - "cliui": "4.1.0", - "decamelize": "1.2.0", - "find-up": "2.1.0", - "get-caller-file": "1.0.3", - "os-locale": "2.1.0", - "require-directory": "2.1.1", - "require-main-filename": "1.0.1", - "set-blocking": "2.0.0", - "string-width": "2.1.1", - "which-module": "2.0.0", - "y18n": "3.2.1", - "yargs-parser": "8.1.0" + "cliui": "^4.0.0", + "decamelize": "^1.1.1", + "find-up": "^2.1.0", + "get-caller-file": "^1.0.1", + "os-locale": "^2.0.0", + "require-directory": "^2.1.1", + "require-main-filename": "^1.0.1", + "set-blocking": "^2.0.0", + "string-width": "^2.0.0", + "which-module": "^2.0.0", + "y18n": "^3.2.1", + "yargs-parser": "^8.1.0" } }, "yargs-parser": { @@ -1024,7 +1024,7 @@ "integrity": "sha512-yP+6QqN8BmrgW2ggLtTbdrOyBNSI7zBa4IykmiV5R1wl1JWNxQvWhMfMdmzIYtKU7oP3OOInY/tl2ov3BDjnJQ==", "dev": true, "requires": { - "camelcase": "4.1.0" + "camelcase": "^4.1.0" } } } From 10a8ec760cc598183b8bf2a62dcfb85593be6ed2 Mon Sep 17 00:00:00 2001 From: Shashank Date: Fri, 21 Dec 2018 21:22:24 +0545 Subject: [PATCH 03/10] Day1 and Day2 --- Day1/C++/ShashankFizz.cpp | 32 +++++++++++++++++++++++++++ Day1/Python3/ShashankFizz.py | 16 ++++++++++++++ Day1/README.md | 22 +++++++++++++++++- Day2/Python/String_and_pallindrome.py | 15 +++++++++++++ Day2/README.md | 21 +++++++++++++++++- 5 files changed, 104 insertions(+), 2 deletions(-) create mode 100644 Day1/C++/ShashankFizz.cpp create mode 100644 Day1/Python3/ShashankFizz.py create mode 100644 Day2/Python/String_and_pallindrome.py diff --git a/Day1/C++/ShashankFizz.cpp b/Day1/C++/ShashankFizz.cpp new file mode 100644 index 00000000..45b3ca46 --- /dev/null +++ b/Day1/C++/ShashankFizz.cpp @@ -0,0 +1,32 @@ +/** + * @author: Shashankjain12 + * @date: 21/12/2018 +**/ +#include +using namespace std; +int main() +{ + int i,n; + cout<<"FIZZ BUZZ \n"; + cout<<"Enter the input for the game"; + cin>>n; + for(i=1;i<=n;i++) + { + if((i%3==0)&&(i%5==0)) + { + cout<<"fizzbuzz,"; + } + else if((i%5)==0) + { + cout<<"buzz,"; + } + + else if((i%3)==0) + { + cout<<"fizz,"; + } + else + cout< Date: Mon, 24 Dec 2018 20:13:19 +0530 Subject: [PATCH 04/10] Update README.md --- Day2/README.md | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Day2/README.md b/Day2/README.md index b9b6f4c6..00510a5d 100644 --- a/Day2/README.md +++ b/Day2/README.md @@ -657,8 +657,7 @@ if d==e: else: print("Not a pallindrome") ``` -<<<<<<< HEAD -======= + ## Ruby implementation ### [palindrome.rb](./Ruby/palindrome.rb) @@ -674,5 +673,5 @@ def palindrome(str) str != nil and str === short_solution(str) end ``` ->>>>>>> upstream/master + From 087554853148aff2b0236d7142045f8603dcd187 Mon Sep 17 00:00:00 2001 From: Shashank Date: Tue, 25 Dec 2018 01:23:33 +0545 Subject: [PATCH 05/10] Day 3 updated --- Day3/Python/Shashankham.py | 13 +++++++++++++ Day3/README.md | 18 +++++++++++++++++- 2 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 Day3/Python/Shashankham.py diff --git a/Day3/Python/Shashankham.py b/Day3/Python/Shashankham.py new file mode 100644 index 00000000..a41e4376 --- /dev/null +++ b/Day3/Python/Shashankham.py @@ -0,0 +1,13 @@ +""" + * @author: Shashank Jain + * @date: 24/12/2018 +""" + +a=input("Enter the first string?") +b=input("Enter the second string?") +c=list(a.replace(" ","")) +d=list(b.replace(" ","")) +k=[i for i,j in zip(c,d) if i!=j] +print("list of unmatched characters are:",k) +print("number of characters not matching are:",len(k)) + diff --git a/Day3/README.md b/Day3/README.md index f02f6c05..0e168b33 100644 --- a/Day3/README.md +++ b/Day3/README.md @@ -215,7 +215,6 @@ void main(){ printf("Hamming Distance = %d", HD); } ``` - ## Python Implementation ### [Solution](./Python/HammingDistance.py) @@ -244,7 +243,24 @@ if( HD is None ): else: print("Hamming Distance = ", HD) ``` +##Python Implementation + +### [Solution](./Python/Shashankham.py) +``` Python +""" + * @author: Shashank Jain + * @date: 24/12/2018 +""" +a=input("Enter the first string?") +b=input("Enter the second string?") +c=list(a.replace(" ","")) +d=list(b.replace(" ","")) +k=[i for i,j in zip(c,d) if i!=j] +print("list of unmatched characters are:",k) +print("number of characters not matching are:",len(k)) + +``` ## Why Hamming Distance? The #1 reason for not being successful is inconsistency, and it is a common trend that people start something and on give up on the third day itself, and one of the major reasons behind that is that they find it difficult to continue.  From 6372be9ae9e764d569db6656403be30b4fc4c273 Mon Sep 17 00:00:00 2001 From: Shashank Date: Tue, 25 Dec 2018 22:36:03 +0545 Subject: [PATCH 06/10] Day 4 --- day4/Python/Shashankchar.py | 16 +++++++++++++++ day4/Python/Shashankvowel.py | 14 +++++++++++++ day4/README.md | 39 ++++++++++++++++++++++++++++++++++-- 3 files changed, 67 insertions(+), 2 deletions(-) create mode 100644 day4/Python/Shashankchar.py create mode 100644 day4/Python/Shashankvowel.py diff --git a/day4/Python/Shashankchar.py b/day4/Python/Shashankchar.py new file mode 100644 index 00000000..412f09df --- /dev/null +++ b/day4/Python/Shashankchar.py @@ -0,0 +1,16 @@ +""" +* @author: Shashank Jain +* @date: 25/12/2018 +""" +a=input("Enter the string to count frequent occuring characters?") +b=list(a.replace(" ","").lower()) +c=[] +for i in b: + d=(i,b.count(i)) + c.append(d) + +e=dict(list(set(c))) +f=max(e) +g=max(e.values()) +print("maximum occurence is of {0}:{1}".format(f,g)) + diff --git a/day4/Python/Shashankvowel.py b/day4/Python/Shashankvowel.py new file mode 100644 index 00000000..9413c64e --- /dev/null +++ b/day4/Python/Shashankvowel.py @@ -0,0 +1,14 @@ +""" + * @author: Shashank Jain + * @date: 25/12/2018 +""" +a=input("Enter the string to count no. of vowels?") +b=list(a.replace(" ","").lower()) +c=['a','e','i','o','u'] +count=0 +for i in b: + for j in c: + if (j==i): + count=count+1 +print(count) + diff --git a/day4/README.md b/day4/README.md index 36a0b72b..fe4ea327 100644 --- a/day4/README.md +++ b/day4/README.md @@ -239,10 +239,26 @@ for char in string: # Print the result print("Number of vowels in the string are : ",count) +``` +##Python Implementation +##[Solution](./Python/Shashankvowels.py) +""" + * @author: Shashank Jain + * @date: 25/12/2018 +""" +```Python +a=input("Enter the string to count no. of vowels?") +b=list(a.replace(" ","").lower()) +c=['a','e','i','o','u'] +count=0 +for i in b: + for j in c: + if (j==i): + count=count+1 +print(count) ``` -
- + ## Part B -- Max Chars Problem **Question** - Given a string, write a program to return the character that appears most frequently in that string @@ -342,5 +358,24 @@ print("The most occouring character in the string is : ", max(characters,key=cha ``` +##Python Implementation +###[Solution] (./Python/Shashankchar.py) +""" +* @author: Shashank Jain +* @date: 25/12/2018 +""" +``` Python +a=input("Enter the string to count frequent occuring characters?") +b=list(a.replace(" ","").lower()) +c=[] +for i in b: + d=(i,b.count(i)) + c.append(d) + +e=dict(list(set(c))) +f=max(e) +g=max(e.values()) +print("maximum occurence is of {0}:{1}".format(f,g)) +``` From 48cee2f6f06c7c1fb2702e6b6b3f2938212e16ac Mon Sep 17 00:00:00 2001 From: Shashank jain Date: Tue, 25 Dec 2018 17:30:27 +0545 Subject: [PATCH 07/10] Update README.md --- Day2/README.md | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/Day2/README.md b/Day2/README.md index 56629011..0c107acb 100644 --- a/Day2/README.md +++ b/Day2/README.md @@ -662,16 +662,6 @@ if d==e: else: print("Not a pallindrome") ``` -<<<<<<< HEAD -<<<<<<< HEAD -<<<<<<< HEAD -======= -======= - ->>>>>>> 59b8bd388e0854765c3122d6e802a85978004667 -======= - ->>>>>>> 6aef1378d44840c82d996e7d0ad58664d70abeae ## Ruby implementation ### [palindrome.rb](./Ruby/palindrome.rb) From cb0f2dd418eba15a64d5c435a254cce71f7a683c Mon Sep 17 00:00:00 2001 From: Shashank jain Date: Tue, 25 Dec 2018 17:30:53 +0545 Subject: [PATCH 08/10] Update README.md --- Day3/README.md | 1 - 1 file changed, 1 deletion(-) diff --git a/Day3/README.md b/Day3/README.md index b534d793..552fc579 100644 --- a/Day3/README.md +++ b/Day3/README.md @@ -282,7 +282,6 @@ else: print("Hamming Distance = ", HD) ``` ##Python Implementation -<<<<<<< HEAD ### [Solution](./Python/Shashankham.py) ``` Python From 059e508dd7a1a5335d244b8cbe246c72b5aac4a5 Mon Sep 17 00:00:00 2001 From: Shashank jain Date: Tue, 25 Dec 2018 17:31:25 +0545 Subject: [PATCH 09/10] Update README.md --- Day3/README.md | 3 --- 1 file changed, 3 deletions(-) diff --git a/Day3/README.md b/Day3/README.md index 552fc579..1c55e07f 100644 --- a/Day3/README.md +++ b/Day3/README.md @@ -289,9 +289,6 @@ else: * @author: Shashank Jain * @date: 24/12/2018 """ - -======= - ### [Solution](./Python/Shashankham.py) ``` Python """ From d38f2e10ea81ec2284d5073da02a8dc16abe5a34 Mon Sep 17 00:00:00 2001 From: Shashank jain Date: Tue, 25 Dec 2018 17:31:58 +0545 Subject: [PATCH 10/10] Update README.md --- Day3/README.md | 2 -- 1 file changed, 2 deletions(-) diff --git a/Day3/README.md b/Day3/README.md index 1c55e07f..35631a87 100644 --- a/Day3/README.md +++ b/Day3/README.md @@ -295,8 +295,6 @@ else: * @author: Shashank Jain * @date: 24/12/2018 """ - ->>>>>>> 59b8bd388e0854765c3122d6e802a85978004667 a=input("Enter the first string?") b=input("Enter the second string?") c=list(a.replace(" ",""))