Skip to content

Instantly share code, notes, and snippets.

View zeedunk's full-sized avatar

Zac Duncan zeedunk

  • Simple
  • Portland, OR
View GitHub Profile
@zeedunk
zeedunk / gist:4956428
Created February 14, 2013 21:08
a thing that i just typed
zac@shitonion ~/projects/zatoichi [master]
± % git shats poop !2789
git: 'shats' is not a git command. See 'git --help'.
Did you mean this?
status
,, ,, ,,
db `7MM `7MM `7MM
;MM: MM MM MM
,V^MM. ,pP"Ybd ,pP"Ybd `7MM `7MM `7MMpMMMb.pMMMb. .gP"Ya ,M""bMM .gP"Ya .gP"Ya `7Mb,od8 ,M""bMM .gP"Ya ,6"Yb. ,M""bMM
,M `MM 8I `" 8I `" MM MM MM MM MM ,M' Yb ,AP MM ,M' Yb ,M' Yb MM' "' ,AP MM ,M' Yb 8) MM ,AP MM
AbmmmqMA `YMMMa. `YMMMa. MM MM MM MM MM 8M"""""" 8MI MM 8M"""""" 8M"""""" MM 8MI
###############+;'#+###############################
#############;;;;';;'+'############################
###########+;;;;;'+''''''##########################
##########+'';''''++++''''#########################
++++++++#';';;';'''+''++++'+++++++++++#++++++++++++
+#++++++''';::;;''''''+++++'+++++++++++++++++++++++
+##++++''',,::::::;;;'''+++'+++++++++++++++++++++++
#+++++''+:,,,,,,,:,:::;;'+'';++++++++++++++++++++++
++++++'':,,,,,,,,,,,::;;;;''+++++++++++++++++++++++
+++++;;;,,,,,,,,,,,,:::;;;''';+++++++++++++++++++++
Hi,
Are you confused about the term “cloud computing”? If so, don’t feel bad. We hear that a lot from customers. But don’t fret! We want you to be a Cloud Rockstar, remember? So we’ve put together some information to help you better understand exactly what you’re purchasing and how it works.
Scenario: Being a dick
Given I am cucumber
When you want me to stop being a dick
Then I should laugh in your face
@zeedunk
zeedunk / foldl.hs
Created April 23, 2012 04:20
foldl
foldl f z [] = z
foldl f z (x:xs) = foldl f (f z x) xs
command! -nargs=0 GW exec "silent Ggrep <cword>" | copen | wincmd K
nnoremap <Leader>fw = :GW<CR>
@zeedunk
zeedunk / chat_client.erl
Created March 1, 2011 23:23
copied and modified from prag programmers screencast
-module(chat_client).
-compile(export_all).
register_nickname(Nickname) ->
Pid = spawn(chat_client, handle_messages, [Nickname]),
message_router:register_nick(Nickname, Pid).
unregister_nickname(Nickname) ->
message_router:unregister_nick(Nickname).
-module(fizzbuzz).
-export([fizzbuzz/1,fizzbuzzify/1]).
fizzbuzz(HighNum) -> lists:map(
fun (Num) ->
fizzbuzzify(Num, {Num rem 3, Num rem 5})
end, lists:seq(1, HighNum)).
fizzbuzzify(_Input,{0, 0})-> "fizzbuzz";
@zeedunk
zeedunk / gist:848570
Created March 1, 2011 03:35
fizzbuzz.erl
-module(fizzbuzz).
-include_lib("eunit/include/eunit.hrl").
-export([fizzbuzz/1]).
fizzbuzz([]) -> [];
fizzbuzz([X]) -> [fizzbuzzify(X)];
fizzbuzz([H|T]) -> fizzbuzz(T, [fizzbuzzify(H)]).