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 -*- | |
""" | |
Simple compunding interest calculator. | |
Created on Sat May 7 12:48:37 2016 | |
@author: Chris Darringer | |
""" | |
def main(): | |
# read inputs |
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
"""Calculate pi using a random number generator | |
Calculate pi with progressively increasing accuracy using a random | |
number generator and some basic properties about circles and area. | |
Happy "pi day"! | |
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
"""The Animal Guessing Game | |
dichotomous keys and python | |
author: Frances Darringer, age 9 | |
""" | |
def main(): | |
print "Hello, and welcome to the animal guess game!" | |
print "In this game, I will give you a list of 7 animals. They are: " | |
print "(1) Panda" | |
print "(2) Dolphin " |
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
"""This is your life (according to Conway) | |
Conway's Game of Life http://en.wikipedia.org/wiki/Conway%27s_Game_of_Life | |
involved a grid of cells, some alive and some dead, and a set of rules that | |
determine whether a given cell "lives" to the next generation or dies. | |
This was my first real experiment with python, and exercised some of the | |
basic control functions, data structures, and features of the language. | |
The user can either select a random grid of cells or grid of cells | |
composed of the characters in their name. |
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
/* | |
Railroad crossing controller | |
*/ | |
#include <Servo.h> | |
// Constants | |
const int CYCLE_PERIOD_MS = 10; | |
const int SENSOR_DELTA_THRESHOLD = 20; |