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.
node_modules |
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.
#target Illustrator | |
// script.name = RemoveClippingMasks.jsx | |
// script.description = deletes all PageItems being used as clipping masks. | |
// script.parent = Kenneth Webb // 01/07/2013 | |
// script.elegant = true? | |
var docRef = app.activeDocument; | |
var clippingCount = 0 | |
clipScan() |
.Rhistory | |
.Rproj.user | |
covid19-berlin.Rproj | |
.Renviron |
import sqlite3 | |
# open connection and get a cursor | |
conn = sqlite3.connect(':memory:') | |
c = conn.cursor() | |
# create schema for a new table | |
c.execute('CREATE TABLE IF NOT EXISTS sometable (name, age INTEGER)') | |
conn.commit() |
If you love deploying websites using Github, but for some reason want to use your own server, this script might be exactly what you need.
github.php
somewhere on your PHP-enabled web server, and make it
accessible for the outside world. Let's say for now the script lives
on http://example.com/github.phpPROJCS["satellite", | |
GEOGCS["satellite"], | |
PROJECTION["satellite"], | |
EXTENSION["PROJ4","+proj=tpers +azi=19 +tilt=30 +lon_0=-109.5 +lat_0=23 +h=1274199.4 + ellps=WGS84 +datum=WGS84 +units=m"]] |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Alpha-Shapes</title> | |
<script src="http://mbostock.github.com/d3/d3.js"></script> | |
<script src="http://mbostock.github.com/d3/d3.geom.js"></script> | |
<style type="text/css"> | |
path { |
DROP TABLE IF EXISTS location; | |
CREATE TABLE IF NOT EXISTS `location` ( | |
`locId` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`country` varchar(2) DEFAULT NULL, | |
`region` varchar(2) DEFAULT NULL, | |
`city` varchar(1000) DEFAULT NULL, | |
`postalCode` varchar(10) DEFAULT NULL, | |
`latitude` float DEFAULT NULL, | |
`longitude` float DEFAULT NULL, |
var textWidth = (function() { | |
function charW(w, c) { | |
if (c == 'W' || c == 'M') w += 15; | |
else if (c == 'w' || c == 'm') w += 12; | |
else if (c == 'I' || c == 'i' || c == 'l' || c == 't' || c == 'f') w += 4; | |
else if (c == 'r') w += 8; | |
else if (c == c.toUpperCase()) w += 12; | |
else w += 10; | |
return w; | |
} |