Skip to content

Instantly share code, notes, and snippets.

Avatar

Robert Matsuoka bobmatnyc

View GitHub Profile
View gist:677ec3dbec47299514d12adba051099f
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 = {
View keybase.md

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:

View Onename
Verifying that +bobmatnyc is my blockchain ID. https://onename.com/bobmatnyc
View robot.js
//
// 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;
View robot.js
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 Dec 11, 2012 — forked from PattenR/robot.js
PatBotV2
View robot.js
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 Dec 8, 2012 — forked from palerique/robot.js
0P3C - Palerique
View robot.js
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 Dec 6, 2012 — forked from folkien/robot.js
Folkien TT2
View robot.js
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 Dec 6, 2012
Cat The Murderer
View robot.js
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);
View robot.js
//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()
};