Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
#!/usr/bin/env python | |
# encoding: utf-8 | |
import tweepy #https://github.com/tweepy/tweepy | |
import csv | |
#Twitter API credentials | |
consumer_key = "" | |
consumer_secret = "" | |
access_key = "" |
# lansatutil directory | |
LANDSAT = ~/landsat | |
# scenes to target | |
LANDSAT_IDS = \ | |
LC81220442016038LGN00 \ | |
LC81220452016038LGN00 \ | |
LC81210442014281LGN00 \ | |
LC81210452014281LGN00 |
# requirement! install imagemagick | |
# brew install imagemagick | |
# or build from source here http://www.imagemagick.org/script/binary-releases.php | |
#navigate to folder of the images | |
cd folderofmyimages/ | |
# take every jpg in the folder and smash into a gif with a frame rate of 0.5 sec | |
convert -delay 50 *.jpg gif_of_my_images.gif |
// Built-in modules | |
var csv = require("csv"); | |
var fs = require("fs"); | |
var url = require("url"); | |
// Loaded from NPM | |
var $ = require("cheerio"); // jQuery-like DOM library | |
var async = require("async"); // Easier concurrency utils | |
var request = require("request"); // Make HTTP requests simply |
#!/usr/bin/python | |
import mechanize | |
import lxml.html | |
BASE_URL = "http://www2.durhamcountync.gov/sheriff/ips/default.aspx" | |
def parse_names(root): | |
# finds the names and prints | |
names = root.xpath("//a[@class='rvsnavy-bold']") |
license: MIT | |
border: no | |
height: 800 |
license: gpl-3.0 |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=UTF-8"> | |
<title></title> | |
<script type='text/javascript' src="http://d3js.org/d3.v2.js"></script> | |
<script type='text/javascript' src="slopegraph.js"></script> | |
<style type='text/css'> | |
line.slope-line{ | |
stroke:green |