timeslice.py - a script for generating timeslices from videos
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# oled stats - for 1.44" square Adafruit miniTFT | |
# based on code by Adafruit and Michael Klements | |
import time | |
import platform | |
import subprocess | |
import signal | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# TODO make range command line arguments | |
import sys, codecs | |
sys.stdout = codecs.getwriter('utf-8')(sys.stdout) # if your terminal can't do utf-8, well... | |
import time | |
import urllib2 | |
import BeautifulSoup |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cheekily stolen from http://maps.kimasendorf.com/ | |
var featureType = ["all", "water", "landscape", "landscape.man_made", "landscape.natural", "landscape.natural.landcover", "landscape.natural.terrain", "administrative", "administrative.country", "administrative.province", "administrative.locality", "administrative.neighborhood", "administrative.land_parcel", "poi", /*"poi.attraction", "poi.business", "poi.government", "poi.medical", "poi.park", "poi.place_of_worship", "poi.school", "poi.sports_complex",*/ "road", "road.highway", "road.highway.controlled_access", "road.arterial", "road.local", "transit", "transit.line", "transit.station"/*, "transit.station.airport", "transit.station.bus", "transit.station.rail"*/]; | |
var elementType = ["all", "geometry", "geometry.fill", "geometry.stroke", /*"labels", "labels.icon", "labels.text", "labels.text.fill", "labels.text.stroke"*/]; | |
var visibility = ["on", "simplified", "off"]; | |
var asdfMapStyle = []; | |
// NEW GOOGLE MAPS STYLE | |
google.maps.visualRefresh = true; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use strict; | |
use warnings; | |
use Path::Tiny; | |
my $path = pop @ARGV; | |
if (!$path) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lat | lng | airport code | runway | locality | region | country | |
---|---|---|---|---|---|---|---|
41.1524722 | -104.1347500 | 82V | RW26 | Pine Bluffs | Wyoming | USA | |
40.8748333 | -81.8882500 | KBJJ | RW28 | Wayne County | Ohio | USA | |
46.2507511 | -84.4723847 | KCIU | RW28 | Chippewa County | Michigan | USA | |
32.3374444 | -104.2633611 | KCNM | RW26 | Cavern City | New Mexico | USA | |
71.2848611 | -156.7685833 | PABR | RW25 | Barrow | Alaska | USA | |
11.2325 | -72.488889 | SKLM | RW28 | La Mina | La Guajira | Colombia | |
6.498333 | -58.253889 | SYCJ | RW29 | Cheddi Jagan | Georgetown | Guyana |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// paste into Script Editor, then save it into | |
// ~/Library/Application Support/BBEdit/Scripts | |
var bbedit = Application('BBEdit'); | |
bbedit.includeStandardAdditions = true | |
var src_path = bbedit.windows[0]().file() | |
// coerce to string, hackily | |
src_path = src_path+'' | |
var src_comp = src_path.split("/") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import os | |
import sys | |
from copy import copy | |
from subprocess import run | |
from warnings import warn | |
doc_location = os.environ.get('BB_DOC_PATH', None) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
height: 800 | |
scrolling: no | |
border: no |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# ./sscan.py input.mov rownumber output.png | |
# This is meant to be hyper-simple and makes | |
# some assumptions like: you want a row (not | |
# a column), the video is RGB (not gray), etc. | |
# Bug: frame_count is sometimes fractional. | |
# int() and the "if not okay" are workarounds. |
NewerOlder