Skip to content

Instantly share code, notes, and snippets.


Benjamin Atkin benatkin

View GitHub Profile
View genesis_public_key
mkdir -p ~/.vim/syntax/
curl > ~/.vim/syntax/nginx.vim
cat >> ~/.vim/filetype.vim <<EOF
au BufRead,BufNewFile /etc/nginx/*,/usr/local/nginx/conf/* if &ft == '' | setfiletype nginx | endif
benatkin / gist:4151386
Created Nov 26, 2012
Bootstrap styling for jQuery UI autocomplete
View gist:4151386
.ui-autocomplete {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
float: left;
display: none;
min-width: 160px;
_width: 160px;
padding: 4px 0;
benatkin /
Created Oct 3, 2012 — forked from ahoward/
So you think you wanna be a web developer...

Fork this, update your copy with answers.

They don't need to be precise - pseudo-code is fine in most cases.

Some questions don't have correct answers.

benatkin /
Created May 1, 2012 — forked from unclebob/apology.
[reformatted] 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

benatkin / gist:1163665
Created Aug 22, 2011 — forked from voodootikigod/gist:1155790
PyCodeConf Ticket Give-away
View gist:1163665
Day job: Freelance Web Developer
Favorite Python project: Haystack
Favorite Conference: Ruby Hoedown
Python Experience Level: Intermediate
View install rubycocoa over rvm's 1.8.7
ARCHFLAGS='-arch i386 -arch x86_64'
rvm install 1.8.7 --debug --reconfigure -C --enable-shared=yes
tar xzf RubyCocoa-1.0.0.tar.gz && rm RubyCocoa-1.0.0.tar.gz && cd RubyCocoa-1.0.0
ruby install.rb config --build-universal=yes
ruby install.rb setup
sudo ruby install.rb install
benatkin / index.html
Created Jul 18, 2011 — forked from jimjeffers/newSauce.js
Refactored the API for sauce.
View index.html
<div id="container">
<h1 id="sauce">Sauce.js</h1>
<h2 id="tagline">Add some flavor to the web!</h2>
<script type="text/javascript" src=""></script>
View webapp.rb
require 'rubygems'
require 'rack'
class Object
def webapp
class << self
define_method :call do |env|
func, *attrs = env['REQUEST_PATH'].split('/').reject(&:empty?)
[200, {}, send(func, *attrs)]