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
[Config] | |
Display name = HTML5 | |
Author = Seebz | |
File extention = html | |
[File header] | |
<!doctype html> | |
<html lang="en"> | |
<head> |
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
<?php | |
/* ###################################################################### | |
Here be cows – but: Never ask, never tell | |
##################################################################### */ | |
abstract class Moo | |
{ | |
public static function getMooLine($quiet = false) |
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
/* | |
* JavaScript Pretty Date | |
* Copyright (c) 2011 John Resig (ejohn.org) | |
* Licensed under the MIT and GPL licenses. | |
* | |
* http://ejohn.org/blog/javascript-pretty-date/ | |
*/ | |
// Takes an ISO time and returns a string representing how | |
// long ago the date represents. |
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
<?php | |
class SuperObject implements ArrayAccess, Countable | |
{ | |
/** | |
* @param array | |
*/ | |
public function __construct(array $data = array()) | |
{ | |
foreach ($data as $k => $v) { |
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
/** | |
* "À côté d'un verre vide, il y a toujours un mec plein.".removeAccent(); // A cote d'un verre vide, [...] | |
*/ | |
String.prototype.removeAccent = function() { | |
var alphabet = { | |
A : ["\u00C0", "\u00C1", "\u00C2", "\u00C3", "\u00C4", "\u00C5", "\u0100", "\u0102", "\u0104", "\u01E0", "\u01FA"], | |
a : ["\u00E0", "\u00E1", "\u00E2", "\u00E3", "\u00E4", "\u00E5", "\u0101", "\u0103", "\u0105", "\u01E1", "\u01FB"], | |
B : [], | |
b : [], | |
C : ["\u00C7", "\u0106", "\u0108", "\u010A", "\u010C"], |
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
Date.today = function() { | |
return new Date().midnight(); | |
}; | |
Date.yesterday = function() { | |
return Date.today().day(-1); | |
}; | |
Date.tomorrow = function() { | |
return Date.today().day(1); |
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
Object.clone = function(obj) { | |
var type = typeof(obj); | |
if (obj instanceof Date) { | |
return new Date(obj.getTime()); | |
} | |
else if (obj instanceof Array) { | |
return obj.slice(0); | |
} |
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
<?php | |
class iCal | |
{ | |
/** | |
* @var string | |
*/ | |
public $title; |
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 { | |
font-family: Helvetica, arial, sans-serif; | |
font-size: 14px; | |
line-height: 1.6; | |
padding-top: 10px; | |
padding-bottom: 10px; | |
background-color: white; | |
padding: 30px; | |
color: #333; | |
} |