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
| $ git remote add upstream git://github.com/pjhyett/github-services.git | |
| $ git fetch upstream | |
| # then: (like "git pull" which is fetch + merge) | |
| $ git merge upstream/master master |
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
| # Resets index to former commit; replace '56e05fced' with your commit code | |
| git reset 56e05fced | |
| # Moves pointer back to previous HEAD | |
| git reset --soft HEAD@{1} | |
| git commit -m "Revert to 56e05fced" | |
| # Updates working copy to reflect the new commit | |
| git reset --hard |
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
| // closure | |
| for(var i = 0; i < 5; i++){ | |
| (function(x){ | |
| setTimeout(function(){ | |
| alert('closure: '+x); // correct value | |
| },10); | |
| })(i); | |
| } |
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
| // resize renderer | |
| var winWidth = $(window).width(); | |
| var winHeight = $(window).height(); | |
| window.renderer.resize(winWidth, winHeight); | |
| // rescale container | |
| var ratio = stageWidth/stageHeight; | |
| var currRatio = winWidth/winHeight; | |
| if (currRatio > ratio) { |
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
| .sass-cache/ | |
| .sass-cache-imports/ | |
| /bower_components | |
| /dist | |
| /deploy | |
| /node_modules | |
| /log/* | |
| # CMS | |
| /vendor |
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
| //- title | |
| title Title | |
| //- favicon | |
| link(rel="icon" type="image/x-icon" href="") | |
| //- SEO | |
| meta(charset="utf-8") | |
| meta(name='description', content='') |
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
| @mixin centerer { | |
| position: absolute; | |
| top: 50%; | |
| left: 50%; | |
| transform: translate(-50%, -50%); | |
| } |
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
| ulimit -n 2560 |
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
| ln -s "/Applications/Sublime Text.app/Contents/SharedSupport/bin/subl" /usr/local/bin/sublime | |
| ## call it this way | |
| sublime . |