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
<div class="header"> | |
<div class="chart-container"> | |
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"> | |
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="3.5em" height="3.5em" viewBox="0 0 200 200" enable-background="new 0 0 200 200" xml:space="preserve" class="svg-loader"> | |
<defs> | |
<filter id="glow" x="-120%" y="-120%" width="400%" height="400%"> | |
<feOffset result="offOut" in="SourceGraphic" dx="0" dy="0"></feOffset> |
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
# implementation of card game - Memory | |
import simplegui | |
import random | |
cards = [1, 2, 3, 4, 5, 6, 7, 8] * 2 | |
exposed = [[False] * 16] | |
deck = [50, 100] | |
x_pos = 50 | |
y_pos = 60 | |
x = 0 |
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
# implementation of Spaceship - program template for RiceRocks | |
import simplegui | |
import math | |
import random | |
# globals for user interface | |
WIDTH = 800 | |
HEIGHT = 600 | |
score = 0 | |
lives = 3 |
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
# template for "Stopwatch: The Game" | |
# define global variables | |
import simplegui | |
count = 0 | |
count2 = 0 | |
count3 = 0 | |
started = False | |
started2 = False |
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
def flatten(dictionary): | |
stack = [((), dictionary)] | |
result = {} | |
while stack: | |
path, current = stack.pop() | |
for k, v in current.items(): | |
if isinstance(v, dict): | |
stack.append((path + (k,), v)) | |
else: | |
result["/".join((path + (k,)))] = v |
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
Using the Google Geocoding API with a Database and | |
Visualizing data on Google Map | |
In this project, we are using the Google geocoding API | |
to clean up some user-entered geographic locations of | |
university names and then placing the data on a Google | |
Map. | |
You should install the SQLite browser to view and modify | |
the databases from: |