Skip to content

Instantly share code, notes, and snippets.

View jed's full-sized avatar

Jed Schmidt jed

View GitHub Profile
Object.keys({
attachShader:1,
createProgram:1,
linkProgram:1,
createBuffer:1,
bindBuffer:1,
bufferData:1,
viewport:1,
createShader:1,
shaderSource:1,
@jed
jed / LICENSE.txt
Created August 30, 2011 23:01 — forked from 140bytes/LICENSE.txt
isSameOrigin
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
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
@jed
jed / widget.after.js
Created August 20, 2011 08:34
a cleaner prototype setup for coffeescript
var Widget;
Widget = new function() {
function Widget() {}
Widget.prototype = this;
this.foo = function() {};
this.bar = function() {};
this.baz = function() {};
return Widget;
};
@jed
jed / LICENSE.txt
Created August 15, 2011 16:10 — forked from 140bytes/LICENSE.txt
an animated loading DOM spinner
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
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
a: b: c
1: 2: 3
@jed
jed / README.txt
Created August 1, 2011 06:19
discrepancy for api.geonames.org/timezone
the xml and json endpoints for http://api.geonames.org/timezone are inconsistent,
in that the json endpoint doesn't return the date.
http://api.geonames.org/timezone?lat=47.01&lng=10.2&username=jed&date=2011-07-13
=> the date is specified in the query string, and included in the results
http://api.geonames.org/timezoneJSON?lat=47.01&lng=10.2&username=jed&date=2011-07-13
=> the date is specified in the query string, but not included in the results
@jed
jed / replacer.coffee
Created July 28, 2011 14:49
JSON.stringify replacer that sorts object keys
replacer = (key, val) ->
if val instanceof Object
keys = Object.keys(val).sort().map (key) ->
"\"#{key}\":#{JSON.stringify val[key], replacer}"
"{#{keys}}"
else val
@jed
jed / LICENSE.txt
Created July 19, 2011 05:15 — forked from 140bytes/LICENSE.txt
extract html from embedded github gists
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
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
@jed
jed / LICENSE.txt
Created June 24, 2011 10:20 — forked from 140bytes/LICENSE.txt
Array.prototype.unique
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
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
@jed
jed / LICENSE.txt
Created June 24, 2011 10:06 — forked from 140bytes/LICENSE.txt
ES5-ish shim for Date.prototype.toISOString
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Jed Schmidt <http://jed.is>
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