Commit Graph

4239 Commits

Author SHA1 Message Date
Kyle Begovich
b824723a7a [FEATURE] Adding Heron's formula for area of any triangle (#813)
Heron's Formula for Area of any (valid) triangle.

## Description
Adding heronArea.js and adding the corresponding entry in tag_database. More info on Heron's formula (and why it works) here: https://en.wikipedia.org/wiki/Heron%27s_formula. This is exceptionally helpful for simplifying any math being done inside your JS, and abstracts away any altitude calculations being done before the (1/2)bh calculation often used instead.

## PR Type
- [x] Snippets, Tests & Tags (new snippets, updated snippets, re-tagging of snippets, added/updated tests)
- [ ] Scripts & Website & Meta (anything related to files in the [scripts folder](https://github.com/30-seconds/30-seconds-of-code/tree/master/scripts), how the repository's automated procedures work and the website)
- [ ] Glossary & Secondary Features (anything related to the glossary, such as new or updated terms or other secondary features)
- [ ] General, Typos, Misc. & Meta (everything else, typos, general stuff and meta files in the repository - e.g. the issue template)

## Guidelines
- [x] I have read the guidelines in the [CONTRIBUTING](https://github.com/30-seconds/30-seconds-of-code/blob/master/CONTRIBUTING.md) document.
2018-10-07 20:53:51 +02:00
30secondsofcode
215db8de59 Travis build: 604 2018-10-07 13:26:08 +00:00
Gravity_Salad
946a30ab4c [FEATURE] Add getImages snippet (#806)
<!-- Use a descriptive title, prefix it with [FIX], [FEATURE] or [ENHANCEMENT] if applicable (use only one) -->

## Description
<!-- Write a detailed description of your changes/additions here -->
Adding a snippet to fetch all images from within a desired element.
<!-- If your PR resolves an issue, please state "Resolves #(issue number)" to help maintainers process it faster -->
<!-- If you think your PR will cause breaking changes, require changes in the documentation etc, please be so kind as to explain what, where and how -->

## PR Type
- [x] Snippets, Tests & Tags (new snippets, updated snippets, re-tagging of snippets, added/updated tests)
- [ ] Scripts & Website & Meta (anything related to files in the [scripts folder](https://github.com/30-seconds/30-seconds-of-code/tree/master/scripts), how the repository's automated procedures work and the website)
- [ ] Glossary & Secondary Features (anything related to the glossary, such as new or updated terms or other secondary features)
- [ ] General, Typos, Misc. & Meta (everything else, typos, general stuff and meta files in the repository - e.g. the issue template)

## Guidelines
- [x] I have read the guidelines in the [CONTRIBUTING](https://github.com/30-seconds/30-seconds-of-code/blob/master/CONTRIBUTING.md) document.
2018-10-07 15:24:36 +02:00
Felix Wu
4aa3d9cc36 add reminder to uncommit testlog 2018-10-06 22:50:59 +02:00
30secondsofcode
5a6c871490 Travis build: 601 2018-10-06 09:35:19 +00:00
Angelos Chalaris
928a667009 Merge pull request #809 from SarathSantoshDamaraju/fix-side-nav
Added side nav to glossary and archived pages
2018-10-06 12:33:39 +03:00
Angelos Chalaris
94c1825aa4 Fixed page titles 2018-10-06 12:22:29 +03:00
30secondsofcode
b9128fb477 Travis build: 599 [custom] 2018-10-05 21:08:23 +00:00
Angelos Chalaris
2537f697ef Test Travis-CI
Sorry for the useless commit
2018-10-05 23:44:00 +03:00
tricinel
0ad082fbe2 Add Shadow DOM 2018-10-05 18:07:32 +02:00
tricinel
d6e26ae3dc Add Web Components 2018-10-05 17:57:34 +02:00
Sarath Damaraju
8a773bcf73 Added side nav to glossary and archived pages 2018-10-05 20:00:18 +05:30
30secondsofcode
c0f5d12fbe Travis build: 597 [cron] 2018-10-04 20:18:24 +00:00
itchylol742
0fa5902940 [FIX] allEqual.test.js test arrays with different types in the same array (#805)
allEqual test false when there are different types
2018-10-04 22:06:48 +03:00
30secondsofcode
1f557d34af Travis build: 594 2018-10-04 13:46:53 +00:00
Angelos Chalaris
4634168133 Merge pull request #803 from hckr/atob-btoa
[FIX] Error with new in btoa
2018-10-04 16:44:55 +03:00
Luke
5f41925219 Fix error with new in btoa 2018-10-04 12:58:44 +02:00
30secondsofcode
c6a0491c0f Travis build: 592 2018-10-04 03:38:20 +00:00
Angelos Chalaris
b5ca05fbcc Merge pull request #800 from hckr/atob-btoa
[FIX] Replace deprecated calls in atob and btoa
2018-10-04 06:36:39 +03:00
Luke
c798852df7 Replace deprecated calls in atob and btoa 2018-10-03 23:08:31 +02:00
30secondsofcode
6905412c14 Travis build: 590 [cron] 2018-10-03 20:17:00 +00:00
30secondsofcode
f50ef7f702 Travis build: 588 2018-10-03 19:29:27 +00:00
Angelos Chalaris
127e37f245 Update isDuplexStream.md 2018-10-03 22:27:46 +03:00
30secondsofcode
a12ae077fb Travis build: 586 2018-10-03 19:19:18 +00:00
Angelos Chalaris
c7073ff1b5 Merge pull request #765 from 30-seconds/is-stream
Add isStream
2018-10-03 22:17:29 +03:00
Angelos Chalaris
21622234d6 Add readable, writable and duplex 2018-10-03 22:16:10 +03:00
30secondsofcode
25d93ab6ad Travis build: 583 2018-10-03 09:34:17 +00:00
Angelos Chalaris
3aa23e10f2 Merge pull request #778 from Siarhei-Zharnasek/master
Change docs for triggerEvent [ENHANCEMENT]
2018-10-03 12:33:01 +03:00
Siarhei
7a016ca452 Change docs for triggerEvent 2018-10-03 13:27:09 +04:00
30secondsofcode
7b941b4e41 Travis build: 581 2018-10-03 05:03:56 +00:00
Angelos Chalaris
c18f8d6b6d Merge pull request #777 from mintunitish/master
Minor Simplification
2018-10-03 08:02:52 +03:00
Nitish Kumar
cb608efa93 Reverted SCSS Changes 2018-10-03 10:17:54 +05:30
30secondsofcode
bd03c24cbd Travis build: 579 [cron] 2018-10-02 20:18:29 +00:00
Robert Mennell
4941ed7b8b Merge pull request #773 from mintunitish/patch-1
Update PULL_REQUEST_TEMPLATE.md, fix a single word type(documention versus documentation)
2018-10-02 11:03:37 -07:00
Angelos Chalaris
54ffd7bdfe Merge pull request #768 from Siarhei-Zharnasek/master
Simplify triggerEvent
2018-10-02 20:58:17 +03:00
Nitish Kumar
2c135e5781 Update PULL_REQUEST_TEMPLATE.md
Fixed Typo
2018-10-02 23:18:07 +05:30
Nitish Kumar
ee5586c7f2 Minor Simplifications 2018-10-02 23:10:00 +05:30
Siarhei
981311ef05 Simplify triggerEvent 2018-10-02 11:02:52 +04:00
Angelos Chalaris
bff38c6387 Update tag_database 2018-10-02 08:35:37 +03:00
30secondsofcode
bf35deabc8 Travis build: 574 [cron] 2018-10-01 20:16:38 +00:00
Angelos Chalaris
41d08ed789 Merge pull request #767 from itchylol742/master
[FIX] change test comments in indexOfAll.test.js
2018-10-01 22:05:43 +03:00
itchylol742
2786ccfe0a change test comments
changed 'Returns all indices of val in an array' to 'When val is not found, return an empty array' for test that searches for val in an array without val
2018-10-01 14:35:22 -04:00
Angelos Chalaris
55c2bd3ac4 Add isStream 2018-10-01 20:12:19 +03:00
30secondsofcode
c0cee9fca9 Travis build: 570 2018-10-01 16:38:09 +00:00
Angelos Chalaris
7a2254e87e Resolve #754 2018-10-01 19:36:22 +03:00
30secondsofcode
2b7db4ce09 Travis build: 568 2018-10-01 16:35:03 +00:00
Angelos Chalaris
82555647f8 Merge pull request #746 from Siarhei-Zharnasek/master
Refactor takeRightWhile
2018-10-01 19:33:55 +03:00
Angelos Chalaris
420bb90628 Merge branch 'master' into master 2018-10-01 19:33:44 +03:00
Angelos Chalaris
d8a1c09133 Update takeRightWhile.md 2018-10-01 19:32:54 +03:00
evyatarmeged
059e6b4e6a add celsiusToFahrenheit and fahrenheitToCelsius 2018-10-01 15:26:36 +03:00