VSCode extensions
This file contains 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
[{ | |
"name": "Adam", | |
"class": "man", | |
"textClass": "emphasis", | |
"marriages": [{ | |
"spouse": { | |
"name": "Megan", | |
"class": "woman" | |
}, | |
"children": [{ |
This file contains 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
class Node { | |
constructor(value) { | |
this.value = value; | |
this.next = null; | |
} | |
} | |
class LinkedList { | |
constructor() { | |
this.head = null; |
- Go to https://learn.co/assignments
- Clone the repository to your computer (do not fork) following these instructions:
- On the project repository, click the green button: "Clone or Download"
- Copy the URL provided
- In your terminal:
git clone <copied URL>
cd
into the project directory
- Checkout a new branch
git checkout -b
This file contains 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
// to load jQuery into any website's console | |
// paste the following into console | |
var script = document.createElement('script');script.src = "https://code.jquery.com/jquery-3.4.1.min.js";document.getElementsByTagName('head')[0].appendChild(script); | |
/** | |
* | |
* pro-tip: paste the following into bookmark |
character | description | example |
---|---|---|
. |
Wildcard - matches any character | /c.t/.test('cat'); => true /./.test(''); => false |
^ |
Boundary - beginning of string | /^big/.test('big dog'); => true /^c/.test('abc'); => false |
$ |
Boundary - end of string | /dog$/.test('big dog'); => true /a$/.test('abc'); => false |
+ |
Character occurs 1 or more times | /ca+t/.test('caaat'); => true /ab+c/.test('ac'); => false |
* |
Character occurs 0 or more times | /ca*t/.test('ct'); => true /a*/.test(''); => true |
| |
Or (this or that) | /a|b/.test('b'); => true /at|og/.test('dog'); => true |
\x |
Hex codes (\x and then 2 digits, i.e. \x21 == '!' ) |
/\x41/.test('a'); => true |
( ) |
Parens - groups logic together | /(^a)|(^b)/.test('ax'); => true |
This file contains 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
[ | |
{ | |
"rank": 1, | |
"name": "New York City", | |
"state": "NY", | |
"population": 8177020 | |
}, | |
{ | |
"rank": 2, | |
"name": "Los Angeles", |
{
"count": 1126,
"next": "https://pokeapi.co/api/v2/pokemon/?offset=5&limit=5",
"previous": null,
"results": [
{
"name": "bulbasaur",
"url": "https://pokeapi.co/api/v2/pokemon/1/"