Skip to content

Instantly share code, notes, and snippets.

View blowery's full-sized avatar

Ben Lowery blowery

View GitHub Profile
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 */
<!DOCTYPE HTML PUBLIC>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>euro</title>
<script type="text/javascript" charset="utf-8">
window["€"] = { foo: "yes" };
console.dir(window["€"]);
</script>
</head>
<project>
<!-- this build is meant to be invoked by maven -->
<target name="uptodate" unless="dojo.skipbuild">
<uptodate property="dojo.skipbuild"
targetFile="${dojo.build.release.location}/${dojo.build.release.name}/dojo/dojo.js">
<srcfiles dir="${js.source}">
<include name="**/*.js" />
<include name="**/*.html" />
<include name="**/*.css" />
<include name="**/*.gif" />
@blowery
blowery / foo.css
Created October 26, 2011 01:36
renaissanceww css hacks
.comment {
padding: 1em;
clear: left;
}
.comment-author-avatar {
float: left;
}
.comment-content {
@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.
@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 / reload-chrome
Created October 26, 2012 17:53
Reload the active tab in Chrome
#!/bin/bash
osascript ~/dotfiles/bin/reload-chrome.osa
@blowery
blowery / gist:3988605
Created October 31, 2012 17:44
mtr to rdio CDN
HOST: loki Loss% Snt Last Avg Best Wrst StDev
1.|-- unknown 0.0% 200 0.9 1.0 0.7 3.7 0.4
2.|-- cable-mac1.srspny01-ar400 0.0% 200 15.5 79.6 9.8 2191. 263.8
3.|-- gig2-39.srspny01-rtr002.a 0.5% 200 8.4 14.1 8.1 189.5 18.2
4.|-- rdc-74-76-242-134.alb.nor 2.0% 200 10.6 13.4 9.2 51.2 5.2
5.|-- rdc-74-76-241-193.alb.nor 0.0% 200 21.0 25.3 18.4 45.1 4.4
6.|-- ae-5-0.cr0.nyc30.tbone.rr 0.0% 200 27.1 24.6 18.1 50.9 4.0
7.|-- 107.14.19.147 0.0% 200 20.2 21.5 17.6 64.8 5.6
8.|-- nyk-b5-link.telia.net 5.0% 200 19.9 22.2 17.7 62.2 5.9
9.|-- nyk-b6-link.telia.net 7.0% 200 18.7 23.0 18.0 59.7 5.4
;;; a bunch of skeletons and mods to js-mode
(eval-after-load 'js
'(progn
(define-skeleton js-anon-fn-skeleton
"Insert an anonymous function" nil
"function("(skeleton-read "Arguments:")") {" > \n
"" > _ \n
"}" > \n
)
@blowery
blowery / app.js
Last active December 16, 2015 12:59
define([ "jquery-ui" ], function(jqui) {
return {
init: function() {
$(".datepicker").datepicker();
}
}
});