Skip to content

Instantly share code, notes, and snippets.

View idan's full-sized avatar
💫
Prototypin'

Idan Gazit idan

💫
Prototypin'
View GitHub Profile
class ScoredModel(models.Model):
score = models.IntegerField(default=0)
total = models.DecimalField(max_digits=7, decimal_places=2, default=0)
raw = models.DecimalField(max_digits=7, decimal_places=2, default=0)
easy_total = models.IntegerField(default=0)
easy_score = models.IntegerField(default=0)
easy_raw = models.DecimalField(max_digits=7, decimal_places=2, default=0)
from unipath import FSPath as Path
PROJECT_DIR = Path(__file__).absolute().ancestor(2)
DEBUG = False
TEMPLATE_DEBUG = DEBUG
ADMINS = (
('Idan Gazit', '[email protected]'),
)
(skills) [idan@IdanBookPro ../skillsapp.com/skills (master)]$ pip install httplib2
Downloading/unpacking httplib2
Real name of requirement httplib2 is httplib2
Could not find any downloads that satisfy the requirement httplib2
No distributions at all found for httplib2
Storing complete log in /Users/idan/.pip/pip.log
1x users/show
1-3x friends/ids (depending on friend count)
1-3x followers/ids (depending on follower count)
1x statuses/user_timeline (only need the last 1k tweets).
1-10x lists/memberships (depending on listed count)
Total:
~5-18 API calls per candidate investigated.

Speakers must register, too

DjangoCon Europe is a volunteer-run conference funded mainly by ticket sales; everybody pays to attend (including speakers). Talk submission is not a substitute for purchasing a ticket. If you plan on giving a talk, please make sure to purchase conference tickets and arrange transportation/lodging for yourself.

<table>
{% for row in data %}
<tr>
<td>{{ row.foo }}</td>
<td>{{ row.bar }}</td>
...
</tr>
{% endfor %}
</table>
try:
import simplejson as json
except ImportError:
import json
from django.http import HttpResponse
from django.core.cache import cache
def my_mongo_view(request, filter_args=None):
data = cache.get(filter_args) # first check to see if it's in the cache
idan at IdanBookPro in ~/Downloads/subtle patterns/pngs
$ ls -l *.png
-rw-r--r-- 1 idan staff 80297 May 26 10:51 45degreee_fabric.png
-rw-r--r-- 1 idan staff 606 May 26 10:51 60degree_gray.png
-rw-r--r-- 1 idan staff 9998 May 26 10:51 black_denim.png
-rw-r--r-- 1 idan staff 142 May 26 10:51 carbon_fibre.png
-rw-r--r-- 1 idan staff 46006 May 26 10:51 cork_1.png
-rw-r--r-- 1 idan staff 145267 May 26 10:51 exclusive_paper.png
-rw-r--r-- 1 idan staff 102354 May 26 10:52 fabric_1.png
-rw-r--r-- 1 idan staff 16964 May 26 10:51 gray_sand.png