Skip to content

Added PythagoreanTheorem.js #1085

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 25 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/JavascriptAlgoCL.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Javascript Algorithm CI

on: [push, pull_request]

permissions: write-all

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2

- name: npm install, build, and test
run: |
npm install doctest
npm install standard --save-dev
npx doctest **/*.js || true # TODO: Add all doctests
npx standard
npm ci
npm run build --if-present

env:
CI: true

- name: Run the tests
run: npm test -- --coverage

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3.1.0
14 changes: 14 additions & 0 deletions .github/workflows/codacy-analysis.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
name: Codacy Analysis CLI

on: [push, pull_request]

jobs:
codacy-analysis-cli:
name: Codacy Analysis CLI
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@main

- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@master
5 changes: 1 addition & 4 deletions DIRECTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@
* [IsEven](Maths/IsEven.js)
* [IsOdd](Maths/IsOdd.js)
* [IsPronic](Maths/IsPronic.js)
* [JugglerSequence](Maths/JugglerSequence.js)
* [LeapYear](Maths/LeapYear.js)
* [LinearSieve](Maths/LinearSieve.js)
* [LucasSeries](Maths/LucasSeries.js)
Expand All @@ -186,9 +187,7 @@
* [PerfectNumber](Maths/PerfectNumber.js)
* [PerfectSquare](Maths/PerfectSquare.js)
* [PermutationAndCombination](Maths/PermutationAndCombination.js)
* [PiApproximationMonteCarlo](Maths/PiApproximationMonteCarlo.js)
* [Polynomial](Maths/Polynomial.js)
* [Pow](Maths/Pow.js)
* [PowLogarithmic](Maths/PowLogarithmic.js)
* [PrimeCheck](Maths/PrimeCheck.js)
* [PrimeFactors](Maths/PrimeFactors.js)
Expand Down Expand Up @@ -281,10 +280,8 @@
* [TimSort](Sorts/TimSort.js)
* [TopologicalSort](Sorts/TopologicalSort.js)
* **String**
* [AlphaNumericPalindrome](String/AlphaNumericPalindrome.js)
* [AlternativeStringArrange](String/AlternativeStringArrange.js)
* [BoyerMoore](String/BoyerMoore.js)
* [CheckAnagram](String/CheckAnagram.js)
* [CheckCamelCase](String/CheckCamelCase.js)
* [CheckExceeding](String/CheckExceeding.js)
* [CheckFlatCase](String/CheckFlatCase.js)
Expand Down
30 changes: 0 additions & 30 deletions Maths/CollatzSequence.js

This file was deleted.

24 changes: 0 additions & 24 deletions Maths/JugglerSequence.js

This file was deleted.

22 changes: 0 additions & 22 deletions Maths/LeapYear.js

This file was deleted.

21 changes: 0 additions & 21 deletions Maths/PiApproximationMonteCarlo.js

This file was deleted.

62 changes: 0 additions & 62 deletions Maths/Pow.js

This file was deleted.

8 changes: 0 additions & 8 deletions Maths/test/CollatzSequence.test.js

This file was deleted.

21 changes: 0 additions & 21 deletions Maths/test/JugglerSequence.test.js

This file was deleted.

22 changes: 0 additions & 22 deletions Maths/test/LeapYear.test.js

This file was deleted.

9 changes: 0 additions & 9 deletions Maths/test/PiApproximationMonteCarlo.test.js

This file was deleted.

41 changes: 0 additions & 41 deletions Maths/test/Pow.test.js

This file was deleted.

35 changes: 0 additions & 35 deletions String/AlphaNumericPalindrome.js

This file was deleted.

Loading