Skip to content

Instantly share code, notes, and snippets.

View bengolder's full-sized avatar

Ben Golder bengolder

  • Oakland, CA, USA
  • 02:48 (UTC -08:00)
View GitHub Profile

Documentation

WE did a bunch f stoakjdhfkajsn dlkfj ;dkalj fasdj f;lsad j

this is a link

  1. one
  2. asdfkdjs
  3. alsdkfjads
  4. lkdjsf
@bengolder
bengolder / Carey
Created April 9, 2014 01:44 — forked from anonymous/Carey
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Networks with D3plus</title>
<!-- load D3plus CSS -->
<link href="/css/d3plus.css" media="screen" rel="stylesheet" type="text/css" />
@bengolder
bengolder / 5feb2014.csv
Last active August 29, 2015 13:56 — forked from lqb2/5feb2014.csv
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Date Time Category Item Quantity Price Point Name SKU Modifiers Applied Gross Sales Discounts Net Sales Payment ID Device Name Notes Details
2/5/14 21:14:04 Coffee Espresso 1 Single $1.68 $0.00 $1.68 A47ND940CXZBK Sean https://squareup.com/dashboard/sales/transactions/A47ND940CXZBK
2/5/14 21:14:04 Ice Cream Ice Cream 2 1 Scoop $7.94 $0.00 $7.94 A47ND940CXZBK Sean https://squareup.com/dashboard/sales/transactions/A47ND940CXZBK
2/5/14 21:07:23 Ice Cream Ice Cream 1 1 Scoop $3.97 $0.00 $3.97 gfVmsGnVNBs0Tvyj0GB Sean https://squareup.com/dashboard/sales/transactions/gfVmsGnVNBs0Tvyj0GB
2/5/14 21:07:00 Ice Cream Ice Cream 1 Pint $6.31 $0.00 $6.31 SSg7vyD9bn8xqtdT0GB Sean https://squareup.com/dashboard/sales/transactions/SSg7vyD9bn8xqtdT0GB
2/5/14 21:04:40 Ice Cream Ice Cream 2 2 Scoop $10.28 $0.00 $10.28 2FEN3ZPAB82N7 Sean https://squareup.com/dashboard/sales/transactions/2FEN3ZPAB82N7
2/5/14 21:02:00 Ice Cream Ice Cream 1 2 Scoop $5.14 $0.00 $5.14 oTHlrXaAWgVrhLe60GB Sean https
@bengolder
bengolder / index.html
Last active August 29, 2015 13:56 — forked from lqb2/5feb2014.csv
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://code.shutterstock.com/rickshaw/vendor/d3.layout.min.js"></script>
<script src="http://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
@bengolder
bengolder / index.html
Last active August 29, 2015 13:56 — forked from lqb2/5feb2014.csv
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="http://code.shutterstock.com/rickshaw/vendor/d3.layout.min.js"></script>
<script src="http://code.shutterstock.com/rickshaw/rickshaw.min.js"></script>
@bengolder
bengolder / index.html
Last active August 29, 2015 13:56 — forked from lqb2/index.html
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF8">
</head>
<body>
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script>
<script src="tosci.js" charset="utf-8"></script>
#!/bin/bash
# Run this:
#
# curl https://gist.github.com/nicerobot/7664605/raw/install.sh | bash -s do-sudo
#
# which will run:
[ -f qgis2-homebrew-build.sh ] || {
curl -O https://gist.github.com/nicerobot/7664605/raw/qgis2-homebrew-build.sh
@bengolder
bengolder / d3-compat.js
Last active December 21, 2015 11:39 — forked from shawnbot/d3-compat.js
(function() {
// get a reference to the d3.selection prototype,
// and keep a reference to the old d3.selection.on
var d3_selectionPrototype = d3.selection.prototype,
d3_on = d3_selectionPrototype.on;
// our shims are organized by event:
// "desired-event": ["shimmed-event", wrapperFunction]
var shims = {
@bengolder
bengolder / hidden_id.py
Created August 8, 2012 23:06 — forked from cesandoval/hidden_id.py
hidden id
#from models.py
class DataLayer(Named, Authored, Dated, Noted):
geometry_type = models.CharField(max_length=50, null=True, blank=True)
srs = models.CharField(max_length=50, null=True, blank=True)
files = models.ManyToManyField('DataFile', null=True, blank=True )
layer_id = models.AutoField(primary_key=True)
def __unicode__(self):
return "DataLayer: %s" % self.name
#from forms.py
@bengolder
bengolder / forms2.py
Created August 7, 2012 21:48 — forked from cesandoval/forms2.py
forms 2
#from forms.py
class LayerReviewForm(forms.ModelForm):
"""For editing and configuring the layer information for each layer."""
class Meta:
model = DataLayer
# we should get geometry_type from the shp file. Users can't
# change it.
fields = ['name', 'notes', 'srs','geometry_type']
#from views.py