Make sure ffmpeg is up-to-date:
brew update
brew upgrade ffmpeg
Convert a MOV into frames. Tweak the 2/1 if you want more or fewer frames.
| import xlrd | |
| import csv | |
| import sys | |
| def csv_from_excel(fn): | |
| wb = xlrd.open_workbook(fn) | |
| sh = wb.sheet_by_index(0) | |
| your_csv_file = open(fn.replace('xls', 'csv'), 'wb') | |
| wr = csv.writer(your_csv_file, quoting=csv.QUOTE_ALL) | |
| for rownum in xrange(sh.nrows): |
| var multiCrowbar = (function() { | |
| /* | |
| * SVG Export | |
| * converts html labels to svg text nodes | |
| * will produce incorrect results when used with multi-line html texts | |
| * | |
| * Author: Gregor Aisch | |
| * based on https://github.com/NYTimes/svg-crowbar/blob/gh-pages/svg-crowbar-2.js | |
| */ |
Make sure ffmpeg is up-to-date:
brew update
brew upgrade ffmpeg
Convert a MOV into frames. Tweak the 2/1 if you want more or fewer frames.
| license: gpl-3.0 |
| <!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 |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| license: gpl-3.0 |
| license: MIT | |
| border: no | |
| height: 800 |
| #!/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']") |
| // 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 |