Skip to content

Instantly share code, notes, and snippets.

View edunham's full-sized avatar

E. Dunham edunham

View GitHub Profile
@edunham
edunham / ferris.cow
Last active October 29, 2015 20:40
##
## Ferris
##
$the_cow = <<EOC;
$thoughts _ /\\ _
$thoughts _ | \\ / \\ / | _
$thoughts | `\\ | \\/ \\/ |_/` |
$thoughts _____| |______
$thoughts | /
_____| /______ /|
##
## Ferris the cRustacean
##
$the_cow = <<EOC;
$thoughts _ /\\ _
$thoughts _ | \\ / \\ / | _
$thoughts | `\\ | \\/ \\/ |_/` |
$thoughts _____| |______
$thoughts | /
_____| /______ /|
manifest_version = "2"
date = "2015-10-20"
[rust]
version = "1.5.0-nightly (d3f497861 2015-10-18)"
[rust.x86_64-apple-darwin]
url = "https://static.rust-lang.org/dist/2015-10-20/rust-nightly-x86_64-apple-darwin.tar.gz"
hash = "ee83a27eac416ecb96b52c3b1e922ba15adbe9a9447495f9eabb2b2186b8185e"
[[rust.x86_64-apple-darwin.components]]
pkg = "rustc"
target = "x86_64-apple-darwin"
manifest_version = "2"
date = "2015-10-20"
[rust]
version = "1.5.0-nightly (d3f497861 2015-10-18)"
[rust.x86_64-apple-darwin]
url = "https://static.rust-lang.org/dist/2015-10-20/rust-nightly-x86_64-apple-darwin.tar.gz"
hash = "ee83a27eac416ecb96b52c3b1e922ba15adbe9a9447495f9eabb2b2186b8185e"
[[rust.x86_64-apple-darwin.components]]
pkg = "rustc"
target = "x86_64-apple-darwin"
manifest_version = "2"
date = "2015-10-20"
[rust]
version = "1.5.0-nightly (d3f497861 2015-10-18)"
[rust.x86_64-apple-darwin]
url = "http://static-rust-lang-org.s3-website-us-west-1.amazonaws.com/dist/2015-10-20/rust-nightly-x86_64-apple-darwin.tar.gz"
hash = "ee83a27eac416ecb96b52c3b1e922ba15adbe9a9447495f9eabb2b2186b8185e"
[[rust.x86_64-apple-darwin.components]]
pkg = "rustc"
target = "x86_64-apple-darwin"
manifest_version = "2"
date = "2015-10-20"
[rust]
version = "1.5.0-nightly (d3f497861 2015-10-18)"
[rust.x86_64-apple-darwin]
url = "http://static-rust-lang-org.s3-website-us-west-1.amazonaws.com/dist/2015-10-20/rust-nightly-x86_64-apple-darwin.tar.gz"
hash = "ee83a27eac416ecb96b52c3b1e922ba15adbe9a9447495f9eabb2b2186b8185e"
[[rust.x86_64-apple-darwin.components]]
pkg = "rustc"
target = "x86_64-apple-darwin"
adobe-source-code-pro-fonts
adobe-source-sans-pro-fonts
ansible
arandr
arch-install-scripts
audacity
autoconf
automake
avr-gcc
bash
acpitool 0.5.1-6
adduser 1.15-5
adobe-source-code-pro-fonts 2.010ro+1.030it-1
adobe-source-sans-pro-fonts 2.010ro+1.065it-2
ansible 1.9.2-1
arandr 0.1.7.1-3
arch-install-scripts 15-1
audacity 2.1.0-1
autoconf 2.69-2
automake 1.15-1
@edunham
edunham / example.rs
Created July 13, 2015 17:57
Code snippet to run in the Playpen from my blog post
// This code is editable and runnable!
fn main() {
println!("Hello from edunham's blog!"); }
include = function() {
// save references to save a few bytes
var args = arguments;
var doc = document;
var toLoad = args.length; // load this many scripts
var lastArgument = args[toLoad - 1];
var hasCallback = lastArgument.call; // is the last arg a callback?
if (hasCallback) {