Skip to content

Instantly share code, notes, and snippets.

@cd34
cd34 / mutable.py
Last active December 19, 2015 03:48
mutable demonstration code
#!/usr/bin/python
import copy
def mutable(myset):
myset.extend([10,11,12])
print 'inside mutable function:', myset
def nonmutable(myset):
myset = copy.copy(myset)
@cd34
cd34 / client.py
Created January 12, 2012 07:22 — forked from drewww/client.py
Connect to socket.io server from python, using websocket
#!/usr/bin/env python
# encoding: utf-8
"""
client.py
Based heavily on:
- https://github.com/mtah/python-websocket/blob/master/examples/echo.py
- http://stackoverflow.com/a/7586302/316044
Created by Drew Harry on 2011-11-28.
@cd34
cd34 / master.cf
Created December 20, 2011 20:05
master.cf
#
# Postfix master process configuration file. Each logical line
# describes how a Postfix daemon program should be run.
#
# A logical line starts with non-whitespace, non-comment text.
# Empty lines and whitespace-only lines are ignored, as are comment
# lines whose first non-whitespace character is a `#'.
# A line that starts with whitespace continues a logical line.
#
# The fields that make up each line are described below. A "-" field
$ git pull [email protected]:cd34/apex.git master
From github.com:cd34/apex
* branch master -> FETCH_HEAD
Already up-to-date.
(pyr27)daviesinc@pch1:/var/www/apex/apex$ git status
# On branch new_identification_method_conglomeration_to_support_multiple_auth_ids_with_single_id_for_federated_logins_and_potential_openid_endpoint
nothing to commit (working directory clean)
(pyr27)daviesinc@pch1:/var/www/apex/apex$ git push
To [email protected]:cd34/apex.git
! [rejected] master -> master (non-fast-forward)