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
# Self routing cluster example | |
vcl 4.0; | |
import directors; | |
backend node1 { | |
.host = "node1.example.com"; | |
.port = "80"; | |
} |
⮀ aaron ⮀ Gabrielle [14:00:15] ~/Projects/Faria/keybridge | |
> $ time (RAILS_ENV=staging rake requirejs:precompile:all) ⬡ 2.0.0-p353 ⬡ 0.11.8 [±release] | |
Enable development mail interceptor | |
( RAILS_ENV=staging bundled_rake requirejs:precompile:all; ) 68.99s user 3.65s system 94% cpu 1:16.64 total | |
⮀ aaron ⮀ Gabrielle [14:01:46] ~/Projects/Faria/keybridge | |
> $ time (RAILS_ENV=staging rake requirejs:precompile:all) ⬡ 2.0.0-p353 ⬡ 0.10.24 [±release] | |
Enable development mail interceptor | |
( RAILS_ENV=staging bundled_rake requirejs:precompile:all; ) 53.84s user 4.41s system 89% cpu 1:05.25 total |
edit_area_click = (evt, callback) -> | |
$el = $(evt.currentTarget) | |
tg = $("##{$el.data('target')}") | |
tg.redactor('destroy') | |
$el.parents().find(".overlay").show() | |
$el.parents().hide() | |
$('.overlay').attr 'style', '' | |
callback(tg) | |
/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 |