Skip to content

Instantly share code, notes, and snippets.

@ggamir
ggamir / CurlifyOneLineIfs.js
Created October 15, 2015 23:09
regex for if(a) b; -----> if(a) { b;}
/*
Hidden in the deep, dark recesses of code
there lives an evil kind of if-statement.
Small, fragile and incomplete.
It has a weakness that weakens the whole.
Should anyone aside from the creator so much as graze it,
a living infection will spread, breaking everything.
@ggamir
ggamir / {♫}.js
Last active October 15, 2015 22:34
Soma.fm groove salad popup bookmarklet
javascript:window.open('http://somafm.com/popup/?groovesalad','%E2%99%AB','directories=0,titlebar=0,toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,addressbar=0,width=414,height=240')