Skip to content

Instantly share code, notes, and snippets.

View emjayess's full-sized avatar
💭
🪞 mirroring repos from gitlab

Matthew J. Sorenson emjayess

💭
🪞 mirroring repos from gitlab
View GitHub Profile
@emjayess
emjayess / emstrong.css
Created November 1, 2010 17:59
this was an actual style rule on a site I inherited. :\
em {
font-weight: bold;
font-style: normal;
}
function $arr(xargs) {
return Array.prototype.slice.call(xargs);
}
//sample usage:
function someotherfn(arg1,arg2,arg3){
$args = $arr(arguments);
$args.sort();
}
//artificially delay a javascript redirect w/anonymous function
//n represents delay in seconds
(function(){
var i,c=0,n=3;
i=window.setInterval(function(){
if(c++==n){
window.clearInterval(i);
top.location='http://redirect-here.tld/';
}