build
This commit is contained in:
6
package-lock.json
generated
6
package-lock.json
generated
@ -5696,9 +5696,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"markdown-builder": {
|
"markdown-builder": {
|
||||||
"version": "0.8.1",
|
"version": "0.8.3-dev",
|
||||||
"resolved": "https://registry.npmjs.org/markdown-builder/-/markdown-builder-0.8.1.tgz",
|
"resolved": "https://registry.npmjs.org/markdown-builder/-/markdown-builder-0.8.3-dev.tgz",
|
||||||
"integrity": "sha512-zqOAYg8jqUM6gB4WkcJ/K5HkqPUL33VAqNrebHSxlkXcEcjDTeKMNqUC8/bND4tKRu72lRFrTmmGYRtlevvXZQ==",
|
"integrity": "sha512-NJp9MW/odYYP8z1lEEwDW3k+iVnzW1xaJqwWbjlzsAAA1kZohi6Cf3bQkWKZsxPJTZACgYd/aKpmunLSD1u2Bw==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"husky": "1.0.0-rc.14"
|
"husky": "1.0.0-rc.14"
|
||||||
}
|
}
|
||||||
|
|||||||
@ -52,7 +52,7 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/Chalarangelo/30-seconds-of-code#readme",
|
"homepage": "https://github.com/Chalarangelo/30-seconds-of-code#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"markdown-builder": "^0.8.1"
|
"markdown-builder": "^0.8.3-dev"
|
||||||
},
|
},
|
||||||
"jest": {
|
"jest": {
|
||||||
"reporters": [
|
"reporters": [
|
||||||
|
|||||||
@ -1,4 +1,4 @@
|
|||||||

|

|
||||||
# Snippets Archive
|
# Snippets Archive
|
||||||
These snippets, while useful and interesting, didn't quite make it into the repository due to either having very specific use-cases or being outdated. However we felt like they might still be useful to some readers, so here they are.
|
These snippets, while useful and interesting, didn't quite make it into the repository due to either having very specific use-cases or being outdated. However we felt like they might still be useful to some readers, so here they are.
|
||||||
## Table of Contents
|
## Table of Contents
|
||||||
@ -44,7 +44,6 @@ JSONToDate(/Date(1489525200000)/); // "14/3/2017"
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### speechSynthesis
|
### speechSynthesis
|
||||||
@ -73,7 +72,6 @@ speechSynthesis('Hello, World'); // // plays the message
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### binarySearch
|
### binarySearch
|
||||||
@ -106,7 +104,6 @@ binarySearch([1, 4, 6, 7, 12, 13, 15, 18, 19, 20, 22, 24], 21); // -1
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### cleanObj
|
### cleanObj
|
||||||
@ -139,7 +136,6 @@ cleanObj(testObj, ['a'], 'children'); // { a: 1, children : { a: 1}}
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### collatz
|
### collatz
|
||||||
@ -161,7 +157,6 @@ collatz(8); // 4
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### countVowels
|
### countVowels
|
||||||
@ -184,7 +179,6 @@ countVowels('gym'); // 0
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### factors
|
### factors
|
||||||
@ -235,7 +229,6 @@ factors(-12, true); // [2,3]
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### fibonacciCountUntilNum
|
### fibonacciCountUntilNum
|
||||||
@ -258,7 +251,6 @@ fibonacciCountUntilNum(10); // 7
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### fibonacciUntilNum
|
### fibonacciUntilNum
|
||||||
@ -288,7 +280,6 @@ fibonacciUntilNum(10); // [ 0, 1, 1, 2, 3, 5, 8 ]
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### httpDelete
|
### httpDelete
|
||||||
@ -321,7 +312,6 @@ httpDelete('https://website.com/users/123', request => {
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### httpPut
|
### httpPut
|
||||||
@ -358,7 +348,6 @@ httpPut('https://website.com/users/123', data, request => {
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### isArmstrongNumber
|
### isArmstrongNumber
|
||||||
@ -384,7 +373,6 @@ isArmstrongNumber(56); // false
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### isSimilar
|
### isSimilar
|
||||||
@ -411,7 +399,6 @@ isSimilar('tr','Rohit'); // false
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### levenshteinDistance
|
### levenshteinDistance
|
||||||
@ -452,7 +439,6 @@ compareStrings('30-seconds-of-code', '30-seconds-of-python-code'); // 99.72 (%)
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### quickSort
|
### quickSort
|
||||||
@ -484,7 +470,6 @@ quickSort([4, 1, 3, 2], true); // [4,3,2,1]
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### removeVowels
|
### removeVowels
|
||||||
@ -508,7 +493,6 @@ removeVowels("foobAr","*"); // "f**b*r"
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### solveRPN
|
### solveRPN
|
||||||
@ -562,7 +546,6 @@ solveRPN('2 3 ^'); // 8
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
### howManyTimes
|
### howManyTimes
|
||||||
@ -600,6 +583,5 @@ howManyTimes(100, -1); // Infinity
|
|||||||
|
|
||||||
</details>
|
</details>
|
||||||
|
|
||||||
|
|
||||||
[⬆ Back to top](#table-of-contents)
|
[⬆ Back to top](#table-of-contents)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user