This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
osascript ~/dotfiles/bin/reload-chrome.osa |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env node | |
/* | |
tunlr - simple SSH tunnel management | |
usage: tunlr [options] [command] | |
options: | |
-q quiet. suppress console output. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.comment { | |
padding: 1em; | |
clear: left; | |
} | |
.comment-author-avatar { | |
float: left; | |
} | |
.comment-content { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function itWorked(response) { console.log("yay!"); } | |
function itFailed(err) { console.error("boo!", err); } | |
// in dojo 1.4+ | |
var theForm = dojo.byId("theForm"); // assumes <form id="theForm"> is what you want | |
var def = dojo.xhrPost({ | |
url: "/send/it/here", | |
rawBody: dojo.formToJson(theForm), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
~/src/node (master) | |
> node | |
Type '.help' for options. | |
node> var puts = require("sys").puts; | |
node> puts(5*2) | |
10 | |
node> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// assumes dojo base is loaded | |
(function(d) { | |
var spels = { | |
destroy: [ "destory" ], | |
connect: [ "conect"] | |
}; | |
for(var x in spels) { | |
d.forEach(spels[x], function(n) { |