- http://stackoverflow.com/questions/804115 (
rebasevsmerge). - https://www.atlassian.com/git/tutorials/merging-vs-rebasing (
rebasevsmerge) - https://www.atlassian.com/git/tutorials/undoing-changes/ (
resetvscheckoutvsrevert) - http://stackoverflow.com/questions/2221658 (HEAD^ vs HEAD~) (See
git rev-parse) - http://stackoverflow.com/questions/292357 (
pullvsfetch) - http://stackoverflow.com/questions/39651 (
stashvsbranch) - http://stackoverflow.com/questions/8358035 (
resetvscheckoutvsrevert)
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
| let selectionEndTimeout = null, | |
| event = new Event('selectionEnd'); | |
| document.addEventListener('selectionEnd', function (evt/*event*/) { | |
| console.log("End selection!") | |
| }, false); | |
| [ | |
| "mouseup", |
brew install nginx
sudo cp /usr/local/Cellar/nginx/1.8.0/homebrew.mxcl.nginx.plist /Library/LaunchAgentsReplace /usr/local/etc/nginx/nginx.conf with the nginx.conf in this gist. I'm using port 5000 for my current project. Obviously, change server_name as well, and probably the name of its access log.
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
| // To disable editor warning put this inside .vscode/settings.json | |
| { | |
| "svelte.plugin.svelte.compilerWarnings": { | |
| "a11y-aria-attributes": "ignore", | |
| "a11y-incorrect-aria-attribute-type": "ignore", | |
| "a11y-unknown-aria-attribute": "ignore", | |
| "a11y-hidden": "ignore", | |
| "a11y-misplaced-role": "ignore", | |
| "a11y-unknown-role": "ignore", |
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
| if ('serviceWorker' in navigator) { | |
| caches.keys().then(function(cacheNames) { | |
| cacheNames.forEach(function(cacheName) { | |
| caches.delete(cacheName); | |
| }); | |
| }); | |
| } |