Skip to content

Instantly share code, notes, and snippets.

View blowery's full-sized avatar

Ben Lowery blowery

View GitHub Profile
@blowery
blowery / index.html
Created April 25, 2012 18:45 — forked from abeppu/index.html
candlestick charts using d3
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?1.25.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?1.25.0"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script>
</head>
<body>
<div id="chart"></div>
@blowery
blowery / tunlr
Created November 11, 2011 15:05 — forked from phiggins42/tunlr
tunlr!
#!/usr/bin/env node
/*
tunlr - simple SSH tunnel management
usage: tunlr [options] [command]
options:
-q quiet. suppress console output.
dojo.provide("dojox.mustache._Templated");
dojo.require("dijit._Templated");
//
// INSTALL: copy http://github.com/janl/mustache.js to this folder as _base.js
// Add dojox.mustache = dojo.hitch(Mustache, "to_html") in _base.js, wrapping
// the whole file in a self-executing-anonymous-function. eg:
//
// dojo.provide("dojox.mustache._base");
// (function(){
// /* contents of Mustache.js */
#!/bin/bash
# --- Version history ---
# 0.5: just for me, it takes two processes and two filenames so I can
# track a pair of processes
# 0.4: added variable to store file path, and $2 for base file name
# added variable to store desired reporting interval
# 0.3: added $1 to send in process ID at run time.
# 0.2: switched to $SECONDS for the loop. works.
# 0.1: didn't work well at all.
# --- Version history ---
// dojo
dojo.xhrGet({
url: "/dragons",
load: function(data) { /*do something w/ the data */ },
handleAs: "json"
});
// jQuery
jQuery.get("/dragons", function(data, textStatus){
/*do something w/ the data */