This file contains 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
so gist is like pastebin with the features of git? |
This file contains 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
TemplateSyntaxError at /messages/trash/ | |
Caught DatabaseError while rendering: Only AND filters are supported | |
Request Method: GET | |
Request URL: http://localhost:8000/messages/trash/ | |
Django Version: 1.3 | |
Exception Type: TemplateSyntaxError | |
Exception Value: |
This file contains 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
blake@RectangularPrism:~/illuminus$ python manage.py test django_messages | |
/usr/local/google_appengine/google/appengine/api/search/search.py:232: UserWarning: DocumentOperationResult._code is deprecated. Use OperationResult._code instead. | |
'Use OperationResult.%s instead.' % (name, name)) | |
/usr/local/google_appengine/google/appengine/api/search/search.py:232: UserWarning: DocumentOperationResult._CODES is deprecated. Use OperationResult._CODES instead. | |
'Use OperationResult.%s instead.' % (name, name)) | |
Creating test database for alias 'default'... | |
Skipping creation of NoticeTypes as notification app not found | |
Creating test database for alias 'native'... | |
......ERROR 2012-07-20 10:52:08,820 base.py:209] Internal Server Error: /messages/trash/ | |
Traceback (most recent call last): |
This file contains 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
print("By Chris, have fun at Stanford. Don't work too hard ;)." |
This file contains 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. Wie viele Männer und Frauen wohnen schon in dieser Wohngemeinschaft (WG)? | |
Achtzehn Männer und Siebzehn Fruen wohnen in dieser WG. | |
2. Soll ein Mann oder eine Frau einziehen? | |
Das ist keine Präferenz. | |
3. Wie groß ist das Zimmer? | |
Das Zimmer ist 13m^2. | |
4. In welcher Stadt und in welcher Stadtteil ist das Zimmer? |
This file contains 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
(nikola)blake@quadrilateral:~/cowlicks$ nikola build | |
Scanning posts..Traceback (most recent call last): | |
File "/home/blake/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/doit_cmd.py", line 103, in run | |
return self.sub_cmds[command].parse_execute(args) | |
File "/home/blake/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_base.py", line 60, in parse_execute | |
return self.execute(params, args) | |
File "/home/blake/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/cmd_base.py", line 226, in execute | |
args) | |
File "/home/blake/.virtualenvs/nikola/local/lib/python2.7/site-packages/nikola/main.py", line 87, in load_tasks | |
tasks = generate_tasks('render_site', self.nikola.gen_tasks('render_site', "Task")) |
This file contains 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
(nikola)blake@quadrilateral:~/cowlicks$ nikola build | |
Scanning posts....done! | |
. render_sources:output/posts/week-6-ufunc-overrides.ipynb | |
. render_posts:cache/posts/week-6-ufunc-overrides.html | |
######################################## | |
TaskError - taskid:render_posts:cache/posts/week-6-ufunc-overrides.html | |
PythonAction Error | |
Traceback (most recent call last): | |
File "/home/blake/.virtualenvs/nikola/local/lib/python2.7/site-packages/doit/action.py", line 324, in execute | |
returned_value = self.py_callable(*self.args, **kwargs) |
This file contains 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
def next_prime(): | |
"""Prime generator. | |
>>> import primes | |
>>> a = primes.next_prime() | |
>>> a.next() | |
2 | |
>>> a.next() | |
3 | |
""" | |
def is_prime(n): |
This file contains 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 math | |
import numpy as np | |
def kv2(Nx, Ny, Lx, Ly): | |
""" Compute the discrete 2D Laplacian in the frequency domain.""" | |
kv2 = np.empty((Nx, Ny)) | |
# We don't want floor division with Lx, Ly | |
Lx = float(Lx) | |
Ly = float(Ly) | |
def set_point(kx, ky): |
This file contains 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 python | |
"""A script to generate and serve the slides from a ipython notebook | |
that auto updates the slides. It would be nice to include something like | |
this in IPython. Usage: | |
>>> python serve_slides.py presentation.ipynb | |
""" | |
import sys |
OlderNewer