This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ Documents grep cock /usr/share/dict/words | |
acock | |
acockbill | |
Babcock | |
bawcock | |
bibcock | |
bidcock | |
bilcock | |
billycock | |
blackcock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/etc | |
/usr/lib | |
/usr/bin | |
char | |
scala | |
java | |
cache | |
solaris | |
linux (strong no hire if gnu is mentioned) | |
gif |

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[]{beamer} | |
\usepackage[T1]{fontenc} | |
\usepackage[brazil]{babel} | |
\usepackage[utf8]{inputenc} | |
\usepackage{ifpdf} | |
\usepackage{bytefield} | |
\begin{document} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> run "/Users/markmcbride/projects/slog/src/main/resources/logloader-gc.log" | |
[info] Running org.mccv.slog.Main /Users/markmcbride/projects/slog/src/main/resources/logloader-gc.log | |
parsed 1845 lines | |
time ParNew alloc (KB) total alloc (KB) user sys real | |
2012-11-26T18:05:06 19,776.00 19,776.00 0.08 0.00 0.06 | |
2012-11-26T18:05:07 26,368.00 26,368.00 0.24 0.06 0.16 | |
2012-11-26T18:05:08 26,368.00 26,368.00 0.08 0.02 0.06 | |
2012-11-26T18:05:09 26,368.00 26,368.00 0.06 0.00 0.00 | |
2012-11-26T18:05:10 52,736.00 52,736.00 0.22 0.02 0.12 | |
2012-11-26T18:05:11 13,184.00 13,184.00 0.08 0.00 0.06 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
case class Node(value: Int, left: Option[Node] = None, right: Option[Node] = None) | |
def isBST(n: Node): Boolean = { | |
isBST(Option(n), Integer.MIN_VALUE, Integer.MAX_VALUE) | |
} | |
def isBST(nOpt: Option[Node], | |
lowerBound: Int, | |
upperBound: Int): Boolean = { | |
nOpt match { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def mrrrrrmmmmmmrrrr | |
str = ''; upper = true; m = true | |
(rand(30) + 30).times do | |
upper = !upper if rand < 0.3 | |
m = !m if rand < 0.3 | |
str << lambda {|ch| upper ? ch.upcase : ch}.call(m ? 'm' : 'r') | |
end | |
str | |
end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# stick this in .bashrc | |
# jsoncurl <thing that outputs json on one line so you can't read it> | |
function jsonator { | |
ruby -rubygems -r pp -e 'require "json"; ARGF.each {|l| puts JSON.pretty_generate(JSON.parse(l))}' | |
} | |
function jsoncurl { | |
curl -s $@ | jsonator | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
scala> class Foo { | |
| def <=: (f: (Int) => Boolean) = f(1) | |
| } | |
defined class Foo | |
scala> val f = new Foo() | |
f: Foo = Foo@a06812d | |
scala> { x:Int => true } <=: f | |
res5: Boolean = true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNNNNNNNNNNNNNNNNNNNNNNNNMMMMMMMMMNMMNNNNMMMMMMMMMMMMMMMMMMMMMMMNMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMNMMMMMMMMNNNNNNMNMMMMMMMMM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