I hereby claim:
- I am din0bot on github.
- I am lusrc (https://keybase.io/lusrc) on keybase.
- I have a public key ASC8caZ1Y8g22wV5biqyH8tp19AKJP1v-0jsH23I1c44bQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
{ | |
init: function(elevators, floors) { | |
var Model = function () { | |
this.af = []; | |
} | |
Model.prototype.next = function(e) { | |
if (this.af.length > 0) { | |
var n = null; | |
if (e.currentFloor() === 0) { n = this.pop_top(); } | |
else { n = this.pop_bot(); } |
This is a recreation (for the purpose of tinkering with a simplified version) of Lane Harrison’s Exoplanets interactive, which was inspired by Randall Munroe’s XKCD comic. The data is from the Planetary Habilitability Laboratory.
D3’s pack layout places circles so that they touch by default. The XKCD version however uses padding, which is more aesthetically pleasing. Fortunately, D3 2.10’s pack layout now supports padding. You could achieve a similar result through collision detection, but the pack layout is faster to compute. My implementation uses a quantize scale for color, which is my best guess to what’s used in the original, but I can’t know for sure. I make no
title Test Gist Script | |
author diN0bot, copied from Stephen Lavelle | |
homepage www.puzzlescript.net | |
======== | |
OBJECTS | |
======== | |
Background | |
LIGHTGREEN GREEN |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>Archimedean Spiral</title> | |
<script type="text/javascript" src="http://d3js.org/d3.v2.js"></script> | |
<style> | |
body { | |
font-family: 'Lucida Grande', 'Lucida Sans Unicode', 'Geneva', 'Verdana', sans-serif; | |
margin: 40px; |
{ | |
"name": "Gutsy", | |
"description": "Gutsy makes dashboards from devop.json files.", | |
"devops_version": "0.2", | |
"devopsJSON_URL": "https://github.com/Racker/gutsy/edit/master/devops.json", | |
"tags": [ | |
"node", | |
"dashboard" | |
], | |
"dependent_services": ["highscores"], |
$ make run | |
make -C ../rabbitmq-server run \ | |
RABBITMQ_SERVER_START_ARGS='-pa '"$(pwd)/ebin"' -rabbit \ | |
stomp_listeners [{\"0.0.0.0\",61613}] \ | |
extra_startup_steps [{\"STOMP-listeners\",rabbit_stomp,kickstart,[]}]' | |
RABBITMQ_NODE_IP_ADDRESS="" RABBITMQ_NODE_PORT="" RABBITMQ_LOG_BASE="/tmp" RABBITMQ_MNESIA_DIR="/tmp/rabbitmq-rabbit-mnesia" \ | |
RABBITMQ_NODE_ONLY=true \ | |
RABBITMQ_SERVER_START_ARGS="-pa /Users/lucy/ExtProjects/rabbitmq-stomp/ebin -rabbit stomp_listeners [{\"0.0.0.0\",61613}] extra_startup_steps [{\"STOMP-listeners\",rabbit_stomp,kickstart,[]}] -s rabbit" \ | |
./scripts/rabbitmq-server | |
Erlang R13B04 (erts-5.7.5) [source] [64-bit] [smp:4:4] [rq:4] [async-threads:30] [hipe] [kernel-poll:true] |
<b>hello world</b> |