Skip to content

Instantly share code, notes, and snippets.

View tcr's full-sized avatar
🚮
bad command or file name

Tim Ryan tcr

🚮
bad command or file name
View GitHub Profile
@tcr
tcr / summary.md
Created October 23, 2011 06:59
Where can you find information about the Boston Computer Museum online?

An archive of its website is available at this address. Otherwise, there seems to be a few articles, few and far between.

@tcr
tcr / summary.md
Created October 23, 2011 07:02
How do I get internet working on a BlackBerry Simulator on Windows 7?

Vista/Windows 7 need UAC permissions for the Java folder.

@tcr
tcr / summary.md
Created October 23, 2011 07:02
How do you make a parabolic reflector out of a flat sheet?

Wanna do some calculations? Here you go:

@tcr
tcr / tags.json
Created October 23, 2011 07:04
How do you make a totally custom map using the Google Maps backend?
[""]
@tcr
tcr / summary.md
Created October 23, 2011 07:05
What is the best choice for virtualizing Windows on a Linux machine?

VirtualBox. It has superior UI and comparable functionality to VMWare.

@tcr
tcr / summary.md
Created October 23, 2011 07:05
How do you populate an App Engine datastore from an existing source? How do you upload it?

You must populate a fresh datastore using a script in your localhost debug server, then upload it. You can upload it only using the Python tools, not the Java ones.

@tcr
tcr / tags.json
Created October 23, 2011 07:06
What is that simple JavaScript UI toolkit I saw on Hacker News?
[""]
@tcr
tcr / code.js
Created October 23, 2011 07:22
How can you make the Github API accept Unicode characters in JSON?
function JSON_stringify(s, emit_unicode)
{
var json = JSON.stringify(s);
return emit_unicode ? json : json.replace(/[\u007f-\uffff]/g,
function(c) {
return '\\u'+('0000'+c.charCodeAt(0).toString(16)).slice(-4);
}
);
}
@tcr
tcr / code.coffee
Created October 23, 2011 07:30
How to get started with OAuth and Github's API on node.js?
config =
key: "github_key"
secret: "github_secret"
clientID: "github_client_id"
# Network shim.
net =
post: (host, path, query, headers, data, fn) ->
headers ?= {}
@tcr
tcr / code.coffee
Created October 23, 2011 07:34
Using node.js and socket.io, when I broadcast to all other sockets with a callback, can I get a reference to each socket inside the callback?
# Iterate through all sockets excluding origin
broadcast = (origin, fn) ->
fn(socket) for socket in io.sockets.clients() when socket != origin