I hereby claim:
- I am anubiann00b on github.
- I am anubiann00b (https://keybase.io/anubiann00b) on keybase.
- I have a public key whose fingerprint is 4C03 F729 FB75 36BB 85A8 6D48 FEBC BCE8 A1A0 F581
To claim this, I am signing this object:
public class Timer { | |
private long startTime = 0; | |
public void start() { | |
startTime = System.currentTimeMillis(); | |
} | |
public long stop() { | |
return System.currentTimeMillis() - startTime; |
I hereby claim:
To claim this, I am signing this object:
public enum ImageLibrary { | |
INFANTRY_SPRITE("infantry.png"), | |
TANK_SPRITE("tank.png"); | |
BufferedImage img; | |
ImageLibrary(String filepath) { | |
try { | |
img = ImageIO.read(new File(filepath)); |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
#define ADXL345_ADDR_ALT_LOW 0x53 | |
#define FIMU_ACC_ADDR ADXL345_ADDR_ALT_LOW | |
#define ADXL345_POWER_CTL 0x2d | |
#define ADXL345_DATAX0 0x32 | |
#define TO_READ (6) | |
#include <Wire.h> | |
int accelx; | |
int accely; |
// cx: X position of object to rotate around. | |
// cy: Y position of object to rotate around. | |
// theta: Angle to be from object, 0 is right, CCW. | |
// r: Distance from object to rotate around. | |
x = cos(degtorad(theta))*r + cx; | |
y = sin(degtorad(theta))*r + cy; | |
// Usage: | |
// Jump to this point. |
1. Get the outlines of the circles (ran very fast)
create table circle_outlines as
SELECT distinct ST_ExteriorRing(the_circle) AS the_geom FROM circle_list;
create index idx_geom_circle_outlines on circle_outlines using gist (the_geom);
select distinct geometrytype(the_geom) from circle_outlines ; -- LINESTRING
2. Combine the lines
3A. Check out the geom type created, if interested (should be GEOMETRYCOLLECTION)
don't follow intuition | |
trust instincts on people | |
2nd | |
don't need expertise in startups (zuckerberg) | |
need expertise in users | |
go through the motions | |
imitated outward forms | |
need to make something people want | |
"playing house" |
package edu.wpi.first.wpilibj.templates; | |
import edu.wpi.first.wpilibj.SimpleRobot; | |
import edu.wpi.first.wpilibj.camera.AxisCamera; | |
import edu.wpi.first.wpilibj.camera.AxisCameraException; | |
import edu.wpi.first.wpilibj.image.BinaryImage; | |
import edu.wpi.first.wpilibj.image.ColorImage; | |
import edu.wpi.first.wpilibj.image.CriteriaCollection; | |
import edu.wpi.first.wpilibj.image.NIVision; | |
import edu.wpi.first.wpilibj.image.NIVisionException; |