Skip to content

Instantly share code, notes, and snippets.

View owldesign's full-sized avatar
🔥
making stuff

Vadim Goncharov owldesign

🔥
making stuff
View GitHub Profile
@owldesign
owldesign / gist:6600712
Created September 17, 2013 21:12
Coffee Script Cookies
#######################################################
# Chocolate Chip Cookies setter+getter
#######################################################
createCookie = (name, value, expires, path, domain) ->
cookie = name + "=" + escape(value) + ";"
if expires
if expires instanceof Date
expires = new Date() if isNaN(expires.getTime())
else
expires = new Date(new Date().getTime() + parseInt(expires) * 1000 * 60 * 60 * 24)
@owldesign
owldesign / gist:5154692
Created March 13, 2013 18:14
Fetch Manage
{
"files":
{
"fancybox": "https://raw.github.com/cdnjs/cdnjs/master/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js",
"font-awesome": "https://raw.github.com/FortAwesome/Font-Awesome/master/css/font-awesome.min.css",
"html5shiv": "https://raw.github.com/aFarkas/html5shiv/master/dist/html5shiv.js",
"jquery": "http://code.jquery.com/jquery.min.js",
"jquery1.8": "http://code.jquery.com/jquery-1.8.3.min.js",
"modernizr": "https://raw.github.com/cdnjs/cdnjs/master/ajax/libs/modernizr/2.6.2/modernizr.min.js",
"moments": "https://raw.github.com/timrwood/moment/develop/min/moment.min.js",