This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| /usr/sbin/ioreg -l | awk 'BEGIN{a=0;b=0} | |
| $0 ~ "MaxCapacity" {a=$5;next} | |
| $0 ~ "CurrentCapacity" {b=$5;nextfile} | |
| END{printf("%.2f%%", b/a * 100)}' |
| --langdef=CoffeeScript | |
| --langmap=CoffeeScript:.coffee | |
| --regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/ | |
| --regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/ | |
| --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/ | |
| --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])([A-Za-z0-9._$]+)[[:blank:]]*[:=][[:blank:]]*new[[:blank:]]+Object\(/\2/o,object/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])function[[:blank:]]+([A-Za-z0-9._$]+)[[:blank:]]*([^)])/\2/f,function/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])([A-Za-z0-9._$]+)[[:blank:]]*[:=][[:blank:]]*\[/\2/a,array/ |
| --langdef=CoffeeScript | |
| --langmap=CoffeeScript:.coffee | |
| --regex-CoffeeScript=/(^|=[ \t])*class ([A-Za-z.]+)( extends [A-Za-z.]+)?$/\2/c,class/ | |
| --regex-CoffeeScript=/^[ \t]*@?([A-Za-z.]+):.*[-=]>.*$/\1/f,function/ | |
| --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=.*[-=]>.*$/\1/f,function/ | |
| --regex-CoffeeScript=/^[ \t]*([A-Za-z.]+)[ \t]+=[^->\n]*$/\1/v,variable/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])([A-Za-z0-9._$]+)[[:blank:]]*[:=][[:blank:]]*new[[:blank:]]+Object\(/\2/o,object/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])function[[:blank:]]+([A-Za-z0-9._$]+)[[:blank:]]*([^)])/\2/f,function/ | |
| --regex-JavaScript=/(^|^[^\/*]+[[:blank:]])([A-Za-z0-9._$]+)[[:blank:]]*[:=][[:blank:]]*\[/\2/a,array/ |
| (function(){ | |
| var index = 0, | |
| changeTime = 15000, | |
| slides = $(".slide"); | |
| var select, | |
| nextSlide, | |
| previousSlide, | |
| interval; |
| "Qfix toggle (vim) | |
| command -bang -nargs=? QFix call QFixToggle(<bang>0) | |
| function! QFixToggle(forced) | |
| if exists("g:qfix_win") && a:forced == 0 | |
| cclose | |
| unlet g:qfix_win | |
| else | |
| copen10 |
| DISABLE_AUTO_TITLE=true | |
| ;Reload tmux conf | |
| ;:source-file ~/.tmux.conf |
| Object::mixin = (Klasses...) -> | |
| Klasses.forEach (Klass) => | |
| # assign class properties | |
| for key, value of Klass | |
| @[key] = value | |
| # assign instance properties | |
| for key, value of Klass.prototype | |
| @::[key] = value | |
| @ |
| sed -E 's/console.(log|debug|info|...|count)\((.*)\);?//g' |