Skip to content

Instantly share code, notes, and snippets.

@ClashTheBunny
ClashTheBunny / deployTahoeTestGrid.sh
Last active December 14, 2015 10:10
Running this script will create any number of tahoe nodes with an introducer on a single computer where tahoe is set up. Run it quickly like this: wget -q -O - https://raw.github.com/gist/5070115/deployTahoeTestGrid.sh | bash
#!/bin/bash
# Run by doing:
# wget -q -O - https://raw.github.com/gist/5070115/deployTahoeTestGrid.sh | bash
####### Change stuff here:
# somewhere with a little bit of space, with tahoe's defaults you need at least 1GB to upload anything:
directoryWithSpace="$HOME/tahoeTest/"
{
"id": "ti6yn",
"project": "",
"properties": {
"name": "photobooth",
"environment": {
"runtime": "html",
"src": "preview/iframe.html",
"width": 300,
"height": 300,
@ClashTheBunny
ClashTheBunny / verify.sh
Last active December 5, 2015 16:44
Verify checksums of Ubuntu or Debian files.
#!/bin/bash
# Install the keys for the distribution (apt-cache search keyring | grep -i pg | grep -i keyring):
# e.g. (Ubuntu): apt-get install debian-archive-keyring debian-keyring ubuntu-keyring ubuntu-extras-keyring
# e.g. (Debian): apt-get install debian-archive-keyring debian-keyring ubuntu-archive-keyring
# Download all of the *SUMS and *SUMS.gpg from the mirror that you use and check them by running verify.sh <file-to-verify>:
# I wanted to verify netboot.tar.gz, so I ran "verify.sh netboot.tar.gz" and got:
# sh ./588e8ff9ca5123edd019/verify.sh netboot.tar.gz
# MD5SUMS.gpg
@ClashTheBunny
ClashTheBunny / .gitignore
Last active August 29, 2015 14:11
US Population by Metro Area.
build
node_modules
@ClashTheBunny
ClashTheBunny / README.md
Last active August 29, 2015 14:11 — forked from mbostock/.block
A Grouped Bar Chart of Perceived Success Criteria

This grouped bar chart is constructed from a CSV file storing the populations of different states by age group. This is an attempt to improve on this visualization. The chart employs conventional margins and a number of D3 features:

You can see it fully rendered here: http://bl.ocks.org/ClashTheBunny/83d21db6af87fdc90cc4

Be sure to "Open in a new window", so you can see the second graph: http://bl.ocks.org/ClashTheBunny/raw/83d21db6af87fdc90cc4/

import time
import random
class MatrixFibonacci:
A = [[1, 1],
[1, 0]]
def __init__(self):
self.__memo = {}
@ClashTheBunny
ClashTheBunny / designer.html
Last active August 29, 2015 14:13
designer
<link href="../speech-mic/speech-mic.html" rel="import">
<link href="../yt-video/yt-search-video.html" rel="import">
<polymer-element name="my-element">
<template>
<style>
#design_host {
position: absolute;
width: 100%;
@ClashTheBunny
ClashTheBunny / README.md
Last active August 29, 2015 14:19 — forked from tomgp/LICENSE.txt
Clock based on the Degrees, Minutes, and Seconds where the sun is overhead.

This clock's "hour" hand is really a degree hand. It points to the longitude where it is solar noon. The minutes and seconds point to the minutes and seconds of the location where it is solar noon. This is partly bases off of New Earth Time, but adjusted to fit geography more.

Based off of: bl.ocks.org/tomgp/6475678 http://bl.ocks.org/mbostock/4364903 and http://bl.ocks.org/mbostock/4597134

TODO: Make the clock less hard coded between the northern and southern hemisphere.

@ClashTheBunny
ClashTheBunny / README.md
Last active August 26, 2015 14:31 — forked from mbostock/.block
Stacked-to-Grouped Bars

Switch between stacked and grouped layouts using sequenced transitions! Animations preserve object constancy and allow the user to follow the data across views. Animation design by Heer and Robertson. Colors and data generation inspired by Byron and Wattenberg.