Wednesday July 29, 2015
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
# -*- coding: utf -*- | |
intro = '''Remove tripple quotes around the sections to run the code therein\n''' | |
__version__ = "0.2" | |
__py_version__ = "2.7x" | |
print "Version: "+__version__+'\nPython: '+__py_version__+'\n' | |
print intro | |
def title1(name=''): | |
print '\n' + name.upper() + ':' | |
print '-'*65 |
A list of readings I found useful when learning Python.
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
# coding: utf-8 | |
# Place this file in any directory and run it. | |
# An HTML, CSS, Javascript, and Python file will be generated in the directory. | |
# Double click the html file to test it in a browser. | |
# That's it (Edit as you will) | |
WRITE= 'w' | |
READ= 'r' |
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
# By the Tutorial Doctor | |
# Mon Aug 24 19:45:19 EDT 2015 | |
# This is the start of a simple custom command line python script | |
import random | |
import datetime | |
import editor | |
import os | |
#------------------------------------------------------------------------------ |
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
# Traffic Light | |
# By the Tutorial Doctor | |
# THE CLASS | |
#-------------------------------------------------- | |
class TrafficLight(): | |
GREEN = [1,0,0] | |
YELLOW = [0,1,0] | |
RED = [0,0,1] | |
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
# Fuzzy Logic experiment (WIP) | |
# By the Tutorial Doctor | |
# Objects are not always in one of two states (true or false), but rather in several states at one time. | |
#(val-min)/(max-min) | |
#--------------------------------------------------------------------------- | |
#VARIABLES | |
#------------------------------------------------------------------------------ | |
cold =(1,213) |
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
#coding: utf-8 | |
# AI Command | |
# By the Tutorial Doctor | |
# Wednesday September 02, 2015 (age relative to this) | |
# Only add valid commands to the memory | |
# a single command can trigger several functions | |
#------------------------------------------------------------------------------ | |
class AI(object): | |
pass | |
#------------------------------------------------------------------------------ |
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
# -*- coding: utf -*- | |
# add to soft dev/examples | |
# By the Tutorial Doctor | |
# Sep 2, 2015 | |
# Procedural Level Generation | |
#-------------------------------------------------- | |
# THE CODE |
OlderNewer