Skip to content

Instantly share code, notes, and snippets.

View gusennan's full-sized avatar

Nate Guerin gusennan

View GitHub Profile
(1a)
double * line(double * pt1, double * pt2){
double xTmp, yTmp;
xTmp = (pt2[1]-pt1[1])/(pt2[0]-pt1[0]);
yTmp = pt1[1] - xTmp*pt1[0];
pt1[0] = xTmp;
pt1[1] = yTmp;
return pt1;
}
public interface Filter {
public boolean PassesFilter(Leg leg);
public void add(Filter f);
}
public class Filter implements Filter {
private Filter f;
public boolean PassesCriteria(Leg leg) {
# inject
--
import "github.com/codegangsta/inject"
Package inject provides utilities for mapping and injecting dependencies in
various ways.
## Usage
#### func InterfaceOf
@gusennan
gusennan / gist:10446689
Created April 11, 2014 07:26
Missing Logos
meinFernBus