Skip to content

Instantly share code, notes, and snippets.

View epijim's full-sized avatar

James Black epijim

View GitHub Profile
@epijim
epijim / weight.ipynb
Created February 18, 2016 07:46 — forked from anixdorf/weight.ipynb
Personal IPython Weight Notebook (http://nbviewer.ipython.org/gist/anixdorf/9769238)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@epijim
epijim / index.js
Created April 28, 2014 20:16 — forked from vicapow/index.js
requirebin sketch
var d3 = require('d3')
, _ = require('underscore')
, w = window.innerWidth
, h = window.innerHeight - 100
, tempo = 500
// , data = {
// 'Derek Jeter' : {
// '1995' : [12, 48]
// , '1996' : [183, 582]
// }
@epijim
epijim / AtcSearch.R
Created February 11, 2014 15:40 — forked from Xachriel/AtcSearch.R
require(gdata)
require("RCurl")
require("XML")
AtcSearch <- function(AtcCodes){
#Function inside a function is bad practice...
#DummySearch searches for one atc code
DummySearch <- function(Code){
#A link to WHO search
@epijim
epijim / Sankey.R
Last active August 29, 2015 13:56 — forked from aaronberdanier/Sankey.R
SankeyR <- function(inputs, losses, unit, labels, format="plot"){
########################
# SankeyR version 1.01 (updated August 10, 2010)
# is a function for creating Sankey Diagrams in R.
# See http://www.sankey-diagrams.com for excellent examples of Sankey Diagrams.
#
# OPTIONS:
# 'inputs' is a vector of input values
# 'losses' is a vector of loss values
# 'unit' is a string of the unit