Streamed from the model on this machine. The badge API prompt goes with the brief.
The cloud key stays on the same-origin proxy. The browser never sees it.
import app
class LanternPulse(app.App):
def setup(self):
self.level = 0
self.up = True
def frame(self):
if self.up:
self.level += 1
else:
self.level -= 1
if self.level in (0, 8):
self.up = not self.up
self.lights(self.level)
def on_centre(self):
self.setup()
Last session kept in this browser. Generate replaces it.
Traceback (most recent call last): File "hex_bounce.py", line 2, in module ImportError: no module named 'imu'
The second pass may change only the failing line.
No file pushed this session. Generate on the editor first.
Pushed hex_bounce.py. The lamp nearest the ball is lit. Centre returns it to the middle.