Skip to content

Instantly share code, notes, and snippets.

View joshcarr's full-sized avatar
👁️
Seeing

Josh Carr joshcarr

👁️
Seeing
View GitHub Profile
@joshcarr
joshcarr / gist:648079
Created October 26, 2010 23:26
SVN bash script to export changed files
#!/bin/bash
# USAGE:
# ./svn-export revision-from revision-to repository target-directory
# ./svn-export 20 25 svn://localhost/myrepository .
if [ ! $1 ] || [ ! $2 ] || [ ! $3 ] || [ ! $4 ]; then
echo "Please enter a revision from, revision to, SVN repository, and target directory"
exit
fi
@joshcarr
joshcarr / hipchat_bot.js
Created September 24, 2011 22:31 — forked from powdahound/hipchat_bot.js
Basic XMPP bot example for HipChat using node.js
// Basic XMPP bot example for HipChat using node.js
// To use:
// 1. Set config variables
// 2. Run `node hipchat_bot.js`
// 3. Send a message like "!weather 94085" in the room with the bot
var request = require('request'); // github.com/mikeal/request
var sys = require('sys');
var util = require('util');
@joshcarr
joshcarr / grunt.js
Created July 2, 2012 21:47
Sample gruntfile
/*global module:false*/
module.exports = function(grunt) {
var SRC_CSS = 'src/css/',
SRC_JS = 'src/js/',
BUILD_CSS = 'css/',
BUILD_JS = 'js/';
// Project configuration.
@joshcarr
joshcarr / ir.less
Created July 25, 2012 22:47
image replacement mixin
.ir(){
display: block;
border: 0;
text-indent: 100%;
overflow: hidden;
background-color: transparent;
background-repeat: no-repeat;
text-align: left;
direction: ltr;
white-space: nowrap;
@joshcarr
joshcarr / README.txt
Created September 26, 2012 20:37 — forked from cpudney/README.txt
Infinite Jest Visualization
TODO
Improved year labels (mouseover -> shows full name in tooltip)
@joshcarr
joshcarr / jquery.ba-tinypubsub.js
Created September 26, 2012 22:19 — forked from cowboy/HEY-YOU.md
jQuery Tiny Pub/Sub: A really, really, REALLY tiny pub/sub implementation for jQuery.
/* jQuery Tiny Pub/Sub - v0.7 - 10/27/2011
* http://benalman.com/
* Copyright (c) 2011 "Cowboy" Ben Alman; Licensed MIT, GPL */
(function($) {
var o = $({});
$.subscribe = function() {
o.on.apply(o, arguments);
@joshcarr
joshcarr / LICENSE.txt
Created October 10, 2012 23:04 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
<!doctype html>
<html>
<head>
<title>Test</title>
</head>
<body>
<h1>Backbone TEST</h1>
<div id="main"></div>
</body>
</html>
@joshcarr
joshcarr / README.md
Last active December 15, 2015 17:10 — forked from gniemetz/README.md
Multiple Line Chart with Brushing

d3js Multiline chart with brushing and mouseover

@joshcarr
joshcarr / debt.json
Created April 12, 2013 19:26
World debt
[{"n":"Albania","d":[-1,-1,-1,-1,-1,-1,-1,84.604,75.713,72.67,69.634,65.86,65.464,60.708,57.721,58.228,56.682,53.846,55.099,59.76,58.223,59.363],"e":2010},{"n":"Algeria","d":[0.0,79.506,62.926,74.028,98.376,116.195,98.148,85.095,84.508,89.357,69.823,63.459,53.756,43.921,36.565,27.283,23.61,12.517,8.225,10.356,10.393,10.655],"e":2009},{"n":"Angola","d":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,104.542,102.053,70.948,63.967,51.302,42.493,20.627,20.816,31.5,36.285,35.022,29.909],"e":2009},{"n":"Antigua and Barbuda","d":[-1,-1,-1,-1,-1,-1,-1,41.614,93.082,88.983,108.256,118.919,124.946,114.567,112.482,87.255,85.158,63.738,62.138,81.139,69.581,68.629],"e":2010},{"n":"Argentina","d":[-1,-1,-1,-1,-1,-1,-1,34.508,37.569,42.963,45.001,53.69,164.974,139.455,127.027,87.125,76.457,67.098,58.52,58.704,49.102,43.346],"e":2010},{"n":"Armenia","d":[-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,48.907,46.364,47.019,40.896,32.555,24.404,18.725,16.102,16.144,40.159,39.181,41.475],"e":2010},{"n":"Australia","d":[16.256,21.375,27.382,30.379,31.485,30.933,2