This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
Version 2, December 2004 | |
Copyright (C) 2011 Alex Kloss <alexthkloss@web.de> | |
Everyone is permitted to copy and distribute verbatim or modified | |
copies of this license document, and changing it is allowed as long | |
as the name is changed. | |
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<div id="spinner"></div> | |
</body> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
String.prototype.trim = typeof (String.prototype.trim) != "undefined" ? | |
String.prototype.trim : | |
function() { return this.replace(/^\s\s*/, '').replace(/\s\s*$/, ''); }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function is_email(id){return (/^([\w!.%+\-\*])+@([\w\-])+(?:\.[\w\-]+)+$/).test(id);} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function asyncLoad(scriptURL,callback) | |
{ | |
if(!scriptURL){return;} | |
var firstScriptTag=document.getElementsByTagName('script')[0]; | |
var js=document.createElement('script'); | |
js.type='text/javascript'; | |
js.src=scriptURL; | |
js.async=true; | |
if(callback && typeof(callback)===typeof(Function)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// My Birthday :) | |
$date_1 = new DateTime( '1989-06-15' ); | |
// Todays date | |
$date_2 = new DateTime( date( 'Y-m-d' ) ); | |
$difference = $date_2->diff( $date_1 ); | |
// Echo the as string to display in browser for testing | |
echo (string)$difference->y; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media | |
only screen and (-webkit-min-device-pixel-ratio: 1.3), | |
only screen and (min-device-pixel-ratio: 1.3), | |
only screen and (min-resolution: 120dpi) { | |
/* Votre code ici pour les écrans Retina */ | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ "keys": ["ctrl+s"], "command": "toggle_side_bar" }, | |
{ "keys": ["ctrl+i"], "command": "toggle_setting", "args": {"setting": "gutter"} } | |
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*------------------------------------*\ | |
Auto Button Mixin | |
\*------------------------------------*/ | |
@mixin button( $base-color: #f9f9f9, | |
$radius: 4px, | |
$bold: true, | |
$drop-shadow: true, | |
$padding: '.5em 1.5em'){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Checkbox Custom Style | |
* ======================== | |
* Courtesy of ??? (I don't remember who showed me this trick) | |
* @_victa | |
*/ | |
/* Old Skool Reset */ | |
*{margin:0;padding:0} | |
html,body{height:100%} | |
body{ |