Skip to content

Instantly share code, notes, and snippets.

View arscan's full-sized avatar
💭
🔥🔥🔥🔥🔥🔥🔥🔥🔥

Rob Scanlon arscan

💭
🔥🔥🔥🔥🔥🔥🔥🔥🔥
View GitHub Profile
@arscan
arscan / server.js
Last active December 16, 2015 13:08
Simple test case for headers for hubble.
// node server.js
// should print out 3 lines each time the tests polls, 1 without special headers, 1 with 1 header, 1 with 2 headers
var http = require('http');
http.createServer(function (req, res) {
console.log(JSON.stringify(req.headers));
res.writeHead(200, {'Content-Type': 'text/plain'});
res.end(JSON.stringify({"status":"up"}));
}).listen(9615);
@arscan
arscan / gist:5544952
Created May 9, 2013 01:37
@wizonesolutions @litenull lefnire-js was confusing some people that stumbled into the chatroom
21:29 < arscan> you guys are just in this room randomly?
21:30 < arscan> (as in, not through habitrpg.com)?
21:30 < arscan> whatever you do, don't bring up reflists
21:30 < lefnire-js> ugh...refLists...I need a breather
21:30 -!- lefnire-js [~nodebot@80.232.85.149] has quit [Quit: refLists...why do you hate me so...;(]
21:30 < Willz> I joined this room to talk:(
21:30 < lucasaiu> arscan: found this with /list :-)
21:30 -!- lefnire-js [~nodebot@80.232.85.149] has joined #habitrpg
21:30 < lefnire-js> phew, now I feel better. what's up guys?
21:31 < miha> was that a speed break?
@arscan
arscan / create_instance
Created June 25, 2013 03:15
digital ocean scripts to bring up and tear down my dev instance really quick (i probably should switch to vagrant..)
#!/usr/bin/env ruby
# gem install digital_ocean
# ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no $(./thisscript)
require 'digital_ocean'
CLIENT_ID = ''
API_KEY = ''
IMAGE_NAME = ''
@arscan
arscan / australia_small.json
Last active August 14, 2021 06:17
Wargames Visualization
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
TEST!22222222222adfasfdsdfafdasdfdfasdfasdfasdfasfdsdasdfasfasdf
asdfasdf
@arscan
arscan / index.html
Last active September 22, 2023 18:19
Basic Visualization
<html>
</html>
@arscan
arscan / Three.js
Last active December 28, 2015 02:08
Tron: Encom Board Room Visualization
// Three.js r40 - http://github.com/mrdoob/three.js
var THREE=THREE||{};if(!window.Int32Array){window.Int32Array=Array;window.Float32Array=Array}THREE.Color=function(b){this.setHex(b)};
THREE.Color.prototype={copy:function(b){this.r=b.r;this.g=b.g;this.b=b.b;this.hex=b.hex},setHex:function(b){this.hex=~~b&16777215;this.updateRGB()},setRGB:function(b,d,c){this.r=b;this.g=d;this.b=c;this.updateHex()},setHSV:function(b,d,c){var f,g,h,j,k,m;if(c==0)f=g=h=0;else{j=Math.floor(b*6);k=b*6-j;b=c*(1-d);m=c*(1-d*k);d=c*(1-d*(1-k));switch(j){case 1:f=m;g=c;h=b;break;case 2:f=b;g=c;h=d;break;case 3:f=b;g=m;h=c;break;case 4:f=d;g=b;h=c;break;case 5:f=c;g=b;h=m;break;case 6:case 0:f=c;g=d;h=b}}this.setRGB(f,
g,h)},updateHex:function(){this.hex=~~(this.r*255)<<16^~~(this.g*255)<<8^~~(this.b*255)},updateRGB:function(){this.r=(this.hex>>16&255)/255;this.g=(this.hex>>8&255)/255;this.b=(this.hex&255)/255},clone:function(){return new THREE.Color(this.hex)}};THREE.Vector2=function(b,d){this.set(b||0,d||0)};
THREE.Vector2.prototype
@arscan
arscan / README.md
Last active December 28, 2015 07:09
Encom Boardroom

Encom Boardroom

@arscan
arscan / README.md
Last active December 29, 2015 09:39 — forked from mbostock/.block