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/env python3 | |
import glob | |
from tiles import t, emptyln | |
from schema import Schema, Optional, Or | |
# TODO: get rid of this | |
def trimrect(s): | |
return "" |
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
/* | |
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: |
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
#include <assert.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include "../libdill.h" | |
const char *html = | |
"<!DOCTYPE html>\n" | |
"<html>\n" | |
"<head>\n" |
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
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 |
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
#include <stddef.h> | |
#include <setjmp.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <stdio.h> | |
/******************************************************************************/ | |
/* The "library" */ | |
/******************************************************************************/ |
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
/* 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> |
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
#include <stdmill.h> | |
#include <assert.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdio.h> | |
struct connection | |
{ | |
struct tcpsocket s; | |
}; |
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
#include <xs.h> | |
#include <assert.h> | |
#include <unistd.h> | |
#include <string.h> | |
int main () | |
{ | |
int rc; |
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
#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); |
NewerOlder