Skip to content

Instantly share code, notes, and snippets.

@kolber
kolber / app.js
Last active August 29, 2015 13:59 — forked from makenosound/app.js
var views = {
foo: function($el, el, props) {
console.log(props);
},
bar: function($el, el, props) {
console.log(props);
},
fooBar: function($el, el, props) {
console.log(props);
}
@kolber
kolber / gist:3376911
Created August 17, 2012 08:11 — forked from plasticine/gist:3375133
Icon Fontin’
// Generic icon set using custom font face for glyphs
//
// .icon-myicon - This is my cool icon
//
// Styleguide 5.1
[class^="icon-"], [class*=" icon-"]{
font-family: "TCFont-Regular";
display: inline-block;
font-weight: normal !important;
font-style: normal !important;
@kolber
kolber / gist:3087834
Created July 11, 2012 03:36 — forked from mtcmorris/gist:3082609
Films to see at MIFF
@kolber
kolber / N3RD5
Created January 27, 2011 05:54 — forked from jmac/NERDS
Y0u guy5 ar3 th3 gr34t35t.
@kolber
kolber / index.html
Created August 20, 2010 06:11 — forked from rails/gist:58761
// Ruby strftime: %b %d, %Y %H:%M:%S GMT
time_ago_in_words = function(from, to) {
var to = to ? new Date(to) : new Date,
from = new Date(from);
var seconds = ((to - from) / 1000),
minutes = (seconds / 60);
if (minutes == 0) return 'less than a minute ago';
/*
Delay function call by a specified time
---------------------------------------------
If the method is called again before the delay is up, reset the delay.
An optional id can be passed to prevent timeout collisions.
*/
Function.prototype.sleep = function(ms, id) {
#!/usr/bin/env ruby
require 'net/http'
def validate(url)
uri = URI.parse(url)
response = Net::HTTP.get_response(uri)
case response
when Net::HTTPSuccess
return uri