My notes from PyOhio. --rduplain
- July 27-28 in Columbus OH; planned for last weekend in July every year.
- Schedule: http://pyohio.org/schedule/
- Videos: http://pyvideo.org/category/41/pyohio-2013 (still being posted)
import vertigo | |
class EmptyGraphNode(vertigo.GraphNode): | |
@property | |
def value(self): | |
return None | |
def key_iter(self): | |
return () |
#!/bin/bash | |
# Cronic v2 - cron job report wrapper | |
# Copyright 2007 Chuck Houpt. No rights reserved, whatsoever. | |
# Public Domain CC0: http://creativecommons.org/publicdomain/zero/1.0/ | |
set -eu | |
OUT=/tmp/cronic.out.$$ | |
ERR=/tmp/cronic.err.$$ |
My notes from PyOhio. --rduplain
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant.configure("2") do |config| | |
config.vm.box = "precise32" | |
config.vm.box_url = "http://files.vagrantup.com/precise32.box" | |
config.vm.network :forwarded_port, guest: 80, host: 8080, auto_correct: true | |
end |
# Key project interactions, but not all dependencies are resolved by make. | |
help: | |
@heroku help | |
run: | |
python manage.py runserver | |
shell: | |
python manage.py shell |
# Call `make redis`, which runs redis binary after downloading/installing. | |
REDIS = redis-2.6.12 | |
redis: bin/redis-server | |
# bin/redis-server path/to/redis.conf | |
bin/redis-server | |
bin/redis-server: src/$(REDIS)/src/redis-server | |
mkdir -p bin |
PyCHO PyCon Digest - Tue Apr 9 6pm at WillowTree Apps
It's a Python meetup. Please promote in your circles!
Join us for a lively discussion where Charlottesville's PyCon 2013 attendees will share their highlights of the world's biggest Python conference. You can watch PyCon videos online for free, so you should come and find out which ones to watch! You will walk away with a few new Python tools you can use every day, too.
"A look at lexical scoping of functions defined inside for-loops, in Python." | |
import functools | |
def foo(): | |
return 'foo' | |
def bar(): |
# Description: | |
# Simple room logging, to log/yyyy-mm-dd.log files for all rooms. | |
# Patches robot adapter to also log messages from the bot. | |
# Log format is: isodate - room <user> text | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None |
# Description: | |
# Simple room logging, to log/yyyy-mm-dd.log files for all rooms. | |
# Log format is: isodate - room <user> text | |
# | |
# Dependencies: | |
# None | |
# | |
# Configuration: | |
# None | |
# |