Skip to content

Instantly share code, notes, and snippets.

View powersa's full-sized avatar

Andrew Powers powersa

View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@powersa
powersa / make_output
Created July 30, 2014 06:41
bundler made
cd lib/5point; make
make[1]: Entering directory `/home/arpowers/bundler_sfm/lib/5point'
gcc -Wall -O3 -I../matrix -I../imagelib -c -o 5point.o 5point.c
5point.c: In function ‘compute_pose_ransac’:
5point.c:739:13: warning: variable ‘inliers’ set but not used [-Wunused-but-set-variable]
5point.c:629:18: warning: variable ‘l_best’ set but not used [-Wunused-but-set-variable]
5point.c:629:10: warning: variable ‘r_best’ set but not used [-Wunused-but-set-variable]
gcc -Wall -O3 -I../matrix -I../imagelib -c -o poly1.o poly1.c
gcc -Wall -O3 -I../matrix -I../imagelib -c -o poly3.o poly3.c
ar r lib5point.a 5point.o poly1.o poly3.o
@powersa
powersa / README.md
Last active August 29, 2015 14:07
Partial Line Transitions in D3

This example illustrates progressive line animations in D3. This example applies to situations in which you want to add data to the front of a line or remove data from the end of a line. In this case, the transition is isolated to the data that changes and does not apply to the entire line.

@powersa
powersa / example_one.html
Last active August 29, 2015 14:08
MaptimeSEA, Meeting 1, Example 1
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<style>
body {
background-color: green;
}
</style>
@powersa
powersa / example_two.html
Created October 23, 2014 03:48
MaptimeSEA, Meeting 1, Example 2
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MaptimeSEA Slippy Map</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
@powersa
powersa / example_three.html
Created October 23, 2014 03:56
MaptimeSEA, Meeting 1, Example 3
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>MaptimeSEA Slippy Map</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
@powersa
powersa / writer.py
Created December 18, 2014 02:56
A function that writes a csv
import csv
# out_file is a file path and out is an array of arrays of the data you want to write
def write_data_to_csv(out_file, out):
with open(out_file, "w") as f:
wr = csv.writer(f, delimiter='\t')
for row in out:
wr.writerow(row)
@powersa
powersa / index.html
Created January 6, 2015 06:00
Simple SVG document...
<!doctype html>
<html lang="en">
<head>
</head>
<body>
<svg width="720" height="120">
<circle cx="40" cy="60" r="10"></circle>
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.