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
# Tip: Keep your master branch pointing at the original repository and make pull requests from branches on your fork. To do this, run: | |
$ git remote add upstream https://github.com/kentcdodds/glamorous-website.git | |
$ git fetch upstream | |
$ git branch --set-upstream-to=upstream/master master | |
# This will add the original repository as a "remote" called "upstream," Then fetch the git information from that remote, then set your local master branch to use the upstream master branch whenever you run git pull. Then you can make all of your pull request branches based on this master branch. Whenever you want to update your version of master, do a regular git pull. |
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
$ mogrify -path . -resize 1600x1600\> -format jpg *.jpg |
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 date = new Date().toJSON().slice(0,10) | |
// 2017-04-30 |
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
# http://editorconfig.org | |
root = true | |
[*] | |
end_of_line = lf | |
charset = utf-8 | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
indent_style = space | |
indent_size = 2 |
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
defaults write com.apple.notificationcenterui bannerTime <SECONDS> |
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
export async function fetchJSON(url, options = {}) { | |
let response = checkResponse(await fetch(url, options)) | |
let data = await response.json() | |
return data | |
} |
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
// Disable caching so we'll always get the latest comments. | |
app.use(function(req, res, next) { | |
res.setHeader('Cache-Control', 'no-cache') | |
next() | |
}) |
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
/* | |
ON CONSOLE | |
const images = document.getElementsByTagName('*'); | |
let srcList = []; | |
for (let i = 0; i < images.length; i++) { | |
srcList.push(images[i].style.backgroundImage); | |
} | |
*/ | |
const pizzaGuy = require('pizza-guy') |