Sebrus

Sebrus is a genus of moths of the family Crambidae.

Sebrus
Scientific classification
Kingdom:
Phylum:
Class:
Order:
Family:
Genus:
Sebrus

Species

gollark: Oh, minoteaur actually has that (not the threading bit) in its Markdown parsing code.
gollark: Thus, praise ~~Rust~~ ~~Ferris~~ Nim?
gollark: It compiles in reasonable time *and* makes a 600KB binary in debug mode which is much nicer than equivalent Rust.
gollark: I only need something like two routes so a full web framework is overkill.
gollark: ```nimimport optionsimport asyncdispatchimport httpximport tiny_sqliteimport macrosimport karax/[karaxdsl, vdom]import ./dbmacro includeFile(x: string): string = newStrLitNode(readFile(x.strVal))const css = includeFile("./src/style.css")let database = openDatabase("./monitoring.sqlite3")migrate(database)var threadDB {.threadvar.}: Option[DbConn]proc openDB(): DbConn = if isNone threadDB: threadDB = some openDatabase("./monitoring.sqlite3") get threadDBproc mainPage(): string = let vnode = buildHtml(html()): head: style: text css text "Bee deployed" $vnodeproc onRequest(req: Request) {.async.} = if req.httpMethod == some(HttpGet): case req.path.get() of "/": req.send(body=mainPage(), code=Http200, headers="Content-Type: text/html") else: req.send(Http404) else: req.send(Http404)echo "Starting up"run(onRequest, initSettings(Port(7800), "", 0))```This is what I have so far.

References

  1. "global Pyraloidea database". Globiz.pyraloidea.org. Retrieved 2011-10-10.


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.