This file contains hidden or 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
| trait Person { | |
| fn greeting(&self) -> StateOfMind; | |
| fn name(&self) -> &'static str; | |
| } | |
| struct Ixi { } | |
| struct Katie { } | |
| #[derive(Debug)] | |
| enum StateOfMind { |
This file contains hidden or 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
| puts "1" | |
| require "curses" | |
| include Curses | |
| include Math | |
| def pong | |
| # ALL THIS NEEDS TO BE DISPLAYED SOMEHOW | |
| # show “CONTROL THE PADDLE WITH THE W AND S KEYS” in the middle of the board for a few seconds | |
| score = 0 | |
| scof = 1.0 | |
| paddle = 50.0 # max y-coordinate/2, making the board 100x100 for now |
This file contains hidden or 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
| $.getScript("https://rawgit.com/gilmoreorless/jquery-nearest/master/src/jquery.nearest.min.js"); | |
| $("#stdKeyboard").hide() | |
| $("#stenoKeyboard").css({ | |
| width: "95%", | |
| height: "50%", | |
| left: "1%" | |
| }); | |
| function sendKey(keyDiv, dir) { | |
| var e = $.Event(dir); |