Skip to content

Commit 6cf820b

Browse files
committed
bahJ
1 parent f92f52b commit 6cf820b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

v5-unity/js/opt-live.ts

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,19 @@
1616
- get shared sessions working here after refactoring ... it kinda almost
1717
works right now
1818
19-
- raw_input doesn't work properly if you preload a URL with rawInputLstJSON
19+
- look into interactions between parseQueryString for pre-loaded URLs
20+
and the auto-re-execution feature, ergh ...
21+
22+
- ERGH if you preload with curInstr, it jumps to the end since it
23+
executes multiple times at the beginning, ERGH!
24+
25+
http://localhost:8003/live.html#code=%23%20Higher-order%20functions%0A%23%20Adapted%20from%20MIT%206.01%20course%20notes%20(Section%20A.2.2%29%0A%23%20http%3A//mit.edu/6.01/mercurial/spring10/www/handouts/readings.pdf%0A%0Adef%20summation(low,%20high,%20f,%20%20next%29%3A%0A%20%20%20%20s%20%3D%200%0A%20%20%20%20x%20%3D%20low%0A%20%20%20%20while%20x%20%3C%3D%20high%3A%0A%20%20%20%20%20%20%20%20s%20%3D%20s%20%2B%20f(x%29%0A%20%20%20%20%20%20%20%20x%20%3D%20next(x%29%0A%20%20%20%20return%20s%0A%0Adef%20sumsquares(low,%20%20high%29%3A%0A%20%20%20%20return%20summation(low,%20high,%20lambda%20x%3A%20x**2,%20lambda%20x%3A%20x%2B1%29%0A%0Aprint(sumsquares(1,%20%2010%29%29&cumulative=false&curInstr=69&heapPrimitives=false&mode=display&origin=opt-live.js&py=2&rawInputLstJSON=%5B%5D&textReferences=false
26+
27+
- raw_input doesn't work properly if you preload a URL with rawInputLstJSON
2028
2129
http://localhost:8003/live.html#code=x%20%3D%20%22Enter%20your%20name%3A%20%22%0Ay%20%3D%20raw_input(x%29%0Aprint%20%22Hello%22,%20y%0Az%20%3D%20raw_input(y%20%2B%20%22%20-%3E%20%22%29%0Aprint%20z&cumulative=false&curInstr=5&heapPrimitives=false&mode=display&origin=opt-live.js&py=2&rawInputLstJSON=%5B%22hello%22,%22world%22%5D&textReferences=false
2230
31+
2332
- abstract out components within pytutor.js to prevent ugly code
2433
duplication with stuff in this file
2534

0 commit comments

Comments
 (0)