I hereby claim:
- I am samuelcole on github.
- I am samuelcole (https://keybase.io/samuelcole) on keybase.
- I have a public key whose fingerprint is 1DA1 E259 A6E3 C70B 190E C7DB 8949 FB93 61B3 7BF1
To claim this, I am signing this object:
# given a set of shows that the user is going to | |
going = [c, e] | |
# and a set of shows that are available | |
available = [a, b, c, d] | |
# 1. insert the going shows at the beginning of the array | |
# 2. make sure the same show doesn't appear twice | |
list == [c, e, a, b, d] |
Verifying that +samuelcole is my openname (Bitcoin username). https://onename.io/samuelcole |
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
i can't believe you aren't on this thing | |
-----BEGIN PGP SIGNATURE----- | |
Version: Keybase OpenPGP v1.0.3 | |
Comment: https://keybase.io/crypto | |
wsBcBAABCgAGBQJUGjSoAAoJEISvsyhSVj73HngIAI9x2C7BQ3ElRCV9EVoH4l6Z | |
ixeIrD+PHxgIpbjmUYNhYamd5stueMaV+EQw6yvRVOw3fBfdNXPBBmFUNpo06zwH |
I hereby claim:
To claim this, I am signing this object:
// require something | |
var hogan = require('hogan.js'); | |
var handlebars = require('handlebars'); | |
var template = 'Hello {{name}}'; | |
console.log(hogan.compile(template)); | |
console.log(handlebars.compile(template)); |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>TIC TAC TOE</title> | |
<style> | |
td { | |
height: 100px; | |
width: 100px; | |
border-color: black; | |
border-width: 1px; |
function Model(object) { | |
this.initialize(object); | |
} | |
Model.prototype.initialize = function (object) { | |
this.listeners = {}; | |
this.listeners._global = []; | |
for (var key in object) { | |
if (object.hasOwnProperty(key)) { | |
this.set(key, object[key]); |
(function ($) { | |
function background_image_url($object) { | |
var string = $object.css('backgroundImage'), | |
url_regex = /[("]([^()"]+)[")]/; | |
return url_regex.exec(string)[1]; | |
} | |
$.fn.preload_background_image = function () { | |
return $(this).each(function () { | |
(new Image()).src = background_image_url($(this)); |
/* | |
Storage Polyfill by Remy Sharp. | |
Delinted by Samuel Cole. | |
*/ | |
if (typeof window.localStorage === 'undefined' || typeof window.sessionStorage === 'undefined') { | |
(function () { | |
var Storage = function (type) { | |
function createCookie(name, value, days) { |
/* | |
Based off of Gruber's awesome url regex: http://daringfireball.net/2010/07/improved_regex_for_matching_urls | |
In addition: | |
- Should match 'example.com', 'google.net', 'google.org'. (only com, net, and org are whitelisted). | |
- Should not match '[email protected]'. | |
*/ | |
var URL_RE = /(?:(?=[\s`!()\[\]{};:'".,<>?«»“”‘’])|\b)((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/|[a-z0-9.\-]+[.](?:com|org|net))(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))*(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]|\b))/gi |