Skip to content

Instantly share code, notes, and snippets.

@runzway
runzway / gist:9989119
Created April 5, 2014 08:37
js array generator
/*
daca n = 5
returns [0, 1, 2, 3, 4]
*/
var arr = Array.apply(null, Array(n));
return arr.map(function (x, i) { return i });
@runzway
runzway / 0_reuse_code.js
Created August 28, 2014 09:33
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@runzway
runzway / gist:6d684427bda4c8aa8bf3
Created September 4, 2014 15:37
macos terminal fast rename
zsh
zmv ' (*).mp3' '$1.mp3'
exit
@runzway
runzway / app.css
Created September 5, 2014 12:25
angular-modal
.ng-modal-overlay {
position:absolute;
z-index:9999;
top:0;
left:0;
width:100%;
height:100%;
background-color:#000;
opacity: 0.8;
}
DECLARE @needle varchar(255)
SET @needle = '%MaterialHashKey%'
SELECT DISTINCT
o.name AS Object_Name,
o.type_desc
FROM sys.sql_modules m
INNER JOIN
sys.objects o
ON m.object_id = o.object_id
WHERE m.definition LIKE @needle ESCAPE '\';