Skip to content

Instantly share code, notes, and snippets.

mojodna / caveatPatchor.js
Created Oct 14, 2011
caveatPatchor.js with html5 audio support
View caveatPatchor.js
var HTML5Audio = true;
if (HTML5Audio) {
Campfire.HTML5Audio = Class.create({
initialize: function(chat) { = chat;
var messages =;
for(var i = 0; i < messages.length; i++) {
this.detectAudio(messages[i], false);
mojodna / Procfile
Created Sep 29, 2011 — forked from RandomEtc/Procfile
Getting Kue working on Heroku
View Procfile
web: node app.js
worker: node consumer.js
View simplegeo-com-record-geojson.json
"layer": "",
"id": "simplegeo-boulder",
"type": "Feature",
"geometry": {
"type": "Point",
"coordinates": [
View simplegeo-storage-history.json
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View simplegeo-feature.json
package com.simplejavaapp;
import java.util.ArrayList;
import com.simplegeo.client.SimpleGeoPlacesClient;
import com.simplegeo.client.callbacks.FeatureCollectionCallback;
import com.simplegeo.types.Feature;
import com.simplegeo.types.FeatureCollection;
View simplegeo-context-response.json
"weather": {
"temperature": "65F",
"conditions": "light haze"
}, {
View netflix.rb
#!/usr/bin/env ruby -rubygems
require 'oauth'
require 'optparse'
options = {}
option_parser = do |opts|
opts.banner = "Usage: #{$0} [options] <query>"
mojodna / jsonpretty.txt
Created Feb 20, 2009 — forked from nicksieger/jsonpretty.txt
nicksieger's jsonpretty example with syntax highlighting
View jsonpretty.txt
jsonpretty: A command-line JSON pretty-printer.
Get it: gem install jsonpretty
$ curl -i | jsonpretty | pygmentize -l js
HTTP/1.1 200 OK
Server: nginx/0.6.26
You can’t perform that action at this time.