Skip to content

Instantly share code, notes, and snippets.

View achempion's full-sized avatar
✍️
Writing software

Boris Kuznetsov achempion

✍️
Writing software
View GitHub Profile
@achempion
achempion / monkey-patching.rb
Created January 27, 2015 08:43
православный манкипатчинг
module MyStringThing
refine String do
def at(num)
self[num..num]
end
end
end
class A
main :: IO ()
main = do
str <- getLine
let [a,b] = words str
return ((read a :: Int) + (read b :: Int))