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
class Window(x: Int, y: Int, visible: Boolean = false) | |
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
struct Window { | |
x: u16, | |
y: u16, | |
visible: bool, | |
} | |
impl Window { | |
fn new_with_visibility(x: u16, y: u16, visible: bool) -> Self { | |
Window { | |
x, y, visible |
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
;CHROME REVENGE by Abaddon | |
;the DOS 1k intro for Assembly 2020 | |
;code: TomCat | |
;music: ern0 | |
maxvol EQU 0 | |
times EQU 0 | |
Divider EQU 68 |
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
; Test access to the memory card ($D000 and above). | |
; This is an adaptation of Zellyn's a2audit tests made to be run headlessly: https://github.com/zellyn/a2audit | |
; If the tests succed, $3D contains the number of successful tests | |
; If a test fails, the code lands on a BRK, $3D contains the number of passed tests, | |
; and Y is the index of the comparison that failed (1-5) | |
; | |
; Cedric Beust, [email protected], 9/17/2020 | |
; | |
D1 := $d17b |
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
~/kotlin/kobalt $ k assemble | |
__ __ __ __ __ | |
/ //_/ ____ / /_ ____ _ / / / /_ | |
/ ,< / __ \ / __ \ / __ `/ / / / __/ | |
/ /| | / /_/ / / /_/ // /_/ / / / / /_ | |
/_/ |_| \____/ /_.___/ \__,_/ /_/ \__/ 1.0.93 | |
Regular compilation time: 2459 ms | |
Parallel build starting | |
╔═════════════════════════╗ |
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
~/kotlin/kobalt $ k assemble | |
__ __ __ __ __ | |
/ //_/ ____ / /_ ____ _ / / / /_ | |
/ ,< / __ \ / __ \ / __ `/ / / / __/ | |
/ /| | / /_/ / / /_/ // /_/ / / / / /_ | |
/_/ |_| \____/ /_.___/ \__,_/ /_/ \__/ 1.0.93 | |
Regular compilation time: 2459 ms | |
Parallel build starting | |
╔═════════════════════════╗ |
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
Root | |
A | |
A1 | |
A2 | |
A3 | |
B | |
B1 | |
B2 | |
B21 |
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
A | |
A1 | |
A2 | |
1 | |
11 | |
12 |
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
class Tree(val payload: Int, val leaves: List<Tree>) |
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
displayGraphGeneric(graph, Node::children, Node::value) | |
displayGraphGeneric(tree, Tree::leaves, Tree::payload) |