Skip to content

Instantly share code, notes, and snippets.

View bobmatnyc's full-sized avatar

Robert Matsuoka bobmatnyc

View GitHub Profile
import psycopg2
import requests
import json
import osm2geojson
import os, subprocess
ogr_base_path = "//Users/rmatsuoka/Google Drive/develop/python/sda/"
ogr_target_table = "t_dev_public_feat3"
params = {

Keybase proof

I hereby claim:

  • I am bobmatnyc on github.
  • I am bobmatnyc (https://keybase.io/bobmatnyc) on keybase.
  • I have a public key ASDuOOTgA9BEyyNaFFaxDRHEGsjGrD_0cnb9K6cslPwixQo

To claim this, I am signing this object:

Verifying that +bobmatnyc is my blockchain ID. https://onename.com/bobmatnyc
@bobmatnyc
bobmatnyc / robot.js
Created December 11, 2012 22:25 — forked from diasbruno/robot.js
Turin
//
// Turin.js 2.0.7b
// @author Bruno Dias
//
// Damn...events should never block!!
// TODO: a lot...
var clone;
var Robot = function(robot) {
this.targetAquired = false;
this.targetX = 0;
@bobmatnyc
bobmatnyc / robot.js
Created December 11, 2012 14:00 — forked from ronualdo/robot.js
Proto1
var cannonRotation = 5;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
robot.turn(360 - robot.angle);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead(10);
@bobmatnyc
bobmatnyc / robot.js
Created December 11, 2012 13:33 — forked from PattenR/robot.js
PatBotV2
var cloned = false;
var C = false;
var first = true;
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
@bobmatnyc
bobmatnyc / robot.js
Created December 8, 2012 19:14 — forked from palerique/robot.js
0P3C - Palerique
var Robot = function(robot){
robot.turnLeft(robot.angle % 90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
if (robot.parentId) {
robot.ahead(1);
robot.turnGunRight(1);
}
else {
@bobmatnyc
bobmatnyc / robot.js
Created December 6, 2012 23:58 — forked from folkien/robot.js
Folkien TT2
var direction;
var start;
var runaway;
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
if(robot.parentId){
direction = 1;
@bobmatnyc
bobmatnyc / robot.js
Created December 6, 2012 21:31
Cat The Murderer
function Robot(robot) {}
// well, we need to do something...
// whenever our robot is idle, this method gets called.
Robot.prototype.onIdle = function(ev) {
var robot;
robot = ev.robot;
robot.ahead(10);
robot.rotateCannon(15);
robot.turn(5);
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
var rx = robot.position.x;
var ry = robot.position.y;
var aH = robot.arenaHeight;
var aW = robot.arenaWidth;
robot.clone()
};