https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css
<link rel="https://cdn.rawgit.com/mfd/f3d96ec7f0e8f034cc22ea73b3797b59/raw/856f1dbb8d807aabceb80b6d4f94b464df461b3e/gotham.css">
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
.push() Add elements to end of an array | |
const num = [ "a", "b" ]; | |
num.push("c"); | |
// => 3 | |
num; | |
// [ "a", "b", "c"] |
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
"Fetch-headers": { | |
"prefix": ["fetch headers", "feh", "header"], | |
"body": [ "const HEADERS = {", | |
"\t\"content-type\": \"application/json\",", | |
"\t\"accept\" : \"application/json\"", | |
"}"], | |
"description": "Fetch HEADERS const." | |
}, | |
"Fetch-update-patch": { | |
"prefix": ["fetch update patch", "feu", "fep"], |
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
const HEADERS = { | |
"content-type": "application/json", | |
"accept" : "application/json" | |
} | |
function doFetch (myObject, id) { | |
fetch(`${SITE}/${id}`, { | |
method: "PATCH" | |
headers: HEADERS | |
body: JSON.stringify({ |
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
# An example global gitignore file | |
# | |
# Place a copy if this at ~/.gitignore_global | |
# Run `git config --global core.excludesfile ~/.gitignore_global` | |
# Compiled source # | |
################### | |
*.com | |
*.class | |
*.dll |
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
[core] | |
whitespace=fix,-indent-with-non-tab,trailing-space,cr-at-eol | |
editor = code --wait | |
excludesFile = /Users/dannylee/.gitignore | |
[alias] | |
aa = add --all | |
ak = !git add -A && git commit -m | |
ai = add --interactive | |
amend = commit -a --amend |
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
## Initial configuration | |
$ git config --global user.name "<your name>" | |
Sets the user name which will be credited with commit transactions. | |
$ git config --global user.email "<email addie>" | |
Sets the email address which will be attached to the commit transactions. |
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
{ | |
"editor.defaultFormatter": "esbenp.prettier-vscode", | |
"editor.formatOnSave": 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
{ | |
"order": { | |
"id": 450789469, | |
"email": "bob.norman@hostmail.com", | |
"closed_at": null, | |
"created_at": "2008-01-10T11:00:00-05:00", | |
"updated_at": "2008-01-10T11:00:00-05:00", | |
"number": 1, | |
"note": null, | |
"token": "b1946ac92492d2347c6235b4d2611184", |
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
function memoize(fn) { | |
const cache = {}; | |
return function (...args) { | |
if (cache[args]) { | |
return cache[args]; | |
} | |
const result = fn.apply(this, args); | |
cache[args] = result; |
OlderNewer