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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.wordWrap": "on", | |
"terminal.integrated.shell.linux": "/usr/bin/fish", | |
"terminal.integrated.fontFamily": "Source Code Pro for Powerline", | |
"files.insertFinalNewline": true, | |
"editor.snippetSuggestions": "top", | |
"editor.gotoLocation.multiple": "goto", | |
"typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib", | |
"files.associations": { |
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
set -g -x fish_greeting '' | |
// set -g -x PATH /usr/local/bin $PATH | |
alias fconfig="code ~/.config/fish/config.fish" | |
alias freload="source ~/.config/fish/config.fish" | |
alias zl="cd /Users/andersjramsay/dev/zl" | |
alias gst="git status" | |
function g | |
git $argv |
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
{ | |
"workbench.startupEditor": "newUntitledFile", | |
"editor.wordWrap": "on", | |
"terminal.integrated.fontFamily": "Source Code Pro for Powerline", | |
"files.insertFinalNewline": true, | |
"editor.formatOnSave": true, | |
"editor.snippetSuggestions": "top", | |
"typescript.tsdk": "/usr/local/lib/node_modules/typescript/lib", | |
"workbench.iconTheme": "vscode-icons", | |
"files.exclude": { |
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
#!/bin/zsh | |
((!$#)) && echo No matching branch found && exit 1 | |
git checkout $1 |
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
{ | |
"characters": | |
[ | |
{ | |
"name": "Luke Skywalker", | |
"url": "http://swapi.co/api/people/1/" | |
}, | |
{ | |
"name": "Darth Vader", | |
"url": "http://swapi.co/api/people/4/" |
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
WEATHER_ICON_CODES = { | |
"200": { | |
"label": "thunderstorm with light rain", | |
"icon": "storm-showers" | |
}, | |
"201": { | |
"label": "thunderstorm with rain", | |
"icon": "storm-showers" | |
}, |
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
var utils = { | |
isEmpty: function (str) { | |
return str.trim().length === 0 | |
}, | |
isEmail: function (email) { | |
var regex = /^([a-zA-Z0-9_.+-])+\@(([a-zA-Z0-9-])+\.)+([a-zA-Z0-9]{2,4})+$/ | |
return regex.test(email) | |
} | |
} |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
const fetchJSON = url => | |
fetch(url, { method: 'GET' }) | |
.then(response => response.json()) |
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
for (var i = 1; i <= 100; i++) { | |
if (i % 3 === 0 && i % 5 === 0) { | |
console.log('fizzbuzz') | |
} else if (i % 3 === 0) { | |
console.log('fizz') | |
} else if (i % 5 === 0) { | |
console.log('buzz') | |
} | |
} |