Skip to content

Instantly share code, notes, and snippets.

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'greenalto/ubuntu-14.04-chefdk' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Loading metadata for box 'greenalto/ubuntu-14.04-chefdk'
default: URL: https://atlas.hashicorp.com/greenalto/ubuntu-14.04-chefdk
==> default: Adding box 'greenalto/ubuntu-14.04-chefdk' (v0.1.1) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/greenalto/boxes/ubuntu-14.04-chefdk/versions/0.1.1/providers/virtualbox.box
==> default: Box download is resuming from prior download progress
==> default: Successfully added box 'greenalto/ubuntu-14.04-chefdk' (v0.1.1) for 'virtualbox'!
127.0.0.1 Unpacking chef (from .../chef_12.1.2-1_amd64.deb) ...
127.0.0.1 Setting up chef (12.1.2-1) ...
127.0.0.1 Thank you for installing Chef!
127.0.0.1 Starting first Chef Client run...
127.0.0.1 Starting Chef Client, version 12.1.2
127.0.0.1 Creating a new client identity for arbitrary-node-name using the validator key.
127.0.0.1
127.0.0.1 ================================================================================
127.0.0.1 Chef encountered an error attempting to create the client "arbitrary-node-name"
127.0.0.1 ================================================================================
tl = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blue)%h%C(reset) - %C(bold green)(%ar)%C(reset) %C(black)%s%C(reset) %C(dim black)- %an%C(reset)%C(bold red)%d%C(reset)' --all
// after: public volume: number = 1.0;
private _prev:number = 0;
public static REVERB_LEN:number = 2000;
private _reverb:Float64Array = new Float64Array(Synth.REVERB_LEN);
private _reverb_ix = 0;
// after: sample *= this.volume;
<!DOCTYPE html>
<!-- Modification of http://bl.ocks.org/mbostock/5537697 to add a
.nice to the domain. Illustrates rounding error *not* causing the tick
on the far left to be lost -->
<html>
<head>
<meta charset="utf-8">
<style>
.axis text {
<!DOCTYPE html>
<!-- Modification of http://bl.ocks.org/mbostock/5537697 to add a
.nice to the domain. Illustrates that rounding error is causing the tick
on the far left to be lost -->
<html>
<head>
<meta charset="utf-8">
<style>
.axis text {
<!DOCTYPE html>
<html>
<head>
<script src="http://d3js.org/d3.v3.min.js"></script>
<style type="text/css">
body {
font: 10px sans-serif;
margin: 0;
}
#!/usr/bin/perl
# http://www.reddit.com/r/math/comments/1j86p4/d20_perfect_layout/
# asks whether there is a 20-sided die such that for every face f, the value
# on face f and the values of all three faces adjacent to f add up to 42.
# (42 is what you might reasonably hope for, since the average value of a face
# taking values 1, 2, ..., 19, 20 is 10.5, and we're adding 4 faces)
# This script prints out an octave expression for M^{-1} v where M is the adjacency
# matrix of the faces of an icosahedron, and v is a column vector of 20 copies of 42.
<html>
<head>
<title>
lol
</title>
</head>
<body>
<script type="text/javascript">
if (2 + 2 == 4) {
@jcreedcmu
jcreedcmu / gist:6518640
Created September 11, 2013 02:21
finite field visualization
#!/usr/bin/perl
my %log = ();
my %exp = ();
my $P = 1049;
my $Pm = $P - 1;
my $gen = 1;
my $pi = 3.1415926535;
sub discretelog {