Install dependencies:
sudo apt install clang build-essential git
Install the UASM assembler from source:
| #[derive(Debug)] | |
| enum State { | |
| New(Option<String>), | |
| Running(String), | |
| Failure(Box<State>), | |
| } | |
| enum Event { | |
| Open(String), | |
| Run, |
| config: | |
| target: "ws://127.0.0.1:8080/" | |
| phases: | |
| - duration: 30 | |
| arrivalRate: 5 | |
| name: "Easy start" | |
| - duration: 60 | |
| arrivalRate: 5 | |
| rampTo: 100 | |
| name: "Ramping up" |
| use std::sync::Arc; | |
| use std::sync::RwLock; | |
| use std::collections::HashMap; | |
| #[macro_use] | |
| extern crate neon; | |
| use neon::prelude::*; | |
| pub struct Increment { | |
| key: String, |
| #!/bin/bash | |
| # Script for installing tmux on systems where you don't have root access. | |
| # tmux will be installed in $HOME/local/bin. | |
| # It's assumed that wget and a C/C++ compiler are installed. | |
| # exit on error | |
| set -e | |
| TMUX_VERSION=1.8 |
| open Core.Std | |
| (** | |
| * Coalesce a list of overlapping and adjacent start/end tuples. | |
| * | |
| * let ranges = [(2,3); (1,2); (5,11); (4,10); (3,3)];; | |
| * coalesce_ranges ranges;; | |
| * - : (int * int) list = [(1, 11)] | |
| **) | |
| let coalesce_ranges ?(cmp=compare) ranges = |
| <!DOCTYPE HTML> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>Time Sink Calendar View</title> | |
| <script src="moment.min.js"></script> | |
| <script src="d3.v3.min.js"></script> | |
| <style> | |
| body { |
| #!/usr/bin/env python | |
| # [email protected] | |
| import csv | |
| import subprocess | |
| from itertools import groupby | |
| def identity(infile, outfile): | |
| def key(row): | |
| return row[0] | |
| #!/usr/bin/env python | |
| __author__ = 'Kevin Warrick' | |
| __email__ = '[email protected]' | |
| import cPickle | |
| from functools import wraps | |
| def redis_lru(capacity=5000, slice=slice(None)): | |
| """ | |
| Simple Redis-based LRU cache decorator *. |