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
@classmethod | |
def finish_sequencing_on(cls, when, dot=None, only=None, split_printing_at=300): | |
if only is not None: | |
pick_sets = (only,) | |
else: | |
pick_sets = cls.pick_sets_on(when) | |
seq = 0 | |
for p in sorted(pick_sets, key=lambda p: p.sequence): | |
seq = p.finish_sequencing(sequence_start=seq) | |
if dot: |
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 SearchableBaseModel(BaseModel): | |
""" | |
Subclasses of this are required to implement: | |
searchable_fields | |
A list of fields to do general search on, used for | |
ordering results as well. | |
""" | |
_aggregate_searchable_field = models.TextField(blank=True, null=True, editable=False, db_index=True) | |
searchable_fields = [] |
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
import os | |
class Test(object): | |
just_testing_this() | |
print 'yay!' |
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
" displays tabs with :set list & displays when a line runs off-screen | |
set listchars=tab:>-,eol:✈,trail:-,precedes:<,extends:> | |
set list |
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
" https://github.com/sontek/dotfiles/ | |
" ========================================================== | |
" Dependencies - Libraries/Applications outside of vim | |
" ========================================================== | |
" Pep8 - http://pypi.python.org/pypi/pep8 | |
" Pyflakes | |
" Ack | |
" Rake & Ruby for command-t | |
" nose, django-nose |
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
# Set escape char to Ctrl-J | |
set-option -g prefix C-h | |
unbind-key C-b | |
bind-key C-h send-prefix | |
# easy window splitting | |
unbind % | |
bind | split-window -h | |
bind - split-window -v |
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
######################## Exception ############################# | |
Traceback (most recent call last): | |
File "/home/kyle/code/beehive/lib/aquameta/helpers/json.py", line 18, in wrap | |
response = func(request, *a, **kw) | |
File "/home/kyle/.virtualenvs/beehive/local/lib/python2.7/site-packages/django/utils/decorators.py", line 110, in _wr | |
apped_view | |
return middleware.process_response(request, response) |
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 [12]: order = Order.objects.get(pk=1341114) | |
In [13]: order.snailtrack | |
Out[13]: <Snailtrack: orders_order #15: 1341114> | |
In [14]: st = order.snailtrack | |
In [15]: st.actions | |
Out[15]: [<Action: update #39 at 2011-09-09 16:18:01.900710>, <Action: insert #36 at 2011-09-09 16:17:19.944937>, <Action: insert #35 at 2011-09-09 16:17:19.933299>] |
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
#!/bin/bash | |
function wordlookup { | |
curl dict://dict.org/d:$1 | |
} |