I hereby claim:
- I am blt on github.
- I am troutwine (https://keybase.io/troutwine) on keybase.
- I have a public key ASA7ED3F_HArLA08CgrbzXJqASlFHbPd8ilNmvM49OS7DQo
To claim this, I am signing this object:
-module(hello). | |
-export([hello/1]). | |
hello(robert) -> | |
io:format("Hello, Mike."); | |
hello(joe) -> | |
io:format("Hello, Robert."); | |
hello(mike) -> | |
io:format("Hello, Joe."). |
*.o | |
*.a | |
example_cc | |
example_rs |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env python2.7 | |
import time | |
import socket | |
import sys | |
def graphite_metric(sock, name, value): | |
timestamp = int(time.time()) | |
sock.send("%s %f %d\n" % (name, value, timestamp)) | |
def main(): |
case object transaction { | |
import java.sql.Connection | |
def apply[T](query: => T):Option[T] = { | |
val conn:Connection = play.db.DB.getConnection | |
val auto:Boolean = conn.getAutoCommit | |
try { | |
conn.setAutoCommit(false) | |
Some(query) | |
} catch { |
/* | |
* 2012 -- updated to make use of an 8-core machine by Brian L. Troutwine | |
* | |
* THC/2003 | |
* | |
* Simple ssh-private key cracker. Tries to brute force (dictionary | |
* attack) almost any ssh private key file format. | |
* | |
* This is just a quick tool from THC. Using OpenSSL is not really | |
* fast... |
I've categorized the books--roughly--by Big Theme: the header to each sub-list.
#![cfg_attr(test, feature(plugin))] | |
#![cfg_attr(test, plugin(quickcheck_macros))] | |
#![allow(dead_code)] | |
#![allow(unused_imports)] | |
#[cfg(test)] | |
extern crate quickcheck; | |
/// This is an implementation of the algorithm presented in Cormode, Korn, |
#![cfg_attr(test, feature(plugin))] | |
#![cfg_attr(test, plugin(quickcheck_macros))] | |
#[cfg(test)] | |
extern crate quickcheck; | |
fn reverse<T: Clone>(xs: &[T]) -> Vec<T> { | |
let mut rev = vec!(); | |
for x in xs { | |
rev.insert(0, x.clone()) |