Skip to content

Instantly share code, notes, and snippets.

View mcandre's full-sized avatar

Andrew mcandre

  • Milwaukee, WI
View GitHub Profile
// humans
// format: 60 card
// https://gist.github.com/1775006
// Lands
11 Plains
11 Swamp
2 Isolated Chapel
// Enchantments
// kaalia
// format: EDH
// https://gist.github.com/1775399
// Commander
Kaalia of the Vast
// Lands
Command Tower
11 Swamp
// gravepower--
// format: 60 card
// https://gist.github.com/1775741
// Lands
14 Forest
10 Island
// Equipment
2 Executioner's Hood
fn main(args: [str]) {
let opts = [
optopt("o"),
optflag("h"),
optflag("help")
];
let match = alt getopts(vec::shift(args), opts) {
ok(m) { m }
err(f) { fail fail_str(f) }
};
use std;
import std::getopts::*;
import result::*;
fn do_work(in: str, out: option<str>) {
// ...
}
fn print_usage(program: str) {
std::io::println("Usage: " + program + " [options]");
// zombiecom
// format: EDH
// https://gist.github.com/1864923
// Commander
The Mimeoplasm
// Lands
Command Tower
10 Forest
function dude() {
console.log("Dude, what does my tattoo say?");
}
function sweet() {
console.log("Sweet! What about mine?");
}
var tattoos = [dude, sweet];
// drawcommander
// format: EDH
// https://gist.github.com/2020066
// Commander
Niv-Mizzet, the Firemind
// Lands
20 Island
20 Mountain
// teysa
// format: EDH
// https://gist.github.com/2027019
// Commander
Teysa, Orzhov Scion
// Mana Sources
Vault of the Archangel
Phyrexian Altar
// paupersac
// format: pauper
// https://gist.github.com/2027189
// Lands
11 Swamp
9 Forest
// Instants
3 Tragic Slip