Skip to content

Instantly share code, notes, and snippets.

View shostakovich's full-sized avatar
🚩
Focusing

Robert Curth shostakovich

🚩
Focusing
View GitHub Profile
@kytrinyx
kytrinyx / README.md
Created January 8, 2013 23:26
Take a snapshot of yourself on every commit.

Git Commit Snapshots

Snap a picture of yourself on every commit.

Probably Mac OS X only, I haven't looked into others.

$ brew install imagesnap
$ git config --global init.templatedir '~/.git_template'
$ chmod +x post-commit
@shostakovich
shostakovich / bowling_game.rb
Created July 9, 2012 18:04
Bowling game 5th try
class BowlingGame
attr_reader :rolls
def initialize
@rolls = []
end
def roll(pins)
@rolls << pins
end
@nistude
nistude / prime_factors_2_spec.rb
Created July 4, 2012 05:14 — forked from shostakovich/prime_factors_2_spec.rb
PrimeFactors Kata Second iteration
module PrimeFactors
def decompose(number)
if number <= 3
[number]
else
prime_factors = []
(2..number / 2).each do |prime|
while(number % prime).zero? do
number = number / prime
prime_factors << prime
@shostakovich
shostakovich / fizz_buzz_4_spec.rb
Created July 2, 2012 16:25
FizzBuzz Kata 4th iteration
class Game
def self.play
(1..100).map { |n| Kid.answer_to(n) }
end
class Kid
def self.answer_to(number)
if (number % 15).zero?
"FizzBuzz"
elsif (number % 3).zero?
@unclebob
unclebob / apology.
Created April 27, 2012 12:19
Apology to Women Programmers.
Today I gave a keynote at ACCU in Oxford. In the midst of it I made two (count them) two statements that I should have known better than to make. I was describing the late '70s, and the way we felt about the C language at the time. My slide said something like: "C was for real men." Emily Bache, whom I know and hold in high regard, spoke up and said "What about women?". And I said something like: "We didn't allow women in those days." It was a dumb crack, and should either not have been said, or should have been followed up with a statement to the effect that that was wrong headed.
The second mistake I made was while describing Cobol. I mentioned Adm. Grace Hopper. I said something like "May she rest in peace." I don't know that any of the words were actually demeaning, but the tone was not as respectful as it should have been to an Admiral in the United State Navy, and one who was so instrumental in our industry; despite what I feel about Cobol.
I am a 59 year old programmer who was brought up