Skip to content

Instantly share code, notes, and snippets.

View jedahan's full-sized avatar
💀
.

Jonathan Dahan jedahan

💀
.
View GitHub Profile
{ '14':
[ '#9c9c9a': 1,
'#675336': 2,
'#f9f9f9': 1,
'#51504e': 1,
'#5b5c58': 1 ],
'32':
[ '#9b9791': 1,
'#7b5a39': 1,
'#f5f5f5': 3,

Title

GLAM Lab best practices

Abstract

Come up with a repeatable, testable framework for running a lab in context of GLAM R&D

Title

GLAM Lab best practices

Abstract

Come up with a repeatable, testable framework for running a lab in context of GLAM R&D

@jedahan
jedahan / checkdump.sh
Created May 8, 2012 15:20
check if anyone you follow or follows you is in the twitter password dump
for f in `t following | cut -d'@' -f2`; do ack $f twitter_account*.txt; done
for f in `t followers | cut -d'@' -f2`; do ack $f twitter_account*.txt; done
nodeio = require 'node.io'
class ListObjects extends nodeio.JobClass
queue = []
init: ->
start = +@options.args[0] or 1
end = +@options.args[1] or start+4
queue = [start..end]
fs = require 'fs'
Zombie = require 'zombie'
jsdom = require 'jsdom'
jquery = fs.readFileSync('./jquery.min.js').toString()
zombie = new Zombie loadCSS: false, runScripts: false
base = 'http://www.metmuseum.org/Collections/search-the-collections/'
scrapeObject = (id) ->
@jedahan
jedahan / test.coffee
Created October 4, 2012 22:51
scoping hell
fs = require 'fs'
class ScopeTest
q: []
init: ->
@q.push "outer"
fs.stat __filename, (e, s) =>
@q.push "inner"
console.log @q
@jedahan
jedahan / listobjects.coffee
Created October 5, 2012 17:13
cheerio > jsdom for now
nodeio = require 'node.io'
fs = require 'fs'
start = require './ids/american-wing.json'
_arrify = (str) -> str.split /\r\n/
_remove_nums = (arr) -> str.replace(/\([0-9,]+\)|:/, '').trim() for str in arr
_remove_null = (arr) -> arr.filter (e) -> e.length
_flatten = (arr) -> if arr?.length is 1 then arr[0] else arr
_process = (str) -> _flatten _remove_null _remove_nums _arrify str
_trim = (arr) -> str.trim() for str in arr
@jedahan
jedahan / cosmlight.html
Created October 13, 2012 18:04
cosmlight
<title>cosmjs - Cosm Javascript Library - Pete Correia</title>
<ul class="demo-streams">
<li>light <span class="light-stream"></span></li>
</ul>
<script src="js/jquery-1.8.2.min.js"></script>
<script src="js/cosmjs-1.0.0.min.js"></script>
<script>
cosm.setKey( "wFh0zSkJ4L3Znbyv03ujiDdoCDiUczAfVGAHGH6LmkI" );
@jedahan
jedahan / gist:4113507
Created November 19, 2012 20:01
asdasd
From e2182b05c7aa93ed8e137aab8490c9ee0ab2d2db Mon Sep 17 00:00:00 2001
From: Jonathan Dahan <jonathan@jedahan.com>
Date: Wed, 14 Nov 2012 12:58:03 -0500
Subject: [PATCH] brand for themet
---
src/main/html/index.html | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/main/html/index.html b/src/main/html/index.html