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
# Command to open the webbrowser and immediately start searching | |
# for the right keyword. | |
# | |
# Usage: | |
# $ google test query | |
# $ => Opens the browser on http://www.google.com/search?q=test+query | |
# | |
google() | |
{ |
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
// Warning: Keep in mind that this example has a lot of boilerplate, | |
// because I want to make sure it's as easy to grasp as possible. | |
// In a real application you would probably want to wrap the cooldown | |
// check in a higher order function that easily creates a command and | |
// checks the cooldowns for you. | |
// The cooldown manager example | |
var CooldownManager = { | |
cooldownTime: 30000, // 30 seconds | |
store: { |
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
# 1. Add this to your .bash-profile or .zshrc and restart your terminal | |
function dm-env () { | |
if [ -z "$1" ] ; then | |
echo "\e[0;31mERROR:\e[0m no argument supplied" | |
return; | |
fi | |
eval "$(docker-machine env $1)" | |
echo -e "\033[33;32mSUCCESS:\e[0m docker-machine environment set to: $1" | |
} |
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
// EXERCISE 3: | |
// ---------------------------------------------------------------------------------------------- / | |
// 3.1 | |
// ---------------------------------------------------------------------------------------------- / | |
const alphabet = 'abcdefghijklmnopqrstuvwxyz'; | |
const createProduct = (title, price) => { | |
return [title, price]; | |
}; | |
let productList = []; |
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
{ | |
"workbench.colorTheme": "Material Theme", | |
"editor.tabSize": 2, | |
"editor.fontSize": 14, | |
"editor.fontFamily": "Fira Mono", | |
"editor.rulers": [80, 100, 120], | |
"files.exclude": { | |
"*.jpg": true, | |
"*.jpeg": true, | |
"*.png": 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
function arrayGenerator(length) { | |
return Array.apply(null, { length: length }).map(Number.call, Number) | |
} |
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
### Keybase proof | |
I hereby claim: | |
* I am inooid on github. | |
* I am inooid (https://keybase.io/inooid) on keybase. | |
* I have a public key whose fingerprint is 4488 9104 18BF 4F7C FCC5 8C4F DF7C EB8E 7D98 0071 | |
To claim this, I am signing this object: |
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
#column1 .ruleitem:last-child { | |
margin-bottom: 0; | |
} |
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
#about ul { | |
display: flex; | |
justify-content: center; | |
flex-wrap: wrap; | |
} | |
#about li{ | |
max-width: 230px; | |
margin: 10px; | |
} |
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 createStore(reducer, initialState) { | |
let currentState = initialState; | |
let listeners = []; | |
function getState() { | |
return currentState; | |
} | |
function dispatch(action) { | |
// Create the state from the reducer |
NewerOlder