View flatten.py
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 types | |
import unittest | |
def flatten(input, list=[]): | |
if isinstance(input, types.ListType): | |
for item in input: | |
flatten(item, list) | |
else: | |
list = list.append(input) | |
return list |
View mu-environment-fragment
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
namespace: min-ec2 | |
environments: | |
- name: acceptance | |
provider: ec2 | |
- name: production | |
provider: ec2 |
View svn-rename-spaces-to-underscore.py
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/python | |
import os | |
import sys | |
import time | |
import subprocess | |
def space2_(directory): | |
for filename in os.listdir(directory): # parse through file list in the current directory | |
#print "checking %s" % filename | |
if filename.find(".svn") >= 0: |