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
| package internal | |
| import ( | |
| "fmt" | |
| "slices" | |
| ) | |
| type LoopForm struct { | |
| Begin []Instruction | |
| Loop []Instruction // nil ⇒ no loop |
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
| ; Route206 | |
| ; generated by mml2pret.py on 2024-04-10 17:26:58 | |
| Music_Route206: | |
| ; G/S/C header | |
| channel_count 4 | |
| channel 1, Music_Route206_Ch1 | |
| channel 2, Music_Route206_Ch2 | |
| channel 3, Music_Route206_Ch3 |
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
| proc b(x: ptr seq[int]): auto = | |
| proc a(): seq[int] = | |
| x[].add(10) | |
| return x[] | |
| a | |
| proc ax(): auto = | |
| # allocate a sequence manually | |
| # will be GC'd at the first opportunity | |
| var k = @[1, 2, 3] |
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
| proc route(reqType: string, path: string): void = | |
| proc notFound( | |
| reqType: string, pathOnly: string, getParams: string, pathParams: StringTableRef | |
| ): void = | |
| stderr.writeLine "default" | |
| proc methodNotAllowed( | |
| reqType: string, pathOnly: string, getParams: string, pathParams: StringTableRef | |
| ): void = | |
| stderr.writeLine "method not allowed" |
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
| ##[ | |
| An extremely basic BBcode parser | |
| Not quite ready for the works. | |
| Will turn into a package later | |
| Supports no parameters yet. | |
| 2 blank lines = 1 manual line break | |
| 3 blank lines = 2 manual line break |
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
| import std/random | |
| import std/strutils | |
| import std/httpclient | |
| import std/monotimes | |
| import std/cmdline | |
| import malebolgia | |
| import malebolgia/ticketlocks | |
| proc toThreeString(i: int): string = i.toHex(3).toLowerAscii() |
NewerOlder