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 / 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 / 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

#!/usr/bin/env python
import os
import re
import subprocess
import sys
modified = re.compile('^(?:M|A)(\s+)(?P<name>.*)')
CHECKS = [
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@joshcarr
joshcarr / README.md
Created November 7, 2013 04:26 — forked from mbostock/.block

This example uses d3.geo.bounds to draw a diagonal line for the bounding box for each county.

#!/bin/bash
set -o errexit
# Author: David Underhill
# Script to permanently delete files/folders from your git repository. To use
# it, cd to your repository's root and then run the script with a list of paths
# you want to delete, e.g., git-delete-history path1 path2
#
# retrieved from: http://dound.com/2009/04/git-forever-remove-files-or-folders-from-history/
#