Skip to content

Instantly share code, notes, and snippets.

View sustrik's full-sized avatar

Martin Sustrik sustrik

View GitHub Profile
#!/usr/bin/env python3
import glob
from tiles import t, emptyln
from schema import Schema, Optional, Or
# TODO: get rid of this
def trimrect(s):
return ""
/*
Copyright (c) 2018 Martin Sustrik
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"),
to deal in the Software without restriction, including without limitation
the rights to use, copy, modify, merge, publish, distribute, sublicense,
and/or sell copies of the Software, and to permit persons to whom
the Software is furnished to do so, subject to the following conditions:
We couldn’t find that file to show.
#include <assert.h>
#include <stdio.h>
#include <string.h>
#include "../libdill.h"
const char *html =
"<!DOCTYPE html>\n"
"<html>\n"
"<head>\n"
Hi all,
Given that there were no complaints about the latest release candidate I am happy to
announce that a stable version of libmill was released today.
Let me take advantage of the opportunity to summarise once again what the project is all about:
In past quarter of century an unbelievable amount of programmer time and effort was wasted on
writing and debugging multithreaded programs. If I am writing a hotel booking application,
I don't want to write code to implement atomicity or isolation of transactions. Database
#include <stddef.h>
#include <setjmp.h>
#include <stdlib.h>
#include <assert.h>
#include <stdio.h>
/******************************************************************************/
/* The "library" */
/******************************************************************************/
/* Thu Oct 30 06:48:25 +0100 2014:
This file was generated by mill from helloserver.mc */
#include <stdmill.h>
/* This example is a TCP server application that accepts connections and
sends "Hello, world!" to each of them. Afterwards it closes the connection.
Use telnet to connect to it: "telnet 127.0.0.1 7000". */
#include <stdmill.h>
#include <stdmill.h>
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
struct connection
{
struct tcpsocket s;
};
#include <xs.h>
#include <assert.h>
#include <unistd.h>
#include <string.h>
int main ()
{
int rc;
#include <xs.h>
#include <assert.h>
#include <stdio.h>
int main ()
{
void *ctx = xs_init ();
assert (ctx);
int rc = xs_plug (ctx, "/usr/local/lib/libfskeleton.so");
assert (rc == 0);