Skip to content

Instantly share code, notes, and snippets.

View dbushong's full-sized avatar

David Bushong dbushong

View GitHub Profile
# i'd like this syntax to work
someFunc 42, 69,
foo: 42
bar: 79
baz: 88
"x#{x}": 92
# which would compile to something like this:
###
someFunc(42, 69, (function () {
@-moz-document url("https://www.hipchat.com/chat") {
#action_tabs .download { display: none !important; }
body.chat .tabs li a { padding-top: 4px !important; }
#action_tabs li.icon a img { top: 4px !important; }
#action_tabs { right: 1px !important; }
#header a.logo {
height: 30px !important;
width: 32px !important;
display: block !important;
overflow: hidden !important;
module Main where
import Random
import List
p=putStrLn
f(x,y)=x\\(x\\y)
e z=['*'|(p,q)<-z,p==q]++(f(unzip[x|x@(p,q)<-z,p/=q])>>"+")
n a s=getLine>>=m where{m i|i==s=return a;m i=p(e$zip i s)>>n(a+1)s}
main=mapM(\x->randomRIO('1','6'))"mind">>=n 1>>=p.("Tries: "++).show