Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
| # 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 |
| # lansatutil directory | |
| LANDSAT = ~/landsat | |
| # scenes to target | |
| LANDSAT_IDS = \ | |
| LC81220442016038LGN00 \ | |
| LC81220452016038LGN00 \ | |
| LC81210442014281LGN00 \ | |
| LC81210452014281LGN00 |
| #!/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 = "" |
Early/simplifed version of You Draw It: What Got Better or Worse During Obama’s Presidency
d3.drag is pretty great!
| license: gpl-3.0 |
Line charts with circles and labels. A demonstration of the technique for a student.
Thanks to the following resources:
| <!DOCTYPE html> | |
| <html> | |
| <head lang="en"> | |
| <meta charset="UTF-8"> | |
| <title>http://stackoverflow.com/questions/32057842/d3-js-highlighting-stacked-bar-and-getting-selected-values/32079517#32079517</title> | |
| <style> | |
| body { | |
| position: relative; | |
| } | |
| #vis { |
| /** | |
| * Installed `jest`, `jest-cli`; ran test with `--no-watchman` | |
| */ | |
| describe('Helpers', function() { | |
| jest.autoMockOff(); | |
| var Helpers = require('../helpers'); | |
| describe('isFloat', function() { | |
| it('has isFloat as an export', function() { | |
| expect(Helpers.isFloat).not.toBeNull(); |