This file contains hidden or 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
# -*- coding:utf-8 -*- | |
from pydbg import * | |
from pydbg.defines import * | |
import os | |
import sys | |
__author__ = 'fengxing <anndiy(at)gmail.com>' | |
__date__ = '2012-9-28' | |
def handler_MapViewOfFile(dbg): |
This file contains hidden or 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
# -*- coding: utf8 -*- | |
# author: [annidy](http://blog.csdn.net/ani_di) | |
# date: 2013.3.15 | |
# | |
# 有道单词本转换为金山单词本 | |
# | |
from __future__ import print_function | |
from xml.dom import minidom | |
import getopt, sys |
This file contains hidden or 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
#include <stdio.h> | |
#include <string.h> | |
#include <lua.h> | |
#include <lauxlib.h> | |
#include <lualib.h> | |
#include <time.h> | |
#include <Windows.h> | |
int load(lua_State* L, const char* func, unsigned int* utc) { | |
lua_getglobal(L, func); |
This file contains hidden or 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
# Very alpha still, but getting there... | |
# Yeah, I like it this way | |
require 'pp' | |
require 'set' | |
require 'zlib' | |
require 'base64' | |
require 'socket' | |
require 'openssl' | |
require 'stringio' |
This file contains hidden or 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
function varint_decode(...) | |
t = 0 | |
l = 0 | |
for _, i in ipairs{...} do | |
t = t*128 + bit32.extract(i, 0, 7) | |
l = l + 1 | |
if bit32.btest(i, 7) == false then | |
break | |
end | |
end |
This file contains hidden or 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/python | |
import os | |
import sys | |
import struct | |
ifp = sys.stdin | |
pngcount = 0 | |
filename = "" | |
def findstart(): |
This file contains hidden or 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
# Objective-C most watched repositories | |
[link](https://github.com/languages/Objective-C/most_watched) | |
* [three20](https://github.com/facebook/three20) | |
**faebook的320库** | |
* [AFNetworking](https://github.com/AFNetworking/AFNetworking) | |
**网络库** |
This file contains hidden or 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
NSDate *date = [NSDate date]; | |
NSCalendar *calendar = [NSCalendar currentCalendar]; | |
NSDateComponents *comps; | |
// 年月日获得 | |
comps = [calendar components:(NSYearCalendarUnit | NSMonthCalendarUnit | NSDayCalendarUnit) | |
fromDate:date]; | |
NSInteger year = [comps year]; | |
NSInteger month = [comps month]; | |
NSInteger day = [comps day]; |
This file contains hidden or 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
# http://lua-users.org/wiki/BuildingModules | |
TARGET = "mytest.so" | |
all: | |
gcc -c *.c | |
gcc -bundle -undefined dynamic_lookup *.o -o $(TARGET) | |
.PHONY : all |
This file contains hidden or 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
// | |
// AssetSource.m | |
// CameraWathcher | |
// | |
// Created by FengXing on 13-9-9. | |
// Copyright (c) 2013年 FengXing. All rights reserved. | |
// | |
#import "AssetSource.h" |
OlderNewer