Reduce a list of words to counts for each unique word.
A quick demonstration of how node's EventEmitter can be extended.
See this gist for another example,
demonstrating how EventEmitter
can be used to implement the Observer pattern.
Generate a list of word pairs from Moby Dick.
Taken from Matt Brocklin's post on text benchmarks.
Nice use of pipe and sliding_window here!
Install PyToolz before running: pip install toolz
.
Notebooks from the PyToolz Tutorial for PyData 2013 - NYC.
Use the left and right arrow keys to rotate the ship. Press the up arrow key to turn on the engine.
Try to land the ship safely on the ground. You must land gently or the ship will explode!
This is an example of Asteroids-style motion. The ship moves in straight lines until the engine is turned on and accelerates. When the ship reaches any of the stage boundaries it is repositioned to the opposite side. The ship rotates at ROTATION_SPEED
degrees/second.