This file contains hidden or 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
#"aabbbcccdde" => "a2b3c3d2e1" | |
def encode_string(unencoded): | |
if unencoded is None or unencoded == "": | |
return None | |
last_letter = None | |
count = 0 |
This file contains hidden or 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 Rachel_ChanceItIfUsing(object): | |
def __init__(self, name): | |
self.name = name | |
self.minShotguns = 2 | |
def turn(self, gameState): | |
green_dice_left = 6 | |
red_dice_left = 3 |
This file contains hidden or 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
# Write a program that prints the numbers from 1 to 100. But for multiples of three print "Fizz" | |
# instead of the number and for the multiples of five print "Buzz". For numbers which are | |
# multiples of both three and five print "FizzBuzz". | |
# This is a moldly oldie in the programmer community, it's known as "FizzBuzz" (for obvious | |
# reasons). Here's a blog post: | |
# http://www.codinghorror.com/blog/2007/02/why-cant-programmers-program.html | |
# This solution runs through every number between 1 and 100, checks if they are evenly |
This file contains hidden or 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
# This is not used unless SQLALCHEMY_BINDS is not present | |
SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
SQLALCHEMY_BINDS = { | |
'master': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8', | |
'slave': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
} |
This file contains hidden or 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
Build for PyExchange-Test | |
Built: July 18, 2013. 1:01 p.m. | |
State: Finished | |
Outcome: Passed | |
Version: latest |
This file contains hidden or 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
Running Sphinx v1.1.3+ | |
building [html]: targets for 5 source files that are out of date | |
updating environment: 5 added, 0 changed, 0 removed | |
reading sources... [ 20%] attendee | |
reading sources... [ 40%] changelog | |
reading sources... [ 60%] contributing | |
reading sources... [ 80%] exchange2010calendarevent | |
Traceback (most recent call last): | |
File "/home/docs/checkouts/readthedocs.org/user_builds/pyexchange/envs/latest/local/lib/python2.7/site-packages/sphinx/ext/autodoc.py", line 321, in import_object | |
__import__(self.modname) |
NewerOlder