- Text Content Generator - http://www.lipsum.com
- Favicon Generator - http://tools.dynamicdrive.com/favicon
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "theme": "dark", | |
| "snippet": { | |
| "expanded": true, | |
| "newSnippetPrivate": false, | |
| "sorting": "updated_at", | |
| "sortingReverse": true | |
| }, | |
| "editor" : { | |
| "tabSize": 4 |
This is commented out. NOTE: Best if viewed in web browser if currently you are viewing this in Lepton
Based from Brad Traversy's cheatsheet. I just updated it to work for my needs.
- add toc links
- code + result or something like this https://www.markdownguide.org/cheat-sheet/
- easy separation of sections
- remove redundant stuff because it's already in https://github.com/adam-p/markdown-here/wiki/Markdown-Cheatsheet#images ???
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Returns the minimum value in a given array. | |
| const arrMin = arr => Math.min(...arr); | |
| // arrMin([20, 10, 5, 10]) -> 5 | |
| //how it works / src: https://codeburst.io/javascript-arrays-finding-the-minimum-maximum-sum-average-values-f02f1b0ce332 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Returns the average of all values in any non-empty array. | |
| //note that the '0' is an optionally supplied initial value. If this value is not supplied, the 0th element is used as the initial value. | |
| const arrAvg = arr => arr.reduce((a,b) => a + b, 0) / arr.length | |
| // arrAvg([20, 10, 5, 10]) -> 11.25 | |
| /* | |
| notes: Finding the average value of a group of numbers is as easy as summing all of the numbers and dividing by the total number of numbers. | |
| In this function, we first use reduce() to reduce all values in our array to a single sum. Once we have the sum we simply divide this value by the length of the array. The result is the average value which then gets returned. |
learnings:
"You don't need to reinvent the wheel" is fine if:
- you know how a wheel works
- you know how this wheel works
- this wheel doesn't come with a whole bunch of crap you'll never use
- you only want a wheel
HTML Tags Cheatsheet from w3 schools link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| new Vue({ | |
| el: '#app', | |
| data: { | |
| title: 'Go to Facebook', | |
| link: 'http://fb.com', | |
| sampleHtml: '<h2>Sample HTML </h2>' | |
| }, | |
| methods: { | |
| changeTitle: function(evt){ | |
| this.title = evt.target.value; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //Math.random() returns a floating point number from 0 up to but not including 1. For example: | |
| /* | |
| > Math.random() | |
| 0.2625259844878184 | |
| > Math.random() | |
| 0.06513541210374607 | |
| > Math.random() | |
| 0.5629554153276711 | |
| */ |
