Skip to content

Instantly share code, notes, and snippets.

View billgathen's full-sized avatar

Bill Gathen billgathen

View GitHub Profile
@billgathen
billgathen / gol.exs
Last active August 29, 2015 14:05 — forked from avdi/gol.exs
Elixir 0.15.1-compatible version of @avdi implementation of Conway's Game of Life
defmodule Life do
def run(board) when is_binary(board) do
board |> parse_board |> run
end
def run(board) do
IO.write("\e[H\e[2J")
Life.print_board board
:timer.sleep 1000
board = next_board(board)
@billgathen
billgathen / gdd-abstract.md
Created July 27, 2014 00:45
GDD: Generosity-Driven Development

What's the most important skill we can develop to level-up our careers and our lives? It's not a new framework, another language, or some clever meta-programming technique. It's an attitude I call Generosity-Driven Development.

Think of it as a form of Dependency Inversion: shifting our focus from inside (how will this help me? how will this make me feel/be/look better?) to outside (who will this help? what pain can I ease? whom can I empower?)

@billgathen
billgathen / gist:7439982
Created November 12, 2013 22:30
A gift for Drew. I don't ask why.
~ → /usr/bin/vim --version
VIM - Vi IMproved 7.3 (2010 Aug 15, compiled Aug 24 2013 18:58:47)
Compiled by root@apple.com
Normal version without GUI. Features included (+) or not (-):
-arabic +autocmd -balloon_eval -browse +builtin_terms +byte_offset +cindent
-clientserver -clipboard +cmdline_compl +cmdline_hist +cmdline_info +comments
-conceal +cryptv +cscope +cursorbind +cursorshape +dialog_con +diff +digraphs
-dnd -ebcdic -emacs_tags +eval +ex_extra +extra_search -farsi +file_in_path
+find_in_path +float +folding -footer +fork() -gettext -hangul_input +iconv
+insert_expand +jumplist -keymap -langmap +libcall +linebreak +lispindent
@billgathen
billgathen / gist:6546668
Last active December 22, 2015 23:29
Functional FizzBuzz. I've been reading the fantastic "Functional JavaScript" (http://functionaljavascript.com) and thought I'd try some Ruby in that style.
require 'json'
module FizzBuzz
def self.generate last_num
1.upto(last_num).map do |n|
if n % 15 == 0
'FizzBuzz'
elsif n % 5 == 0
'Buzz'
elsif n % 3 == 0
# Bill Gathen (@epicpoodle)
#
class MyGame
def initialize
@teleported = false
@took_gold = false
@room = :entry
end
def play