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
{ | |
"name": "penisify", | |
"version": "1.0.0", | |
"description": "Takes a (DRM-free) Harry Potter epub file and replaces every instance of the word 'wand' with 'penis'.", | |
"repository": { | |
"url": "https://gist.github.com/b22cfa656b54da1ab47683d7663a6676.git" | |
}, | |
"keywords": [ | |
"harry potter", | |
"penis" |
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
results = require('./LocationHistory.json') | |
.locations | |
.map(function (location) { | |
return { | |
time: location.timestampMs, | |
lat: location.latitudeE7 / 10000000, | |
long: location.longitudeE7 / 10000000, | |
} | |
}) | |
.reduce(function (results, curr, index, array) { |
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
-- Generate the timestamp from the supplied data | |
UPDATE yb | |
SET timestamp=to_timestamp(SUBSTRING(name, 7, 20), 'DD-MM-YYYY HH24:MI:SS'); | |
-- Generate the linestring as a new table | |
CREATE TABLE yb_linestring AS ( | |
SELECT | |
ST_MakeLine(the_geom ORDER BY timestamp) AS the_geom | |
FROM yb); |
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
\documentclass{ou-tma} | |
\student{John Smith} | |
\email{john@example.com} | |
\identifier{B1234567} | |
\course{S282} | |
\coursetitle{Astronomy} | |
\tma{1} | |
\begin{document} |