Skip to content

Instantly share code, notes, and snippets.

Nicholas Rakoto nrako

View GitHub Profile
@nrako
nrako / index.html
Created Apr 12, 2018
mapbox issue circle ordering
View index.html
<!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 Jul 20, 2016
requirebin sketch
View index.js
// 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 Dec 18, 2012 — forked from jaskolek/robot.js
jaskolek
View robot.js
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 ){
View robot.js
// Conventions:
// We use angles in degrees in cock-wise fashion
RobotHelpers = {};
MathHelpers = {};
RobotHelpers.cannon_rotation_direction = {};
RobotHelpers.shoot = {};
RobotHelpers.target = {};
RobotHelpers.moving_direction = {};
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 {
@nrako
nrako / robot.js
Created Dec 5, 2012 — forked from Shipow/robot.js
test#01
View robot.js
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 Jun 12, 2012
Upstart conf scripts for fleet hub and drone
View fleetdrone.conf
description "Run fleet drone"
author "@nrako"
start on runlevel [2345]
stop on runlevel [2345]
respawn
respawn limit 5 60
pre-start script
You can’t perform that action at this time.