Skip to content

Instantly share code, notes, and snippets.

rleland ~: brew --version
0.7.1
rleland ~: brew info pypy
pypy 1.4
http://pypy.org/
/usr/local/Cellar/pypy/1.4 (2260 files, 58M)
http://github.com/mxcl/homebrew/commits/master/Library/Formula/pypy.rb
# A list of file extensions that nanoc will consider to be textual rather than
# binary. If an item with an extension not in this list is found, the file
# will be considered as binary.
text_extensions: [ 'css', 'erb', 'haml', 'htm', 'html', 'js', 'less', 'markdown', 'md', 'php', 'rb', 'sass', 'scss', 'txt', 'xhtml', 'xml' ]
# The path to the directory where all generated files will be written to. This
# can be an absolute path starting with a slash, but it can also be path
# relative to the site directory.
output_dir: output
#!/usr/bin/env ruby
# A few helpful tips about the Rules file:
#
# * The order of rules is important: for each item, only the first matching
# rule is applied.
#
# * Item identifiers start and end with a slash (e.g. “/about/” for the file
# “content/about.html”). To select all children, grandchildren, … of an
# item, use the pattern “/about/*/”; “/about/*” will also select the parent,
Compiling site...
identical [0.00s] output/favicon.ico
+--- /!\ ERROR /!\ -------------------------------------------+
| An exception occured while running nanoc. If you think this |
| is a bug in nanoc, please do report it at |
| <http://projects.stoneship.org/trac/nanoc/newticket> -- |
| thanks in advance! |
+-------------------------------------------------------------+
@richleland
richleland / hg-git-paths.txt
Created December 27, 2010 14:25
path format for pushing to git via hg
[paths]
default = ssh://[email protected]/richleland/django-cumulus
github = git+ssh://[email protected]/richleland/django-cumulus.git
from django.test import TestCase
from django.db import models
from django.core.files.base import ContentFile
from cumulus.storage import CloudFilesStorage
cloudfiles_storage = CloudFilesStorage()
class Thing(models.Model):
"A dummy model to use for tests."
image = models.ImageField(storage=cloudfiles_storage, upload_to='cumulus-tests')
___________________________________________________________________________________ [tox sdist] ___________________________________________________________________________________
[TOX] ***creating sdist package
[TOX] /Users/rleland/OPENSOURCE/django-cumulus$ /Users/rleland/.virtualenvs/django-cumulus/bin/python setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
[TOX] ***copying new sdistfile to '/Users/rleland/.tox/distshare/django-cumulus-0.3.4.zip'
_______________________________________________________________________________ [tox testenv:py26] ________________________________________________________________________________
[TOX] ***reusing existing matching virtualenv py26
[TOX] /Users/rleland/OPENSOURCE/django-cumulus/.tox/py26/log$ ../bin/pip install --download-cache=/Users/rleland/OPENSOURCE/django-cumulus/.tox/_download ../../dist/django-cumulus-0.3.4.zip >5.log
[TOX] /Users/rleland/OPENSOURCE/django-cumulus/cumulus_project$ ../.tox/py26/bin/python manage.py test cumulus
Creating test
<div class="section">
<h3>Portfolio Categories</h3>
{% regroup projects_by_category by category as object_list %}
<dl class="accordion-menu" id="work-list">
{% for item in object_list %}
<dt class="a-m-t toggler"><strong><!--<a href="{{ item.grouper.get_absolute_url }}" title="View projects for {{ item.grouper.title }}">-->{{ item.grouper.title }}<!--</a>--></strong></dt>
<dd class="a-m-d element">
<ul class="bd">
{% for project in item.list %}
<li>
<Files ~ "^\.ht">
Order allow,deny
Deny from all
</Files>
// listen for a place to be selected via autocomplete
google.maps.event.addListener(autocomplete, 'place_changed', function(){
var place = autocomplete.getPlace();
console.log(place);
});