Skip to content

Instantly share code, notes, and snippets.

View yoloseem's full-sized avatar
😼
with cat

Hyunjun Kim yoloseem

😼
with cat
View GitHub Profile
@yoloseem
yoloseem / gist:4595277
Last active December 11, 2015 11:38 — forked from dahlia/gist:4407166
formencode htmlfill in jinja2 template
# htmlfill
with app.test_request_context('/'):
html = render_template_string('''
{%- autoescape true -%}
{%- form 'user.signin', {'method': 'POST'}
with {'name': 'sohee', 'pretty': 'no'},
{'pretty': 'sohee is always pretty.'} -%}
<input type="text" name="name" /> {{- '' -}}
<input type="text" name="pretty" placeholder="yes" /> {{- '' -}}
<div id="errors"> {{- '' -}}
@yoloseem
yoloseem / Vagrantfile
Last active December 18, 2015 04:49 — forked from dlutzy/gist:2469037
Vagrantfile
# -*- mode: ruby -*-
# vi: set ft=ruby :
boxes = [
{ :name => :web,
:role => 'web',
:ip => '192.168.33.1',
:http_fwd => 8080,
:shares => true },
{ :name => :db,