Skip to content

Instantly share code, notes, and snippets.

View robn's full-sized avatar
🤖
robots just like mama used to make

Rob N robn

🤖
robots just like mama used to make
View GitHub Profile
@robn
robn / fontstash-linux.diff
Created May 15, 2011 23:30
Patch to get Font Stash running on Linux
diff -U3 -r fontstash/fontstash.c fontstash-linux/fontstash.c
--- fontstash/fontstash.c 2009-08-27 22:03:44.000000000 +1000
+++ fontstash-linux/fontstash.c 2011-05-16 09:26:23.000000000 +1000
@@ -20,7 +20,7 @@
#include <stdlib.h>
#include <string.h>
-#include <OpenGL/gl.h>
+#include <GL/gl.h>
@robn
robn / gist:4042883
Created November 9, 2012 00:22
Scrape Cricinfo live commentary stream, output to IRC
#!/usr/bin/env perl
use 5.016;
use warnings;
use strict;
use AnyEvent;
use AnyEvent::IRC::Client;
use AnyEvent::HTTP;
use HTML::TreeBuilder 5 -weak;
@robn
robn / otfile
Created September 30, 2013 01:57
Serve a file with a unique URL, then shut down.
#!/usr/bin/env perl
use 5.010;
use warnings;
use strict;
my @preferred_interfaces = qw(wlan0 eth0);
my $port = 5238;
@robn
robn / consulcheck.pl
Created October 30, 2014 06:17
Consul two-stage check prototype
#!/usr/bin/env perl
use 5.014;
use warnings;
use strict;
use Consul;
use Sys::Hostname;
use Try::Tiny;
@robn
robn / UNKNOWN.0.txt
Created June 21, 2015 02:26
TIS-100 secret level solution
@0
@1
MOV 0, ACC
SAV
MOV UP, ACC
JLZ OUT
ADD 10
SUB 30
@robn
robn / clutter-image.pl
Created September 15, 2015 11:28
Clutter-perl gravity transition test (port of clutter image-content sample)
#!/usr/bin/env perl
use 5.020;
use warnings;
use strict;
use Clutter;
use Imager;
my @gravities = qw(
@robn
robn / crc32-kernel.c
Created October 14, 2015 04:17
crc32 using Linux AF_ALG interface. pros: works on all Linux since 2.6. cons: context switch overhead will destroy you :(
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/socket.h>
#include <linux/if_alg.h>
#include <sys/param.h>
#include <string.h>
#include <strings.h>
@robn
robn / crc32-kernel.c
Created October 14, 2015 21:23
crc32 using Linux AF_ALG
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>
#include <sys/socket.h>
#include <linux/if_alg.h>
#include <sys/param.h>
#include <string.h>
#include <strings.h>
package ME::Bort::Plugin::Remote;
use 5.014;
use warnings;
use strict;
use Twiggy::Server;
use Atto qw(hello);
my $Server;

The JMAP Test Suite

JMAP! Does it work?

If you've been a regular follower of the FastMail blog, you've heard of JMAP. If you haven't, go check out that link. You'll get to see Neil and Bron telling you why it's cool. If you're really into the idea, you might also like reading the spec, which is quite easy to read and presented in soothing FastMail Blue.