Skip to content

Instantly share code, notes, and snippets.

View PoemCode's full-sized avatar

Harvey Xu PoemCode

View GitHub Profile
@PoemCode
PoemCode / private.xml
Created April 23, 2018 08:22 — forked from beta/private.xml
My Karabiner private configurations for ikbc Poker II.
<?xml version="1.0"?>
<root>
<item>
<name>Directions</name>
<identifier>private.directions</identifier>
<autogen>
__KeyToKey__
KeyCode::I, ModifierFlag::CONTROL_L | ModifierFlag::COMMAND_L,
KeyCode::CURSOR_UP
</autogen>
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
import re
import codecs
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford ([email protected])
# The author disclaims copyright to this source code.
import sys
import struct
import socket
import time
import select
@PoemCode
PoemCode / sort.cc
Created May 13, 2012 03:23 — forked from chenshuo/sort.cc
Sort 1GB integers
#include <algorithm>
#include <vector>
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
double getTime()
{
struct timeval tv;
gettimeofday(&tv, NULL);