- Little Miss Sunshine
- Batoru rowaiaru
- The Godfather: Part II
- In Bruges
- Moonrise Kingdom
- The Thing
- Carrie
- Chinatown
- The Cabin in the Woods
- (500) Days of Summer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.toggle_input = (options) -> | |
# used for our 3-way toggles such as sentiment and disclosure | |
defaults = | |
input: 'input' | |
toggles: '.toggle' | |
active_class: 'active' | |
can_deselect: true | |
get_value: -> | |
@text().trim().toLowerCase().replace ' ', '' | |
initialize: -> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.validator::checkForm = -> | |
@prepareForm() | |
elements = (@currentElements = @elements()) | |
for element in elements | |
$elem = $ "[name='#{element.name}']:not([disabled])" | |
if $elem.length > 1 | |
for sub_element in $elem | |
@check sub_element | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$.fn.relativize = (format='MMM D, YYYY at hh:mma') -> | |
for date in this | |
$date = $ date | |
if $date.attr 'unix_timestamp' | |
this_moment = moment.unix $date.attr 'unix_timestamp' | |
else | |
this_moment = moment $date.text(), FORMAT | |
$date.attr 'unix_timestamp', this_moment.unix() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from __future__ import with_statement | |
from fabric.api import * | |
from fabric.contrib import files | |
env.roledefs = { | |
'prod': ['[email protected]'], | |
'staging': ['[email protected]'], | |
} | |
CODE_DIR = '/home/ExampleProject' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
====================================================================== | |
ERROR: test_hero_images_not_regenerated_when_crop_doesnt_change (fileupload.tests.test_models.FileuploadImageModelTests) | |
---------------------------------------------------------------------- | |
Traceback (most recent call last): | |
File "/Users/jacob/Documents/Projects/gizmag/fileupload/tests/test_models.py", line 216, in test_hero_images_not_regenerated_when_crop_doesnt_change | |
self.image.save() | |
File "/Users/jacob/Documents/Projects/gizmag/fileupload/models.py", line 166, in save | |
super(Image, self).save(*args, **kwargs) | |
File "/Users/jacob/Documents/Projects/gizmag/fileupload/models.py", line 51, in save | |
super(BaseMedia, self).save(*args, **kwargs) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(gizmag)jacob [master] ~/p/gizmag $ gunicorn gizmag.wsgi:application | |
2013-09-24 16:38:23 [73705] [INFO] Starting gunicorn 18.0 | |
2013-09-24 16:38:23 [73705] [INFO] Listening at: http://127.0.0.1:8000 (73705) | |
2013-09-24 16:38:23 [73705] [INFO] Using worker: sync | |
2013-09-24 16:38:23 [73708] [INFO] Booting worker with pid: 73708 | |
2013-09-24 16:38:23 [73708] [ERROR] Exception in worker process: | |
Traceback (most recent call last): | |
File "/Users/jacob/.virtualenvs/gizmag/lib/python2.7/site-packages/gunicorn/arbiter.py", line 495, in spawn_worker | |
worker.init_process() | |
File "/Users/jacob/.virtualenvs/gizmag/lib/python2.7/site-packages/gunicorn/workers/base.py", line 106, in init_process |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
In [1]: a = [1,2,3] | |
In [2]: b = a | |
In [3]: b | |
Out[3]: [1, 2, 3] | |
In [4]: b.append(4) | |
In [5]: a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class MyClass(models.Model): | |
@fsm_log_by | |
@transition(...) | |
def my_transition(self, by=None): | |
... |