Skip to content

Instantly share code, notes, and snippets.

@nrako
nrako / index.html
Created April 12, 2018 14:52
mapbox issue circle ordering
<!DOCTYPE html>
<meta name="robots" content="noindex">
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<script src='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.js'></script>
<link href='https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.2/mapbox-gl.css' rel='stylesheet' />
<title>JS Bin</title>
<style>
@nrako
nrako / index.js
Created July 20, 2016 22:57
requirebin sketch
// Welcome! require() some modules from npm (like you were using browserify)
// and then hit Run Code to run your code on the right side.
// Modules get downloaded from browserify-cdn and bundled in your browser.
var React = require('react')
var ReactDOM = require('react-dom')
var Resizable = require('react-component-resizable').default
var WindowResizable = React.createClass({
getInitialState: function(){
@nrako
nrako / robot.js
Created December 18, 2012 21:00 — forked from jaskolek/robot.js
jaskolek
var robots = new Array();
//FightCode can only understand your robot
//if its class is called Robot
var Robot = function(robot) {
};
Robot.prototype.start = function( ev ){
@nrako
nrako / robot.js
Created December 9, 2012 20:14
DeathAng3l2
// Conventions:
// We use angles in degrees in cock-wise fashion
RobotHelpers = {};
MathHelpers = {};
RobotHelpers.cannon_rotation_direction = {};
RobotHelpers.shoot = {};
RobotHelpers.target = {};
RobotHelpers.moving_direction = {};
@nrako
nrako / robot.js
Created December 6, 2012 12:16
Zolmeister
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 {
@nrako
nrako / robot.js
Created December 5, 2012 22:01 — forked from Shipow/robot.js
test#01
var Robot = function(robot) {
robot.rotateCannon(-90);
};
Robot.prototype.onIdle = function(ev) {
var robot = ev.robot;
robot.ahead();
//i'll add a clone but i need to refactor collision
//robot.clone();
};
@nrako
nrako / fleetdrone.conf
Created June 12, 2012 17:38
Upstart conf scripts for fleet hub and drone
description "Run fleet drone"
author "@nrako"
start on runlevel [2345]
stop on runlevel [2345]
respawn
respawn limit 5 60
pre-start script