Skip to content

Instantly share code, notes, and snippets.

View diN0bot's full-sized avatar

Lusen diN0bot

  • San Francisco - United States of America
View GitHub Profile

Keybase proof

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:

@diN0bot
diN0bot / elevator.js
Last active January 22, 2016 17:43
ELEVATOR GAME
{
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(); }
@diN0bot
diN0bot / README.md
Last active December 24, 2015 22:59 — forked from mbostock/.block

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

@diN0bot
diN0bot / script.txt
Last active March 17, 2018 06:13
puzzle script gist test
title Test Gist Script
author diN0bot, copied from Stephen Lavelle
homepage www.puzzlescript.net
========
OBJECTS
========
Background
LIGHTGREEN GREEN
@diN0bot
diN0bot / index.html
Created September 1, 2012 18:13 — forked from syntagmatic/index.html
Wild Spiral
<!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>