Skip to content

Instantly share code, notes, and snippets.

View Miserlou's full-sized avatar

Rich Jones Miserlou

View GitHub Profile
"I'm seeking an iPhone developer to work with me on making a new recipes app. It should let users login with Facebook, take pictures of their dishes and upload them to the internet. If you're interested, please send me an email with some samples of other applications you've made. Thanks!"
"I'm seeking an iPhone developer to work with me on making a new recipes app.
It should let users login with Facebook, take pictures of their dishes and upload them to the internet.
If you're interested, please send me an email with some samples of other applications you've made. Thanks!"
"I'm seeking an iPhone developer to work with me on making a new recipes app.
It should let users login with Facebook, take pictures of their dishes and upload them to the internet.
If you're interested, please send me an email with some samples of other applications you've made.
Thanks!"
@Miserlou
Miserlou / dict.django.html
Created February 14, 2012 21:55
Django Dictionary
<ul>
{% for key, value in dictionary.items %}
<li><a href="{{key}}">{{value}}</a></li>
{% endfor %}
</ul>
@Miserlou
Miserlou / render.py
Created February 14, 2012 22:00
render to response
return render_to_response('template.html', {'dictionary': my_dictionary}, context_instance=RequestContext(request))
@Miserlou
Miserlou / gist:1832637
Created February 15, 2012 02:25
Google sites
(r'^googlea14532fb912s486\.html$', lambda r: HttpResponse("google-site-verification: googlea14532fb912s486.html", mimetype="text/plain")),
@Miserlou
Miserlou / gist:1832673
Created February 15, 2012 02:32
raboots
(r'^robots\.txt$', lambda r: HttpResponse("User-agent: *\nDisallow: ", mimetype="text/plain")),
@Miserlou
Miserlou / securing_rails_updates.md
Created March 5, 2012 17:50 — forked from peternixey/securing_rails_updates.md
How Homakov hacked GitHub and how to protect your application

##How Homakov hacked GitHub and the line of code that could have prevented it


Please note: THIS ARTICLE IS NOT WRITTEN BY THE GITHUB TEAM or in any way associated with them. It's simply hosted as a Gist because the markdown formatting is excellent and far clearer than anything I could manage on my personal Tumblr at peternixey.com.

If you'd like to follow me on twitter my handle is @peternixey


@Miserlou
Miserlou / placeholder.py
Created March 13, 2012 00:33
Django Placeholder Template Tag
from django.template import Library
import re
register = Library()
def placeholder(value, token):
value.field.widget.attrs["placeholder"] = token
return value
register.filter(placeholder)
git remote add --track master upstream git://github.com/upstreamname/projectname.git