Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
pondering the existence of this feature

Erin erincandescent

💭
pondering the existence of this feature
View GitHub Profile
View udirect.h
#ifndef UDIRECT_H
#define UDIRECT_H
#if !defined(UDIRECT_VERSION)
#error UDIRECT_VERSION must be defined(supported: 0x000)
#elif (UDIRECT_VERSION != 0x000)
#error Unsupported UDIRECT_VERSION
#endif
#ifndef _UDI_H
View gist:9f37fd3452217b905897
_PUBLIC_ verbs and incidences, from the Pump.io firehose
N.B. this is an incomplete sample - most non-post verbs will be sent to "followers" the majority of the time
post 14116
update 916
like 1053
favorite 1629
create 847
share 17
delete 228
View gist:a10f6763fe750fbc528c
_CBPRINTF(3) Library Functions Manual _CBPRINTF(3)
NAME
_cbprintf, _vcbprintf, _cbwprintf, _vcbwprintf -- formatted output
conversion by callback
SYNOPSIS
#include <stdio.h>
int _cbprintf(void *p,
@erincandescent
erincandescent / gist:bed98cbdd3fc39ed0d53
Created Aug 11, 2014
OK mandoc, how'd that happen?
View gist:bed98cbdd3fc39ed0d53
_cbprintf(3) Library Functions Manual _cbprintf(3)
NNAAMMEE
__ccbbpprriinnttff, __vvccbbpprriinnttff, __ccbbwwpprriinnttff, __vvccbbwwpprriinnttff -- formatted output
conversion by callback
SSYYNNOOPPSSIISS
##iinncclluuddee <<ssttddiioo..hh>>
iinntt __ccbbpprriinnttff(_v_o_i_d _*_p, _i_n_t _(_*_c_b_)_(_v_o_i_d _*_p_, _c_o_n_s_t _c_h_a_r _*_b_u_f_, _i_n_t _s_i_z_e_),
View gist:8c879449b3a55316cd73
{
"preferredUsername": "oshepherd",
"url": "https://microca.st/oshepherd",
"displayName": "Owen Shepherd",
"links": {
"self": {
"href": "https://microca.st/api/user/oshepherd/profile"
},
"activity-inbox": {
"href": "https://microca.st/api/user/oshepherd/inbox"
View gist:6dc89082e878d53ea402
/* threads.h -- header for threads library */
#pragma once
#ifndef _THR_THREADS_H
#define _THR_THREADS_H
#ifndef RC_INVOKED
#include <thr/xthreads.h>
#pragma pack(push,_CRT_PACKING)
#pragma warning(push,3)
#pragma push_macro("new")
View gist:3c511de2f82c77c5f629
$ git rebase ad23f89
First, rewinding head to replay your work on top of it...
': not a valid identifiertext.sh: line 88: export: `FIRSTLINE
Applying:
': not a valid identifiertext.sh: line 88: export: `FIRSTLINE
Applying:
': not a valid identifiertext.sh: line 88: export: `FIRSTLINE
Applying:
': not a valid identifiertext.sh: line 88: export: `FIRSTLINE
Applying:
View gist:09b058a1072e3fc19706
oshepherd@Asuka ~/elfload
$ uname -a
CYGWIN_NT-6.1 Asuka 1.7.32(0.274/5/3) 2014-08-13 23:06 x86_64 Cygwin
oshepherd@Asuka ~/elfload
$ cat hi.c
void _start(int (*puts)(const char *s))
{
puts("Hello, world!");
}
View gist:27590f2cfc0260f79cd3
Trying ::1...
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
NOTICE: Booting Trusted Firmware
NOTICE: BL1: v1.0(debug):8e0bbcb
NOTICE: BL1: Built : 23:11:31, Oct 3 2014
INFO: BL1: RAM 0x4039000 - 0x403c000
WARNING: Firmware Image Package header check failed.
INFO: Loading file 'bl2.bin' at address 0x4016000
View gist:901c3292bc8cf253d153
Local<CallExpression> Parser::parseFunctionCall(Handle<Expression> func)
{
LocalScope<3> ls;
Local<CallExpression> call(new CallExpression(func));
consume(Token::OpenParen);
for (;;) {
ls.resetPreserving(&call);
Local<Expression> param;
if (!(param = parseExpression(operatorPrecedence(Token::Comma) + 1)))