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
id Base Curb Weight Acceleration Driveline Hybrid Height Length Width Top Speed Model Year Engine Engine Type Horsepower Make Size Torque Transmission Number Of Forward Gears Classification year highway_mpg city_mpg fuel | |
2004 Pontiac GTO Coupé Pontiac 5.7L 8 Cylinder 6 Speed Manual 0 0 0 0 0 0 2004 Pontiac GTO Coupé Pontiac 5.7L 8 Cylinder 8 Cylinder 0 Pontiac 5.7 0 6 Speed Manual 6 Manual transmission 2004 26 16 | |
2004 Pontiac GTO Coupé Pontiac 5.7L 8 Cylinder 4 Speed Automatic 0 0 0 0 0 0 2004 Pontiac GTO Coupé Pontiac 5.7L 8 Cylinder 8 Cylinder 0 Pontiac 5.7 0 4 Speed Automatic 4 Automatic transmission 2004 20 15 | |
2005 Pontiac GTO Coupé Pontiac 6.0L 8 Cylinder 4 Speed Automatic 0 0 0 0 0 0 2005 Pontiac GTO Coupé Pontiac 6.0L 8 Cylinder 8 Cylinder 0 Pontiac 6 0 4 Speed Automatic 4 Automatic transmission 2005 19 14 | |
2005 Pontiac GTO Coupé Pontiac 6.0L 8 Cylinder 6 Speed Manual 0 0 0 0 0 0 2005 Pontiac GTO Coupé Pontiac 6.0L 8 Cylinder 8 Cylinder 0 Pontiac 6 0 6 Speed Manual 6 Manual transmission 2005 |
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
F1: Bool -> Trio | |
True -> Link | |
False -> Gannon | |
F2: Bool -> Trio | |
True -> Link | |
False -> Zelda | |
F3: Bool -> Trio | |
True -> Link | |
False -> Link | |
F4: Bool -> Trio |
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
G1: Trio -> Bool | |
Link -> True | |
Zelda -> True | |
Gannon -> True | |
G2: Trio -> Bool | |
Link -> True | |
Zelda -> True | |
Gannon -> False | |
G3: Trio -> Bool | |
Link -> 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
good = [0,1,2,3] | |
good.append(5) | |
bad = "Not a list" | |
bad.append(5) |
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
B…y.BlockSvg | |
RTL: false | |
childBlocks_: Array[0] | |
collapsed_: false | |
colourHue_: 170 | |
comment: null | |
contextMenu: true | |
deletable_: true | |
disabled: false | |
editable_: true |
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
I’m not familiar with that article, but it reminds me of one of my “first day of class” lectures. | |
Imagine you were assigned to write a 20-page paper, by the end of the semester, on Napoleon’s invasion of Russia. What would you need to know? | |
[Guided classroom discussion, usually producing something like the following:] | |
Know about Napoleon and Russia | |
Know how to do library research | |
Know how to structure a 20-page paper so it’s coherent. | |
Know how to budget your time so you finish it by the end of the semester | |
Now suppose you were required to write this paper in Swedish, using a quill pen. What else would you need to know? |
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
(require 2htdp/image) | |
(require 2htdp/universe) | |
(define PMAX 10) | |
(define CELL-SIZE 30) | |
(define-struct cell (value polluted? x y)) | |
;; make-cell: number boolean number number -> cell | |
;; A cell has a value indicating permeability, | |
;; a flag indicating whether it has been polluted yet |
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
Spyral: | |
* Event unregistering | |
- All events in a namespace | |
- A specific namespace -> handler mapping | |
* Move animation code into Sprites | |
* Get rid of sprite.update | |
* Let Scenes be actors | |
* Fix AggregateSprites | |
* Add sprite.kill | |
* Fix clock bug |
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
# Comment | |
# Should these be broken up by Scene? By Sprite? | |
# Do we use "eval" to parse values? | |
# Style collection of widgets | |
.style: | |
property: value | |
# Variables |
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
with open('data', 'r') as inputFile: | |
with open('sampled', 'w') as outputFile: | |
for index, line in enumerate(inputFile): | |
# and maybe grab 3 more lines? | |
outputFile.write(line) | |
if index > SAMPLE_SIZE: | |
break |
OlderNewer