- Use the present tense ("Add feature" not "Added feature")
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
- Limit the first line to 72 characters or less
- Reference issues and pull requests liberally
- When only changing documentation, include
[ci skip]
in the commit description - Consider starting the commit message with an applicable emoji:
- 🎨
:art:
when improving the format/structure of the code - 🐎
:racehorse:
when improving performance
- 🎨
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
const fetchOptions = { | |
credentials: "include", | |
headers: { | |
"X-IG-App-ID": "936619743392459", | |
}, | |
method: "GET", | |
}; | |
const sleep = (ms) => new Promise((r) => setTimeout(r, ms)); | |
const random = (min, max) => Math.ceil(Math.random() * (max - min)) + min; |
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
** Find # disk to be erased | |
diskutil list | |
** Delete and format disk | |
diskutil eraseDisk free EMPTY /dev/disk# |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
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
0 info it worked if it ends with ok | |
1 verbose cli [ '/usr/local/Cellar/node/8.0.0/bin/node', | |
1 verbose cli '/usr/local/bin/npm', | |
1 verbose cli 'uninstall', | |
1 verbose cli '-g', | |
1 verbose cli 'npm-check-updates' ] | |
2 info using [email protected] | |
3 info using [email protected] | |
4 silly install loadCurrentTree | |
5 silly install readGlobalPackageData |
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
{ | |
"env": { | |
"browser": true, | |
"node": true, | |
"es6": true | |
}, | |
"parser": "babel-eslint", | |
"globals": { | |
"React": true | |
}, |
In React's terminology, there are five core types that are important to distinguish:
React Elements
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
if [ $UID -eq 0 ]; then NCOLOR="blue"; else NCOLOR="cyan"; fi | |
PROMPT='%{$fg[$NCOLOR]%}%c ♉︎ ➤ %{$reset_color%}' | |
RPROMPT='%{$fg[$NCOLOR]%}%p $(git_prompt_info)%{$reset_color%}' | |
ZSH_THEME_GIT_PROMPT_PREFIX="git:" | |
ZSH_THEME_GIT_PROMPT_SUFFIX="" | |
ZSH_THEME_GIT_PROMPT_DIRTY="*" | |
ZSH_THEME_GIT_PROMPT_CLEAN="" |
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
alias hide="defaults write com.apple.finder CreateDesktop false; killall Finder;" | |
alias show="defaults write com.apple.finder CreateDesktop true; killall Finder;" |
NewerOlder