Skip to content

Instantly share code, notes, and snippets.

@helengibson
helengibson / index.html
Last active December 22, 2015 12:09
D3 Progress Meter
<!DOCTYPE html>
<meta charset="utf-8">
<body>
<script src="http://d3js.org/d3.v3.js"></script>
<script>
var width = 960,
height = 500,
twoPi = 2 * Math.PI;
@helengibson
helengibson / index.html
Last active December 22, 2015 16:38
3 Little Pies
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>3 Little Pies</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
text {
font-family: sans-serif;
@helengibson
helengibson / textprocessing.py
Created September 19, 2014 21:05
How to do simple text processing with the python nltk toolkit
import nltk
from __future__ import division
from nltk.corpus import stopwords
# make sure that nltk.download() has been run previously and import
from nltk.book import *
# create a new list of stopwords
sw = stopwords.words('english')
add_sw = ['http', 'www', 'youtube', 'facebook', 'twitter', 'co', 'com', 'rt']
@helengibson
helengibson / simpleColumnOrdering.R
Created January 27, 2015 14:43
How to re-order a table by column in R from highest to lowest
df.o <- df[order(-df$col),]
@helengibson
helengibson / .block
Last active October 28, 2018 19:59
Bar Chart
license: mit
height: 500
scrolling: no
border: yes
@helengibson
helengibson / .block
Last active October 28, 2018 20:05
Column Chart
license: mit
height: 500
width: 1000
scrolling: no
border: no
@helengibson
helengibson / .block
Last active October 5, 2018 13:42
Grouped Bar Chart
license: mit
height: 600
scrolling: no
border: yes
@helengibson
helengibson / .block
Created October 5, 2018 13:52
Grouped Column Chart
license: mit
height: 500
scrolling: no
border: yes
@helengibson
helengibson / .block
Last active October 5, 2018 14:03
Stacked Column Chart
license: mit
height: 500
scrolling: no
border: yes
@helengibson
helengibson / .block
Last active October 28, 2018 20:27
Pie Chart
license: mit
height: 500
scrolling: no
border: yes