Skip to content

Instantly share code, notes, and snippets.

How to install dlib v19.9 or newer (w/ python bindings) from github on macOS and Ubuntu

Pre-reqs:

  • Have Python 3 installed. On macOS, this could be installed from homebrew or even via standard Python 3.6 downloaded installer from https://www.python.org/download. On Linux, just use your package manager.
  • On macOS:
    • Install XCode from the Mac App Store (or install the XCode command line utils).
    • Have homebrew installed
  • On Linux:
@e-n-f
e-n-f / .block
Created May 6, 2017 18:47 — forked from sjengle/.block
Flight Paths Edge Bundling
license: gpl-3.0
height: 500
border: no
@e-n-f
e-n-f / README.md
Last active August 23, 2019 00:53 — forked from shancarter/README.md
Calculating the relative angle difference between two vectors

Here are the math-y bits, courtesy of @ch402:

// The math-y bits
var a2 = Math.atan2(source.y, source.x);

var angle = function(source, compare) {
    var cross = source.x * compare.y - source.y * compare.x;
    var sd = Math.sqrt(source.x * source.x + source.y * source.y);
    var cd = Math.sqrt(compare.x * compare.x + compare.y * compare.y);
@e-n-f
e-n-f / sfcta-subway.json
Created October 19, 2016 18:15
San Francisco subway survey
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@e-n-f
e-n-f / armed-forces-song-folio.csv
Last active April 10, 2017 22:40
Armed Forces Song Folio songs and dates
year month title copyright key
1949 6 Again 1948 G
Once and for always 1948 C
Love me! Love me! Love me! 1947 G
If you stub your toe on the moon 1948 G
It's a cruel cruel world 1949 Eb
Lady of Spain 1931 C
Scalawag 1948 C
After you've gone 1918 C
1951 10 Because of you 1940 Eb
@e-n-f
e-n-f / speeds.md
Last active August 29, 2015 14:28
BART track speed limits
speed location
44? northgate
27 19th
36
27 12th
18
27
18 wye
36 west oakland
@e-n-f
e-n-f / results
Created June 29, 2015 21:17
Manhattan weighted centers
2 2184465 40.7487 -73.9853
3 517999 40.7502 -73.9847
4 1293192 40.7482 -73.9857
5 373274 40.7486 -73.985
6 362141 40.7527 -73.9834
7 498216 40.7506 -73.9844
8 1324108 40.7469 -73.9862
9 133 40.7583 -73.9766
10 23 40.7298 -73.9924
11 6495 40.7343 -73.9877
@e-n-f
e-n-f / la.md
Last active August 29, 2015 14:19
Top Los Angeles pedestrian volumes (extrapolation to daily total)
@e-n-f
e-n-f / intersections-10k
Created January 28, 2015 03:41
Intersections estimated over 10K pedestrian crossings per day
140548 40.758687 -73.985322 36 061 Broadway/W 46 St
135386 40.758589 -73.985085 36 061 W 46 St/7 Ave
127439 40.757258 -73.985821 36 061 W 44th St/Broadway
119331 40.757339 -73.986014 36 061 W 44th St/7 Ave
116869 40.759207 -73.984638 36 061 7 Ave/W 47 St
116011 40.757968 -73.985551 36 061 Broadway/W 45 St/7 Ave
113144 40.759391 -73.985072 36 061 Broadway/W 47 St
106937 34.043920 -118.266751 06 037 Chick Hearn Ct
101777 40.756581 -73.986156 36 061 Broadway/W 43rd St/Times Sq
101306 34.043932 -118.266983 06 037 Chick Hearn Ct
@e-n-f
e-n-f / dotmap.pde
Last active August 29, 2015 14:06 — forked from bmander/dotmap.pde
/* I, Brandon Martin-Anderson, release this into the public domain or whatever. */
BufferedReader reader;
double ll, bb, rr, tt;
float A = 1000.0;
GlobalMercator proj = new GlobalMercator();