Rak Laptudirm
d2883fe6ef
chore: use UpperCamelCase
2021-10-28 18:46:20 +05:30
Rak Laptudirm
01a2e9ac9e
chore: use UpperCamelCase
2021-10-28 18:45:57 +05:30
Rak Laptudirm
2203c1a0e4
chore: use UpperCamelCase
2021-10-28 18:45:36 +05:30
Rak Laptudirm
072523d594
merge: Fix spellings ( #821 )
...
* chore: remove codespell from ci
* feat: add codespell workflow
* fix: codespell workflow
* fix: ignore spellings in directory
* chore: fix spellings
./Dynamic-Programming/KadaneAlgo.js:2: contiguos ==> contiguous
./Dynamic-Programming/KadaneAlgo.js:14: posible ==> possible
* chore: fix spelling
./Dynamic-Programming/SieveOfEratosthenes.js:4: upto ==> up to
* chore: fix spellings
./Dynamic-Programming/MaxNonAdjacentSum.js:22: Exmaple ==> Example
* chore: fix spelling
./Project-Euler/test/Problem010.test.js:4: upto ==> up to
./Project-Euler/test/Problem010.test.js:8: upto ==> up to
./Project-Euler/test/Problem010.test.js:12: upto ==> up to
* chore: fix spelling
./String/AlphaNumericPalindrome.js:10: recieves ==> receives
./String/AlphaNumericPalindrome.js:10: sting ==> string
./String/AlphaNumericPalindrome.js:46: varaible ==> variable
* chore: fix spelling
./String/DiceCoefficient.js:3: stings ==> strings
* chore: fix spelling
./String/test/DiceCoefficient.test.js:9: atleast ==> at least
* chore: fix spelling
./String/test/MaxWord.test.js:8: ba ==> be
* chore: ignore `PermutateString.test.js`
* chore: fix spelling
./String/test/CheckVowels.test.js:62: occurances ==> occurrences
* chore: ignore `SubsequenceRecursive.js`
* chore: fix spelling
./Conversions/TemperatureConversion.js:2: arguement ==> argument
* chore: fix spelling
./Conversions/RailwayTimeConversion.js:7: Formate ==> Format
./Conversions/RailwayTimeConversion.js:8: Formate ==> Format
* chore: remove Linear Algebra
The deleted directory hosted a package which are not accepted by this repository.
* Auto-update DIRECTORY.md
* chore: fix spelling
* chore: fix spellings
* merge: Created composite Simpson's integration method. Tests included. (#819 )
* Created composite Simpson's integration method.Tests included
* Minor corrections
* Auto-update DIRECTORY.md
* Styled with standard.js
* chore: remove blank line
* chore: remove blank line
Co-authored-by: ggkogkou <ggkogkou@ggkogkou.gr >
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: Rak Laptudirm <raklaptudirm@gmail.com >
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: remove codespell from ci
* feat: add codespell workflow
* fix: codespell workflow
* fix: ignore spellings in directory
* chore: fix spellings
./Dynamic-Programming/KadaneAlgo.js:2: contiguos ==> contiguous
./Dynamic-Programming/KadaneAlgo.js:14: posible ==> possible
* chore: fix spelling
./Dynamic-Programming/SieveOfEratosthenes.js:4: upto ==> up to
* chore: fix spellings
./Dynamic-Programming/MaxNonAdjacentSum.js:22: Exmaple ==> Example
* chore: fix spelling
./Project-Euler/test/Problem010.test.js:4: upto ==> up to
./Project-Euler/test/Problem010.test.js:8: upto ==> up to
./Project-Euler/test/Problem010.test.js:12: upto ==> up to
* chore: fix spelling
./String/AlphaNumericPalindrome.js:10: recieves ==> receives
./String/AlphaNumericPalindrome.js:10: sting ==> string
./String/AlphaNumericPalindrome.js:46: varaible ==> variable
* chore: fix spelling
./String/DiceCoefficient.js:3: stings ==> strings
* chore: fix spelling
./String/test/DiceCoefficient.test.js:9: atleast ==> at least
* chore: fix spelling
./String/test/MaxWord.test.js:8: ba ==> be
* chore: ignore `PermutateString.test.js`
* chore: fix spelling
./String/test/CheckVowels.test.js:62: occurances ==> occurrences
* chore: ignore `SubsequenceRecursive.js`
* chore: fix spelling
./Conversions/TemperatureConversion.js:2: arguement ==> argument
* chore: fix spelling
./Conversions/RailwayTimeConversion.js:7: Formate ==> Format
./Conversions/RailwayTimeConversion.js:8: Formate ==> Format
* chore: remove Linear Algebra
The deleted directory hosted a package which are not accepted by this repository.
* Auto-update DIRECTORY.md
* chore: fix spelling
* chore: fix spellings
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: fix spelling
* chore: no need to check filenames
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
Co-authored-by: ggkogkou <76820848+ggkogkou@users.noreply.github.com >
Co-authored-by: ggkogkou <ggkogkou@ggkogkou.gr >
2021-10-28 15:37:43 +05:30
Rak Laptudirm
59e9baf11b
feat: add codespell
2021-10-28 12:34:59 +05:30
Oscar Dominguez
f640550d54
ci(workflow): add 'npm' cache for actions/setup-node in .github/workflows
2021-10-12 21:15:53 +02:00
Roland Hummel
b13b12e88c
chore: merge Fix/742 migrate doctest to jest ( #749 )
...
* Remove QuickSelect doctest
There are more Jest test cases already.
* Remove AverageMedian doctest
Already migrated to jest
* Migrate doctest for BinaryExponentiationRecursive.js
(also remove inline "main" test method)
* Migrate doctest for EulersTotient.js
(also remove inline "main" test method)
* Migrate doctest for PrimeFactors.js
(also remove inline "main" test method)
* Migrate doctest for BogoSort.js
Re-write prototype-polluting helper methods, too.
(also remove inline test driver code)
* Migrate doctest for BeadSort.js
(also remove inline test driver code)
* Migrate doctest for BucketSort.js
(also remove inline test driver code)
* Migrate doctest for CocktailShakerSort.js
(also remove inline test driver code)
* Migrate doctest for MergeSort.js
(also remove inline test driver code)
* Migrate doctest for QuickSort.js
(also remove inline test driver code)
* Migrate doctest for ReverseString.js
(also remove inline test driver code)
* Migrate doctest for ReverseString.js
* Migrate doctest for ValidateEmail.js
* Migrate doctest for ConwaysGameOfLife.js
(remove the animate code, too)
* Remove TernarySearch doctest
Already migrated to jest
* Migrate doctest for BubbleSort.js
(also remove inline test driver code)
* Remove doctest from CI and from dependencies
relates to #742
fixes #586
* Migrate doctest for RgbHsvConversion.js
* Add --fix option to "standard" npm script
* Migrate doctest for BreadthFirstSearch.js
(also remove inline test driver code)
* Migrate doctest for BreadthFirstShortestPath.js
(also remove inline test driver code)
* Migrate doctest for EulerMethod.js
(also remove inline test driver code)
Move manual test-code for plotting stuff in the browser in a distinct file, too. Those "*.manual-test.js" files are excluded from the UpdateDirectory.mjs script, as well.
* Migrate doctest for Mandelbrot.js
(also remove inline test driver code & moved manual drawing test into a *.manual-test.js)
* Migrate doctest for FloodFill.js
* Migrate doctest for KochSnowflake.js
(also move manual drawing test into a *.manual-test.js)
* Update npm lockfile
* Update README and COMMITTING with a few bits & bobs regarding testing & code quality
2021-10-07 12:33:38 +05:30
Roland Hummel
7bb3c80f05
Fix URL creation in directory markdown
2021-10-05 11:23:47 +02:00
Roland Hummel
6fe322bd8a
Add npm ci to directory-updating job, as well (so that we can utilize globby)
2021-10-05 11:23:47 +02:00
Roland Hummel
a69d9a8c49
Clean up and speed up UpdateDirectory.js
...
Uses globby to find all algorithm files. This is way quicker and less error-prone than the previous implementation. Plus, it allows us to fine-tune excludes (e.g. test files and the babel config).
This also removes the need for setTimeouts which greatly speeds up the whole thing.
2021-10-05 11:23:46 +02:00
Roland Hummel
460fd57c6b
Test: Drop env.CI
2021-10-05 11:23:46 +02:00
Roland Hummel
f6396f4822
Don't cat the full DIRECTORY.md file in the github job
2021-10-05 11:23:46 +02:00
Roland Hummel
21d4096446
Another proposal: Clean up "update directory" job, as well
...
relates to ##720
Cleaned up and updated the job description file a bit. Instead of attempting to commit every single time, we check if the DIRECTORY file actually has changes first.
2021-10-05 11:23:46 +02:00
Roland Hummel
6f9b1f127f
Proposal: Clean up CI job a bit
...
relates to #586 and #720
Added npm scripts for doctest and style checking via standard. This allows us to call those directly via npm and not via npx.
The CI job itself is now split into distinct steps (makes it more visible which step failed).
2021-10-05 11:23:45 +02:00
Rak Laptudirm
cf98deda8e
fix: Fixed TODO message
...
Need to add Doctests to all Algos
2021-05-22 21:20:36 +05:30
Rak Laptudirm
a93abac98d
Fixes #539
2021-05-22 21:13:00 +05:30
Christian Clauss
84a4f6bd7a
Update nodejs.yml
2021-04-14 23:02:49 +02:00
Christian Clauss
e22405f23b
Update nodejs.yml
2021-04-14 22:59:04 +02:00
Christian Clauss
7e0169b260
Cleanup Node.js CI
2021-04-14 22:55:49 +02:00
Christian Clauss
6686ef88b8
Update nodejs.yml
2020-10-31 09:35:01 +01:00
Christian Clauss
c95012865f
Update nodejs.yml
2020-10-31 09:27:46 +01:00
Christian Clauss
1f1007a09c
Update nodejs.yml
2020-10-31 09:20:12 +01:00
Christian Clauss
9bd5bf8232
npx doctest **/*.js
2020-10-31 09:17:29 +01:00
Christian Clauss
8d527fe1e2
Update nodejs.yml
2020-10-31 09:15:46 +01:00
Christian Clauss
9d21e03790
Update nodejs.yml
2020-10-31 09:10:49 +01:00
Christian Clauss
9bae390f01
Update nodejs.yml
2020-10-31 09:07:09 +01:00
Christian Clauss
3fec0509dd
Update nodejs.yml
2020-10-31 08:45:55 +01:00
Christian Clauss
4c8866ec7e
npx mocha
2020-10-31 08:36:27 +01:00
Christian Clauss
255ef0dffa
npx mocha Maths/test/Abs.test.js
2020-10-31 08:29:28 +01:00
Christian Clauss
ea2056f649
GitHub Action: Add mocha Maths/test/Abs.test.js
2020-10-31 08:22:23 +01:00
vinayak
9000e1caaa
Re-orgainze files and folders in the repository ( #172 )
...
* Re-orgainze files and folders in the repository
* updating DIRECTORY.md
Co-authored-by: github-actions <${GITHUB_ACTOR}@users.noreply.github.com >
2020-05-18 11:10:07 +05:30
Christian Clauss
4913d5fe14
npx doctest Sorts/BogoSort.js Sorts/BucketSort.js
2020-05-13 01:31:00 +02:00
Christian Clauss
215005325c
Update nodejs.yml
2020-05-13 01:28:46 +02:00
Christian Clauss
b8350d9122
npx doctest Sorts/BogoSort.js
2020-05-13 00:42:05 +02:00
Christian Clauss
9328ac686e
node_modules/doctest Sorts/BogoSort.js || true
2020-05-13 00:38:04 +02:00
Christian Clauss
424d1d8135
npx doctest Sorts/BogoSort.js || true
2020-05-13 00:32:34 +02:00
Christian Clauss
17107f5cb7
Update nodejs.yml
2020-05-13 00:28:48 +02:00
Christian Clauss
90ec2ac522
Update nodejs.yml
2020-05-13 00:19:13 +02:00
Christian Clauss
7d79a4196b
doctest --module Sorts Sorts/BogoSort.js
2020-05-13 00:10:46 +02:00
Christian Clauss
741e8fbb4b
node -e "doctest('Sorts/BogoSort.js', {})"
2020-05-12 23:58:56 +02:00
Christian Clauss
32d5dd477c
run: node .github/workflows/UpdateDirectory.js
2020-05-12 11:30:51 +02:00
Christian Clauss
0893767dd5
run: node UpdateDirectory.js
2020-05-10 17:58:12 +02:00
Christian Clauss
3730807807
Merge pull request #163 from sahilbansal17/js-directory-workflow
...
Fixes : #160
2020-05-10 17:51:09 +02:00
Christian Clauss
3b03e3b415
Rename script.js to UpdateDirectory.js
2020-05-10 17:50:29 +02:00
Christian Clauss
c276a695ad
GitHub Action nodejs.yml upgrade to Node.js 14 ( #165 )
2020-05-10 17:00:21 +05:30
Sahil Bansal
b971510cc3
Add build_directory_md
2020-05-10 11:35:25 +05:30
Sahil Bansal
337f3c2abc
Add md_prefix and print_path functions
2020-05-09 19:22:01 +05:30
Sahil Bansal
f6dd3826ad
Add good_filepaths function in workflow script
2020-05-09 18:30:49 +05:30
vinayak
1e540e9dec
Update nodejs.yml
2020-05-06 18:37:36 +05:30
Christian Clauss
62f96e8c39
Trailing space ;-)
2020-05-05 22:25:32 +02:00