I hereby claim:
- I am alexose on github.
- I am alexose (https://keybase.io/alexose) on keybase.
- I have a public key ASAhtsPORvCBn7MyJcmks4HZpcK9E1yFUIKzW9fXyAnNMAo
To claim this, I am signing this object:
#!/bin/bash | |
if [ "$#" -ne 3 ]; then | |
echo "Usage: $0 <image1> <image2> <image3>" | |
exit 1 | |
fi | |
image1="$1" | |
image2="$2" | |
image3="$3" |
/* | |
* YouTube to Podcast using Node.js and not much else | |
* | |
* I got annoyed by all of the clunky and/or paid solutions to this problem, so I | |
* thought I'd just roll my own. My guess was that it'd be about 200 lines of code, | |
* and I wasn't too far off. It's not perfect but it works and it's relatively easy | |
* to follow. | |
* | |
* No half-hour Docker installs or 20gb Go libraries to download. Just throw it on a | |
* free EC2 micro server and serve the files using nginx like the good ol days. It |
const PlexAPI = require("plex-api"); | |
const spawn = require("child_process").spawn; | |
const http = require("http"); | |
const identifier = "cli12345"; | |
const session = "123456789"; | |
const dvr = 7; // Find by querying '/livetv/dvrs' and looking for tv.plex.providers.epg.cloud:<number> | |
const channel = process.argv[2]; | |
if (!channel) { |
I hereby claim:
To claim this, I am signing this object:
// location: ./assertions/compareScreenshot.js | |
var resemblejs = require('node-resemble-js'), | |
fs = require('fs'); | |
exports.assertion = function(filename, expected) { | |
var screenshotPath = 'test/screenshots/', | |
baselinePath = screenshotPath + 'baseline/' + filename, | |
resultPath = screenshotPath + 'results/' + filename, | |
diffPath = screenshotPath + 'diffs/' + filename; |
Zoomable raster world map on an Lambert Conic Conformal aka Massachusetts State Plane.
Based off Jason Davies map which is a combination of Mike Bostock’s raster reprojection, automatic projection tiles and a MapBox terrain example.
Thanks to Mike Bostock and Nelson Minar for their comments and encouragement! And Obviously Jason Davies for making the original.
A demo of Mike Bostock’s TopoJSON using states & provinces boundaries from Natural Earth.
With simplification turned on (-s 100
), this reduces the original 57MB GeoJSON file to a mere 515KB!