Skip to content

Instantly share code, notes, and snippets.

View jjoocceeee's full-sized avatar

JoCee jjoocceeee

View GitHub Profile
@nate-strauser
nate-strauser / Materialize CSS - Modal Fixed Header
Created May 18, 2016 19:49
How to have a fixed modal header with materializecss
Modal Markup:
<div class="modal modal-fixed-header">
<div class="modal-header">
HEADER CONTENT
</div>
<div class="modal-content">
MAIN CONTENT
</div>
</div>
@amcclosky
amcclosky / remove_foreign_keys.py
Created May 26, 2011 22:37
Remove all foreign key constraints from a MySQL database with Django 1.3
"""
remove_foreign_keys.py
Removes all the foreign key constraints in a django project's MySQL database.
NO FOREIGN KEYS = NO FOREIGN KEY HEADACHES
(of course if you are using anything other than the django ORM its likely to cause other headaches)
Before running this script be sure your django settings module is available
to your environment.