This file contains 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
#! /usr/bin/python | |
GLA_IDENT = b"2LGA" | |
GLA_VERSION = 6 | |
import struct | |
class MdxaHeader: | |
def __init__( self ): |
This file contains 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 asynchttpserver, asyncdispatch | |
from strformat import `&` | |
proc main() = | |
let local = "123" | |
proc serveIndex(req: Request) {.async, gcsafe.} = | |
await req.respond(Http200, &"{local}") | |
proc serve404(req: Request) {.async, gcsafe.} = |
This file contains 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 asynchttpserver, asyncdispatch | |
from strformat import `&` | |
let name = "Willi" | |
proc serveIndex(req: Request) {.async.} = | |
await req.respond(Http200, &"hello {name}") | |
let server = newAsyncHttpServer() | |
discard server.serve(Port(8080), serveIndex, address = "127.0.0.1") |
This file contains 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
type | |
Boolable = concept x | |
if x: discard | |
Bool = concept x | |
x is bool | |
when isMainModule: | |
type MyInt = distinct int | |
converter toBool(x: MyInt): bool = int(x) != 0 | |
doAssert(MyInt is Boolable) |
This file contains 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
in Visual Studio Code with https://play.nim-lang.org/?gist=e609c6c728d4cbf8751f0cf618d4df0e I got these errors: | |
type mismatch: got <int64> but expected 'bool' | |
type mismatch: got <Flags, set[range 0..65535(int)]> | |
but expected one of: | |
proc `==`(x, y: int32): bool | |
first type mismatch at position: 1 | |
required type: int32 |
This file contains 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
for i = 1, 20 do | |
print("Hello main thread world! " .. counter) | |
counter = counter + 1; | |
end |
This file contains 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 socket, signal, sys | |
nickname = "TopicBot" | |
server = "irc.arloria.net" | |
port = 6667 | |
channel = "#jacoders" | |
blacklist = { "ghbot" } | |
RPL_WELCOME = "001" | |
RPL_TOPIC = "332" |
This file contains 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 willitests; | |
import static org.hamcrest.CoreMatchers.equalTo; | |
import static org.hamcrest.CoreMatchers.not; | |
import static org.junit.Assert.*; | |
import lab.employees.Biochemist; | |
import org.junit.Test; | |
public class BiochemistTest { |
This file contains 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 socket, signal, sys | |
nickname = "TopicBot" | |
server = "irc.arloria.net" | |
port = 6667 | |
channel = "#jacoders" | |
blacklist = { "ghbot" } | |
RPL_WELCOME = "001" | |
RPL_TOPIC = "332" |
This file contains 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
models/chunks/metal/vjun_metal1_1.md3 | |
models/chunks/metal/vjun_metal1_2.md3 | |
models/chunks/metal/vjun_metal1_3.md3 | |
models/chunks/metal/vjun_metal1_4.md3 | |
models/chunks/metal/vjun_metal2_1.md3 | |
models/chunks/metal/vjun_metal2_2.md3 | |
models/chunks/metal/vjun_metal2_3.md3 | |
models/chunks/metal/vjun_metal2_4.md3 | |
models/items/bacta.md3 | |
models/items/psd_big.md3 |
NewerOlder