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
| module.exports = delay => new Promise(resolve => setTimeout(resolve, delay)) |
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
| # fatal: No configured push destination | |
| # # Remote #local:#remote branch | |
| git push --set-upstream https://github.com/username/repo.git master:master | |
| # use `--force` flag on conflict |
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
| document.body.contentEditable = 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
| <?php | |
| /* | |
| * Unified variables | |
| */ | |
| $charset = 'UTF-8'; | |
| $collate = ''; | |
| /* | |
| * Set variables conditianlly based on current environment |
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
| // There's some better solutions in the comments, so scroll down and see how other folks have improved this! | |
| // USAGE: | |
| // abbrState('ny', 'name'); | |
| // --> 'New York' | |
| // abbrState('New York', 'abbr'); | |
| // --> 'NY' | |
| function abbrState(input, to){ | |