Skip to content

Instantly share code, notes, and snippets.

@reinh
reinh / apology.
Created October 22, 2019 18:58 — forked from unclebob/apology.
Apology to Women Programmers. [Originally by Robert Martin, saved here for posterity by @reinh]
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
{-# LANGUAGE OverloadedStrings #-}
module CommandParser where
import Data.Attoparsec.ByteString.Char8
import Data.Attoparsec.Combinator
import Control.Applicative
import Data.ByteString
data Command = Retrieve | Delete | New deriving Show
class Renderable a where
render :: a -> IO ()
newtype Rectangle = Rectangle { width :: Double, height :: Double }
instance Renderable Rectangle where
render = undefined
newtype Circle = Circle { radius :: Double }
@reinh
reinh / .rspec
Last active December 15, 2015 00:19 — forked from coreyhaines/.rspec
--colour
-I app
Merchant Date Ends Deal Price Value
Burger King 10/2/2011 10/4/2011 Your way 25 50
McDonalds 10/5/2011 Not really food 22 44
Arbys 10/8/2011 10/10/2011 More burgers 7 14
@reinh
reinh / index.html
Created May 24, 2012 03:27 — forked from mbostock/.block
Axis Component
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js?2.0.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.csv.js?2.0.0"></script>
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.time.js?2.0.0"></script>
<style type="text/css">
body {
font: 10px sans-serif;
@reinh
reinh / i-am-sorry.txt
Created March 20, 2012 19:59 — forked from robbyrussell/i-am-sorry.txt
apology ideas for @sqoot
Dear friends, we are truly sorry. You're right. We live in a bubble
and have a lot to learn. We need to do some soul searching and
practice mindfulness going forward. We hope that, in time, you'll
forgive us. Ladies.
def update_main_artist
artist = rovi_artist ? Artist.find_or_create_by_name rovi_artist.name : artists.first
update_attribute :main_artist_id, artist.id
end
@reinh
reinh / run_tags.rb
Created November 3, 2009 22:32 — forked from tobias/run_tags.rb
#!/usr/bin/ruby
#-*-ruby-*-
# A script to run ctags on all .rb files in a project. Can be run on
# the current dir, called from a git callback, or install itself as a
# git post-merge and post-commit callback.
CTAGS = '/usr/bin/env ctags'
HOOKS = %w{ post-merge post-commit post-checkout }
HOOKS_DIR = '.git/hooks'
@reinh
reinh / gist:180799
Created September 4, 2009 08:42 — forked from anonymous/gist:180794
def do_something
action = case
when self.play?: true ? 'play football' : 'do nothing'
when self.work?: 'go to work'
when self.sleep?: 'sleep'
else: 'What?'
end
return action
end