Skip to content

Instantly share code, notes, and snippets.

View ddehghan's full-sized avatar

David Dehghan ddehghan

View GitHub Profile
@ddehghan
ddehghan / test1.html
Last active September 21, 2017 05:45
test html
<html>
<body>
<a href="/new">Test link</a>
<br>
<svg><svg>
</body>
</html>
@ddehghan
ddehghan / SO_clone_import_list.txt
Last active January 27, 2016 18:39
List of Stackoverflow clones to be excluded by Google Personal block list chrome extension. See http://meta.stackoverflow.com/questions/253447/is-there-a-list-of-stackoverflow-clones-to-exclude-from-google-search-results
ASKBOT.com
Arrayshift.com
Coordino.com
OSQA.com
Question2Answer.com
a-scrip.org
acnenomor.com
allaskme.com
android.bigresource.com
androiddev.orkitra.com

This choropleth encodes unemployment rates from 2008 with a quantize scale ranging from 0 to 15%. A threshold scale is a useful alternative for coloring arbitrary ranges.

@ddehghan
ddehghan / django-tips
Last active December 15, 2015 15:38
Django tips and shortcuts
Python Guide: http://docs.python-guide.org/en/latest/
# Skip creating admin account
# from: http://stackoverflow.com/questions/1466827/automatically-create-an-admin-user-when-running-djangos-manage-py-syncdb
Setup a clean DB
python manage.py dumpdata --indent=4 auth > initial_data.json
python manage.py dumpdata --indent=4 sessions
python manage.py syncdb --noinput