Skip to content

Instantly share code, notes, and snippets.

View waawal's full-sized avatar

Daniel Waardal waawal

View GitHub Profile
@defunkt
defunkt / my_view.rb
Created April 27, 2010 22:26
Mustache Markdown Helper
class MyView < Mustache
def markdown(str = nil)
if str
Markdown.new(str.to_s).to_html
else
lambda { |text| markdown(render(text)) }
end
end
end
@emre
emre / thumbnail.py
Created March 9, 2010 10:22
thumbnailer class for python
from PIL import Image
class ThumbNail(object):
"""
init function for base Class
Parameters
------------
targetFile: