mboomaars mboomaars

View gist:2020631
1 2 3 4 5 6 7 8 9 10
function unzip_file( $file, $destination )
{
// create object
$zip = new ZipArchive() ;
// open archive
if ( $zip->open( $file ) !== TRUE ) {
die ( "Could not open archive" );
}
// extract contents to destination directory
$zip->extractTo( $destination );
View gist:2006621
1 2 3 4 5
table {
*border-collapse: collapse; /* IE7 and lower */
border-spacing: 0;
border-radius: 5px;
}
View gist:2006556
1 2 3 4 5 6 7 8 9
html {
height: 100%;
}
body {
height: 100%;
margin: 0;
background-repeat: no-repeat;
background-attachment: fixed;
}
View gist:2006226
1 2 3 4 5 6 7 8 9 10
// ----------------------------------------------------------
// A short snippet for detecting versions of IE in JavaScript
// without resorting to user-agent sniffing
// ----------------------------------------------------------
// If you're not in IE (or IE version is less than 5) then:
// ie === undefined
// If you're in IE (>=5) then you can determine which version:
// ie === 7; // IE7
// Thus, to detect IE:
// if (ie) {}
View gist:2006144
1 2 3 4 5 6 7 8
// Use like $(“myElement”).submitWithAjax() to add unobtrusive submission via Ajax to your forms.
jQuery.fn.submitWithAjax = function() {
this.submit(function() {
$.post(this.action, $(this).serialize(), null, "script");
return false;
});
return this;
};
View gist:2006138
1 2 3 4 5 6 7 8 9 10
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title></title>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
 
Something went wrong with that request. Please try again.