This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import time | |
import struct | |
from zio import * | |
io = zio(('localhost', 1234)) | |
timeout = 1000 * 1000 | |
buf = 0x0804a10c | |
recv_addr = 0x080489e6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* $File: c.cc | |
* $Date: Fri Jul 10 15:00:27 2015 +0800 | |
* $Author: Xiaoyu Liu <i[at]vuryleo[dot]com> | |
*/ | |
#include <iostream> | |
#include <memory> | |
#include <vector> | |
#include <map> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# $File: downloadIITC.py | |
# $Date: Thu Sep 24 11:28:10 2015 +0200 | |
# $Author: Xiaoyu Liu <i[at]vuryleo[dot]com> | |
import requests | |
from bs4 import BeautifulSoup | |
import os |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
def shiftL(l, s): | |
return l[s:] + l[:s] | |
def getDiff(li, totalLen): | |
if len(li) < 2: | |
raise Exception('toooo short') | |
li.append(totalLen + li[0]) |
OlderNewer