Skip to content

Instantly share code, notes, and snippets.

View arthurbernierjr's full-sized avatar
🎯
Focusing

Arthur Bernier arthurbernierjr

🎯
Focusing
View GitHub Profile
@arthurbernierjr
arthurbernierjr / 1-promises.coffee
Created December 24, 2019 17:54 — forked from pketh/1-promises.coffee
Promises in Coffeescript
# Create a promise:
myCoolPromise = new Promise (resolve, reject) ->
# do a thing
success = true
if success
resolve 'stuff worked'
else
reject Error 'it broke'
@arthurbernierjr
arthurbernierjr / 1-promises.coffee
Created December 24, 2019 17:54 — forked from pketh/1-promises.coffee
Promises in Coffeescript
# Create a promise:
myCoolPromise = new Promise (resolve, reject) ->
# do a thing
success = true
if success
resolve 'stuff worked'
else
reject Error 'it broke'

SHORTCUTS

Key/Command Description
Tab Auto-complete files and folder names
Ctrl + A Go to the beginning of the line you are currently typing on
Ctrl + E Go to the end of the line you are currently typing on
Ctrl + U Clear the line before the cursor
Ctrl + K Clear the line after the cursor
Ctrl + W Delete the word before the cursor
Ctrl + T Swap the last two characters before the cursor
@arthurbernierjr
arthurbernierjr / bootstrap-wide.css
Created July 28, 2018 07:54 — forked from tiborp/bootstrap-wide.css
Extra media queries for BIG screens
// Extra big for Twitter Bootstrap
@media screen and (min-width: 1400px) {
.container {
width: 1370px;
}
}
@media screen and (min-width: 1600px) {
.container {
width: 1570px;