Skip to content

Instantly share code, notes, and snippets.

View mw44118's full-sized avatar
🤠

W. Matthew Wilson mw44118

🤠
View GitHub Profile
@mw44118
mw44118 / gist:5379455
Last active December 16, 2015 04:48
pyohio 2013 cfp 2nd draft

PyOhio Call for Proposals

Background

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.

@mw44118
mw44118 / gist:5346959
Created April 9, 2013 16:02
pyohio 2013 cfp first draft
++++++++++++++++++++++
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
@mw44118
mw44118 / gist:5101479
Created March 6, 2013 17:55
python logging.config.dictConfig vs using code
# 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
@mw44118
mw44118 / gist:4996652
Created February 20, 2013 16:06
my celeryd
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
- ** ----------
@mw44118
mw44118 / gist:4989745
Created February 19, 2013 20:44
vagrant puppet error
$ 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:
@mw44118
mw44118 / uncaught.py
Created June 20, 2012 14:46
Use sys.excepthook to log uncaught exceptions
# vim: set expandtab ts=4 sw=4 filetype=python:
import logging
import sys
import traceback
def f():
return g()
@mw44118
mw44118 / cyclemaker.js
Created May 17, 2011 19:33
Cycle through an array
var cyclemaker = function (arr) {
var i=0;
var end=arr.length;
return function () {
var element = arr[i];
if (i == end) {
@mw44118
mw44118 / life.py
Created January 17, 2011 01:15
My game of life solution from today's coderetreat
# 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):