-
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 \
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 | |
*~ |
This gist contains information on how to get opam
and ocaml
installed on CSUG. These installation instructions are a modified version of the official installation instructions.
cd $HOME
mkdir -p bin
wget https://raw.github.com/ocaml/opam/master/shell/opam_installer.sh
sh opam_installer.sh $HOME/bin
\section{Background} | |
Last semester, we designed and implemented Felix: a system which measures | |
network traffic using NetKAT. Felix's query language and query compilation | |
design were complete, and a paper on Felix was accepted to SOSR. However, | |
both Felix and the SOSR submission were imperfect. First, Felix's query | |
compiler was slow for large inputs and would often crash on \emph{very} large | |
inputs. Second, the Felix compiler was not integrated with Haoxian's runtime | |
which made it onerous to run Felix end-to-end. Finally, our SOSR submission was | |
written hurriedly and submitted last minute\footnote{literally!}, leaving the | |
paper a bit incohesive. |
""" | |
A simple library level implementation of yielding generators using threads. Not | |
efficient, but it works! | |
""" | |
import threading | |
class BoundedConcurrentQueue(object): | |
def __init__(self, cap): | |
self.cap = cap |
#include <iostream> | |
#include <map> | |
#include <tuple> | |
#include <utility> | |
#include <vector> | |
#include "range/v3/all.hpp" | |
using namespace ranges; |
group: division | |
R = { a:string, b:number | |
a, 1 | |
a, 2 | |
a, 3 | |
b, 2 | |
b, 3 | |
c, 1 | |
} |