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
// EXERCISE 3: | |
// ---------------------------------------------------------------------------------------------- / | |
// 3.1 | |
// ---------------------------------------------------------------------------------------------- / | |
const alphabet = 'abcdefghijklmnopqrstuvwxyz'; | |
const createProduct = (title, price) => { | |
return [title, price]; | |
}; | |
let productList = []; |
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.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 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
// 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 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
### 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 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
function arrayGenerator(length) { | |
return Array.apply(null, { length: length }).map(Number.call, Number) | |
} |
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
#column1 .ruleitem:last-child { | |
margin-bottom: 0; | |
} |
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
#about ul { | |
display: flex; | |
justify-content: center; | |
flex-wrap: wrap; | |
} | |
#about li{ | |
max-width: 230px; | |
margin: 10px; | |
} |
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
function createStore(reducer, initialState) { | |
let currentState = initialState; | |
let listeners = []; | |
function getState() { | |
return currentState; | |
} | |
function dispatch(action) { | |
// Create the state from the reducer |
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 createStore = require('redux').createStore; | |
// constants | |
const CHANGE_NAME = 'CHANGE_NAME'; | |
const CHANGE_AGE = 'CHANGE_AGE'; | |
const CHANGE_NAME_AND_JOB = 'CHANGE_NAME_AND_JOB'; | |
// actions | |
function changeName(name) { | |
return { |
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
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"atomic_save": false, | |
"auto_indent": true, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", |
NewerOlder