Skip to content

Instantly share code, notes, and snippets.

View nrrb's full-sized avatar
💗

Nicholas Bennett nrrb

💗
View GitHub Profile
@nrrb
nrrb / index.html
Created May 8, 2012 05:12 — forked from bunkat/index.html
Simple Scatter Chart Example
<!DOCTYPE html>
<html>
<head>
<title>The d3 test</title>
<style>
.chart {
shape-rendering: crispEdges;
}
.main text {
@nrrb
nrrb / debugwin.py
Created July 1, 2012 10:58 — forked from williame/debugwin.py
can watch variables; opens a window that continuously updates as the variable changes value
import sys, threading, Queue, weakref
try:
import Tkinter
_has_tk = True
_debug_win = None
except ImportError:
# quietly disable ourselves
_has_tk = False
@nrrb
nrrb / index.html
Created September 16, 2012 01:46 — forked from MoritzStefaner/.block
Force-based label placement
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta charset="utf-8">
<title>Force based label placement</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.6.0"></script>
</head>
<body>
@nrrb
nrrb / index.html
Created November 25, 2012 05:54 — forked from MoritzStefaner/.block
Force-based label placement
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html lang="en">
<head>
<meta charset="utf-8">
<title>Force based label placement</title>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.layout.js?2.6.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.geom.js?2.6.0"></script>
</head>
<body>
@nrrb
nrrb / README.md
Created December 13, 2012 05:44 — forked from mbostock/.block
@@                                       oooo   ooo
@@                                      $   $  $   $
@@                                      "o  $ $  o""
@@                                        o  "   "ooooo
@@                                    oo ""           o$
@@                      o            o            oo  "
@@                     $$             $o$""$o  ooo$
@@                     $"$          o $    "$  $
@@           o$o       $ "$         $ $     $ $

@@ $$$o $$ "$ o$ $ o $o

# Author: Cifro Nix, http://about.me/Cifro
#
# usage:
# ./create-thumbnails.sh
# will produce thumbnails with name "<id>.jpg" with size 220x122
#
# different size:
# ./create-thumbnails.sh 640x360 -big
# will produce thumbnails with name "<id>-big.jpg" with size 640x360
@nrrb
nrrb / README.md
Last active December 23, 2015 00:09 — forked from mbostock/.block
@nrrb
nrrb / README.md
Last active January 1, 2016 00:19 — forked from mbostock/.block

This.

@nrrb
nrrb / index.html
Last active January 1, 2016 00:29 — forked from yaronn/index.html
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Mobile Patent Suits</title>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
path.link {
fill: none;
@nrrb
nrrb / doapi.sh
Created January 24, 2014 01:12 — forked from elbuo8/doapi.sh
endpoints=(sizes regions images ssh_keys)
for i in "${endpoints[@]}"; do
url=`printf "https://api.digitalocean.com/%s/?client_id=%s&api_key=%s" $i $DO_CLIENT_ID $DO_API_KEY`
curl --silent $url | python -mjson.tool
done