I hereby claim:
- I am jbrechtel on github.
- I am eightball (https://keybase.io/eightball) on keybase.
- I have a public key whose fingerprint is 1535 B447 793A DC4B EE01 66D2 803B CB2D EF34 8B88
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
module james | |
let rec fib = function | |
| 0 -> 0 | |
| 1 -> 1 | |
| n -> fib(n - 1) + fib(n - 2) | |
type Thing = | |
| Something = 1 |
module James | |
open System | |
let strToInt str = | |
try | |
Some (Int32.Parse(str)) | |
with | |
| _ -> None |
#mongo 2.4 running with --auth | |
require 'mongo' | |
require 'json' | |
client = Mongo::MongoClient.new('localhost', 27017) | |
admin = { user: 'admin', pwd: 'password', roles: ['readWriteAnyDatabase', 'userAdminAnyDatabase', 'clusterAdmin'] } | |
user = { user: 'app', pwd: 'password', roles: ['readWrite'] } |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
<html> | |
<body> | |
<div style="color:white"> | |
<a>foo</a> | |
</div> | |
</body> | |
</html> |
# OSX for Hackers (Mavericks/Yosemite) | |
# | |
# Source: https://gist.github.com/brandonb927/3195465 | |
#!/bin/sh | |
# Some things taken from here | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# Ask for the administrator password upfront |
[0, -30, 30, 0, -30, 30, 0, -30, 30, 0] | |
[0, -30, 30, 0, -30, 30, 0, -30, 30, 0] | |
[0, -30, 30, 0, -30, 30, 0, -30, 30, 0] | |
user system total real | |
eager_map 0.400000 0.010000 0.410000 ( 0.413597) | |
lazy_map 1.640000 0.000000 1.640000 ( 1.642215) | |
composed 0.610000 0.000000 0.610000 ( 0.610857) | |
m_composed 0.140000 0.000000 0.140000 ( 0.136136) |
quine.rb:1: syntax error, unexpected tINTEGER, expecting tSTRING_CONTENT or tSTRING_DBEG or tSTRING_DVAR or tSTRING_END | |
quine.rb:1: syntax error, unexpected tI... | |
^ |
private void LoadRecentPlayers() | |
{ | |
var repo = ObjectFactory.Get<IPlayerRepository>(); | |
try | |
{ | |
var players = repo.RecentPlayers(100); | |
FinishLoad(players, button1); | |
} | |
catch (Exception ex) | |
{ |