Skip to content

Instantly share code, notes, and snippets.

View goffrie's full-sized avatar
🥑
avocado

Geoffry Song goffrie

🥑
avocado
  • Convex, formerly Dropbox
  • San Francisco
View GitHub Profile
@goffrie
goffrie / procmacro.rs
Created April 27, 2023 08:35
LoadLibraryExW failed repro
// empty
Winsock Catalog Provider Entry
------------------------------------------------------
Entry Type: Layered Chain Entry
Description: qlsp over [MSAFD Tcpip [TCP/IP]]
Provider ID: {FFCF919C-A5F8-48B7-B1C0-8230524D2871}
Provider Path: C:\Windows\system32\qproxy.dll
Catalog Entry ID: 1045
Version: 2
Address Family: 2
@goffrie
goffrie / 8c-with-fua.txt
Created September 18, 2017 04:22
sheena+mel boards with FUA
8: 8027
HLDLLD
HLLDLL
HLDLDL
HDLDLL
HLLLDL
542462016 http://pad.dawnglare.com/?patt=HLDLLDHLLDLLHLDLDLHDLDLLHLLLDL
HDLLDL
HLLDLL
HLDLDL
@goffrie
goffrie / 5x5-7c
Created September 17, 2017 21:57
5x5 boards with 7c
8: 7
LDLLL
LLDLD
LDLDL
DLDLL
LLLDL
8563330 http://pad.dawnglare.com/?height=5&width=5&patt=LDLLLLLDLDLDLDLDLDLLLLLDL
LDLLD
LLDLL
LDLDL
@goffrie
goffrie / 8c-with-fua.txt
Last active September 18, 2017 04:25
2-colour boards with FUA
10: 8
HDHHDH
HDHDHH
HDHHDD
HHDDHH
HDHHHH
155519904 http://pad.dawnglare.com/?patt=HDHHDHHDHDHHHDHHDDHHDDHHHDHHHH
HDHHDH
HDHHDH
HHDDHH
@goffrie
goffrie / demo-optional-semi.patch
Created April 19, 2017 17:10
Optional semicolons
diff --git a/examples/demo.rs b/examples/demo.rs
index ff14042..2ec627d 100644
--- a/examples/demo.rs
+++ b/examples/demo.rs
@@ -150,9 +150,14 @@ mod parser {
statements[s] => Program { stmts: s }
}
+ optionalSemi: () {
+ => (),
@goffrie
goffrie / patched
Created August 9, 2013 17:30
Benchmarks with/without libuv patch.
uv_shutdown_t: 48 bytes
uv_write_t: 160 bytes
uv_connect_t: 64 bytes
uv_udp_send_t: 184 bytes
uv_tcp_t: 216 bytes
uv_pipe_t: 232 bytes
uv_tty_t: 280 bytes
uv_prepare_t: 88 bytes
uv_check_t: 88 bytes
uv_idle_t: 88 bytes
@goffrie
goffrie / libuv-epoll-bug.js
Last active December 19, 2015 01:49
node.js testcase for a bug in libuv.
var child = require('child_process');
var net = require('net');
var dgram = require('dgram');
// Create a new fd.
var sock = dgram.createSocket('udp4');
sock.bind(4321, function() {
// Send that fd to another process.
// This keeps the file description open,
// even after we close our local fd.