-
Dry run launching an EC2 instance.
aws ec2 run-instances --dry-run --image-id ami-d05e75b8
-
Launch an EC2 instance with all the fixins.
aws ec2 run-instances \
#! /bin/sh | |
usage() { | |
echo "usage:" | |
echo " gitdown <markdown file>" | |
} | |
if test $# -lt 1; then | |
usage; | |
exit; |
#include <iostream> | |
#include <vector> | |
template<typename F> | |
int operator>>=(int i, F f) { | |
if (i == 0) { | |
return i; | |
} | |
return f(i); | |
} |
// Option bind for rust 0.10 | |
fn inv(f: f32) -> Option<f32> { | |
if f == 0.0 { | |
None | |
} | |
else { | |
Some(1.0 / f) | |
} | |
} |
\DefineNamedColor{named}{mongobrown}{RGB}{61, 41, 30} | |
\DefineNamedColor{named}{mongogold} {RGB}{129, 102, 75} | |
\DefineNamedColor{named}{mongogreen}{RGB}{55, 140, 40} | |
\DefineNamedColor{named}{darkgray}{cmyk}{0,0,0,0.90} | |
\mode<presentation> | |
\setbeamercolor{alerted text}{fg=red} | |
\setbeamercolor*{palette primary}{bg=mongobrown,fg=white} | |
\setbeamercolor*{palette secondary}{fg=white,bg=mongogreen} | |
\setbeamercolor*{palette tertiary}{fg=white,bg=darkgray} |
default: all | |
all: compile test | |
compile: | |
cs3110 compile -t -p core -p async main.ml | |
cs3110 compile -t -p core -p async main_test.ml | |
test: compile | |
cs3110 test main_test.ml |
use std::ops::Shr; | |
use Maybe::{Nothing, Just}; | |
#[derive(Debug)] | |
enum Maybe<A> { | |
Nothing, | |
Just(A) | |
} | |
impl<A, B, F> Shr<F> for Maybe<A> where F: Fn(A) -> Maybe<B> { |
use Tree::{Leaf, Node}; | |
enum Tree<A> { | |
Leaf, | |
Node(Box<Tree<A>>, A, Box<Tree<A>>) | |
} | |
fn tree_fold<A, B, F>(f: &F, a: B, t: &Tree<A>) -> B where F: Fn(B, &A, B) -> B, B: Clone { | |
match *t { | |
Leaf => a, |
################################################################################ | |
# vim | |
################################################################################ | |
*.sw[op] | |
################################################################################ | |
# C++ | |
################################################################################ | |
# Compiled Object files | |
*.slo |
[._]*.s[a-w][a-z] | |
[._]s[a-w][a-z] | |
*.un~ | |
Session.vim | |
.netrwhist | |
*~ |