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 config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" |
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
| Snow Leo ships with ctags not suitable for Ruby development. Ie if you try to generate tags recursively, it will error out: | |
| $ ctags -R | |
| ctags: illegal option -- R | |
| usage: ctags [-BFadtuwvx] [-f tagsfile] file ... | |
| $ which ctags | |
| /usr/bin/ctags | |
| homebrew to the rescue: |
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
| var JSArray = ["item1","item2","item3"]; | |
| var json = {}; | |
| for(i in tree){ json[i] = tree[i]; } | |
| json = YAHOO.lang.JSON.stringify(json); | |
| //dependecies | |
| //http://yui.yahooapis.com/2.9.0/build/yahoo/yahoo-min.js" | |
| //http://yui.yahooapis.com/2.9.0/build/json/json-min.js" |
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
| <script type="text/javascript"> | |
| var _gaq = _gaq || []; | |
| _gaq.push(['_setAccount', 'UA-xxxxxxx-x']); | |
| _gaq.push(['_trackPageview']); | |
| _gaq.push(['tracker2._setAccount', 'UA-xxxxxxx-x']); | |
| _gaq.push(['tracker2._trackPageview']); | |
| (function() { | |
| var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true; |