This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh -e | |
### BEGIN INIT INFO | |
# hyperboria.sh - An init script (/etc/init.d/) for cjdns | |
# Provides: cjdroute | |
# Required-Start: $remote_fs $network | |
# Required-Stop: $remote_fs $network | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: Cjdns router | |
# Description: A routing engine designed for security, scalability, speed and ease of use. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env coffee | |
# put this file in the same dir as namecoind executable | |
child_process = require 'child_process' | |
child_process.exec './namecoind name_list', (err, stdout, stderr) -> | |
(JSON.parse stdout).forEach (domain) -> | |
if domain.expires_in < 5000 | |
command = "./namecoind name_update #{JSON.stringify domain.name} #{JSON.stringify domain.value}" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 1: how could you rewrite the following to make it shorter? | |
if (foo) { | |
bar.doSomething(el); | |
} else { | |
bar.doSomethingElse(el); | |
} | |
// one way | |
foo ? bar.doSomething(el) : bar.doSomethingElse(el); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<title>swarm!</title> | |
<script type="text/javascript" language=JavaScript src="buzzWorker.js"></script> | |
<style> | |
.thing { | |
position:absolute; | |
} | |
.dying { | |
color:#ff0000; | |
font-weight:bold; |