PyOhio 2013, the annual Python programming conference for Ohio and the surrounding region, will take place Saturday, July 27th, and Sunday, July 28th, 2013 at the Ohio State University in Columbus, Ohio.
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
# vim: set expandtab ts=4 sw=4 filetype=python: | |
import unittest | |
class Cell(object): | |
def __init__(self, x, y): | |
self.x = x | |
self.y = y | |
def neighbors(self): |
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
var cyclemaker = function (arr) { | |
var i=0; | |
var end=arr.length; | |
return function () { | |
var element = arr[i]; | |
if (i == end) { |
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
# vim: set expandtab ts=4 sw=4 filetype=python: | |
import logging | |
import sys | |
import traceback | |
def f(): | |
return g() |
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
$ vagrant provision | |
[default] Running provisioner: Vagrant::Provisioners::Puppet... | |
[default] Running Puppet with /tmp/vagrant-puppet/manifests/vagrant.pp... | |
stdin: is not a tty | |
warning: loglevel is a metaparam; this value will inherit to all contained resources | |
notice: /Stage[pre]/Vagrant/Exec[run apt-get update]/returns: executed successfully | |
notice: /Stage[main]/Bubbli::Component::Python/Package[python-dev]/ensure: ensure changed '2.7.3-0ubuntu2' to '2.7.*' | |
notice: DEPRECATION NOTICE: Files found in modules without specifying 'modules' in file path will be deprecated in the next major release. Please fix module 'bubbli' when no 0.24.x clients are present | |
err: Could not prefetch package provider 'pip': | |
err: /Stage[main]/Bubbli::Role::Web/Package[gunicorn]: Could not evaluate: |
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
celeryd --loglevel=INFO --config config --time-limit=300 -E --concurrency=8 -I aws_tasks -Q aws_tasks | |
-------------- celery@charcoal v3.0.0 (Chiastic Slide) | |
---- **** ----- | |
--- * *** * -- [Configuration] | |
-- * - **** --- . broker: redis://redis1.production.servers.bubblicorp.com:6379/1 | |
- ** ---------- . app: default:0x22edf50 (.default.Loader) | |
- ** ---------- . concurrency: 8 (processes) | |
- ** ---------- . events: ON | |
- ** ---------- |
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
# vim: set expandtab ts=4 sw=4 filetype=python fileencoding=utf8: | |
""" | |
Is there something wrong with logging.dictConfig, or am I just using it | |
wrong? | |
Run like | |
$ python scratch.py code |
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
++++++++++++++++++++++ | |
PyOhio Call for Papers | |
++++++++++++++++++++++ | |
PyOhio 2013, the annual Python programming conference for Ohio and the | |
surrounding region, will take place Saturday, July 27th, and Sunday, | |
July 28th, 2013 at the Ohio State University in Columbus, Ohio. | |
PyOhio invites all interested people to submit proposals for scheduled | |
talks, tutorials, and panels. All topics of interest to Python |
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
d1 = dict( | |
user_id=99, | |
display_name='Matt Wilson') | |
d2 = dict( | |
email_address='[email protected]', | |
**d1,) |
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
class A(object): | |
def __init__(self, f, mood): | |
self.f = f | |
self.mood = mood | |
def make_class(self): | |
class C(object): |
OlderNewer