Skip to content

Instantly share code, notes, and snippets.

{
"golemNames": [
"Ace",
"Adamant",
"Aegis",
"Aerowave",
"Albatross",
"Alloyed",
"Alpha",
"Angel",
word freq
the 11572
of 4966
a 4407
to 4322
and 3026
in 2463
is 1693
this 1446
you 1330
@baxter
baxter / keybase.md
Created March 30, 2014 12:16
keybase.md

Keybase proof

I hereby claim:

  • I am baxter on github.
  • I am baxter (https://keybase.io/baxter) on keybase.
  • I have a public key whose fingerprint is 08C7 D55D 4626 8E49 74B0 AB9F CE8C 829C 16C0 2ABC

To claim this, I am signing this object:

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
From Linus Torvalds <>
Date Thu, 8 Mar 2012 15:40:26 -0800
Subject Re: [PATCH] sysfs: Optionally count subdirectories to support buggy applications
On Thu, Mar 8, 2012 at 2:18 PM, Eric W. Biederman <ebiederm@xmission.com> wrote:
>
> Keeping compatibility is easy enough that it looks like it is worth
> doing, but maintaining 30+ years of backwards compatibility
Stop right there.
@baxter
baxter / turtles.js
Created August 27, 2011 19:46
It's turtles all the way down.
> var turtle = {};
> turtle;
{}
> turtle.turtle = turtle;
{ turtle: [Circular] }
> turtle.turtle.turtle;
{ turtle: [Circular] }
> turtle.turtle.turtle.turtle;
{ turtle: [Circular] }
>
@baxter
baxter / gist:1089493
Created July 18, 2011 13:21
Emoticons and their meanings

Emoticon explanations

Too many applications provide their own emoticons. This is not acceptable. When I type the following characters this is what I mean.

  • :) – This made me smile.
  • :D – This really made me smile. My mouth is open. Please don't throw things at it.
  • :E – E is one better than D, therefore I just smiled so hard that my face broke.
  • ;) – I said something cheeky and hilarious.
  • :P – I said something that probably wasn't serious.
@baxter
baxter / gist:1029562
Created June 16, 2011 15:56
Goto considered offensive
goto your ass
@baxter
baxter / gist:984701
Created May 21, 2011 17:22
each_with_object
# Why does the first one work but not the second one?
(1..10).each_with_object([]) {|i, a| a << i*2 }
=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
(1..10).each_with_object([]) {|i, a| a += [i*2] }
=> []
@baxter
baxter / safe_object.rb
Created April 26, 2011 12:20
Safe object
class SafeObject
def send(*args)
puts "Are you sure? (Y/N)"
if gets.chomp == 'Y'
super(*args)
else
puts "Very wise."
end
end
end