Skip to content

Instantly share code, notes, and snippets.

View orlp's full-sized avatar
⚠️
This user's social credit score is unknown.

Orson Peters orlp

⚠️
This user's social credit score is unknown.
  • Leiden, Netherlands
View GitHub Profile
#include <iostream>
#include <fstream>
#include <vector>
#include <string>
#include <chrono>
#include <memory>
#include <cstdlib>
#include "splay_tree.h"
#include "avl_tree.h"
@orlp
orlp / gist:1361232
Created November 12, 2011 22:37 — forked from Orpheon/gist:1361229
CC=gcc
CFLAGS=-O3 -Wall -std=c99
LIBS=-s
main.exe: main.o
${CC} -o main.exe main.o ${LIBS}
main.o: main.c
${CC} ${CFLAGS} -c -o main.o main.c
@orlp
orlp / chat.lua
Created December 16, 2010 22:36 — forked from anonymous/chat.lua
local addmsg = ChatFrame1.AddMessage
local function hook(frame, text, ...)
if text:find(gsub(ERR_AUCTION_SOLD_S,'%%s', '')) then -- "A buyer has been found for your auction of %s."
local itemname = text:match(gsub(ERR_AUCTION_SOLD_S, '%%s', '(.+)'))
text = "|cffef4341"..BUTTON_LAG_AUCTIONHOUSE.."|r - |cffBCD8FF"..ITEM_SOLD_COLON.."|r "
local _, solditem = GetItemInfo(itemname)
if solditem then
text = text..solditem
else
text = text..itemname