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
cd /usr/local/Library/Formula | |
rm emacs.rb | |
wget https://raw.github.com/gist/1446720/36c7a3ab0ec8255e361dae11e0803cdf5cd09157/emacs.rb | |
brew install emacs --cocoa --lion |
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 Book(models.Model): | |
title = models.CharField(max_length=200) | |
class Page(ImageModel): | |
book = models.ForeignKey(Book) | |
image = models.ImageField(upload_to='book_photos') | |
num_views = models.PositiveIntegerField(editable=False, default=0) | |
class IKOptions: | |
# This inner class to define the ImageKit options for the model |
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
Landscaper | |
Face painter | |
recording engineer | |
sales clerk at art store | |
pool boy | |
hotel bus driver | |
bus boy | |
1hr photo technician | |
convenience store manager | |
pizza delivery |
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
13" Macbook Pro 4GB Ram 2.4Ghz 250GB hard drive | |
2.4Ghz proc is an intel core 2 duo | |
Ethernet, Fireware, mini-DVI, two USB, magsafe power, etc | |
apple care that I got with it makes the warranty good until 5/2013 | |
Still has original packaging |
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
#!/usr/bin/env ruby -w | |
# brew-services(1) - Easily start and stop formulas via launchctl | |
# =============================================================== | |
# | |
# ## SYNOPSIS | |
# | |
# [<sudo>] `brew services` `list`<br> | |
# [<sudo>] `brew services` `restart` <formula><br> | |
# [<sudo>] `brew services` `start` <formula> [<plist>]<br> |
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
1. While sitting at your desk in front of your computer, lift your right foot off the floor and make clockwise circles. | |
2. Now, while doing this, draw the number '6' in the air with your right hand. | |
Your foot will change direction. |
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
Org-mode timetable for particular day(s) | |
C-c C-x C-r to insert a dynamic block for the current file or from the root of a tree. | |
To get a clock summary of the current level 1 tree, for the current day, you could write | |
#+BEGIN: clocktable :maxlevel 2 :block today :scope tree1 :link t | |
#+END: clocktable | |
and to use a specific time range you could write6 | |
#+BEGIN: clocktable :tstart "<2006-08-10 Thu 10:00>" |
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 appscript | |
>>> things = appscript.app("Things") | |
>>> things.lists.get() | |
[app(u'/Applications/Things.app').lists.ID(u'FocusInbox'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusToday'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusNextActions'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusTickler'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusMaybe'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusActivityLevel-1'), | |
app(u'/Applications/Things.app').lists.ID(u'FocusLogbook'), |
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
emacs -q --eval '(condition-case err (progn (load "~/.emacs") (kill-emacs 0)) (error (kill-emacs 1)))' | |
# Source http://groups.google.com/group/gnu.emacs.help/browse_thread/thread/bed5b2bd8b237f5a?pli=1 |