Skip to content

Instantly share code, notes, and snippets.

@guzba
guzba / tmp.nim
Created January 4, 2023 19:25
willyboar router with context
import mummy, mummy/routers
type
Context* = object
WillyRouter* = object
internal: Router
WillyHandler* = proc(request: Request, context: Context) {.gcsafe.}
Chrome Web Store
Dear Developer,
Your Google Chrome item "Pushbullet" with ID:
chlffgpmiacpedhhbkiomidkjlcfhogd did not comply with our policies.
Your item is still published, but is at risk of being removed from the
Chrome Web Store.
// Put this in app-wide initialization somewhere
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12;
public class Connection
{
private Thread thread;
private volatile bool listening;
private volatile int backoff;