Skip to content

Instantly share code, notes, and snippets.

View Jesse-V's full-sized avatar

Jesse Victors Jesse-V

View GitHub Profile
@errzey
errzey / gist:472ac7c6c6f3ca09ca94
Created April 12, 2015 17:34
psuedocode for kernelcorn
struct query {
struct event * r_pipe_ev;
int r_pipe; /* response pipe */
int q_pipe; /* query pipe */
int response[256];
};
static void
read_response(int sock, short events, void * arg) {
struct query * q = (struct query *)arg;
@trepmal
trepmal / xkcd-ombed.php
Created November 19, 2012 20:58
[WordPress] faux-Embed support for xkcd comics
<?php
/*
Plugin Name: xkcd oEmbed
Description: faux-Embed support for xkcd comics
*/
$xkcd_oembed = new xkcd_oEmbed();
class xkcd_oEmbed {