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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <stdint.h> | |
#include <string.h> | |
void oc_dump(uint8_t *buf, size_t len) | |
{ | |
int i; | |
char *c; | |
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
#!/bin/sh | |
#获取第一个参数,也就是要用于重新签名的IPA名称 | |
OLD_IPA=$1 | |
#获取第二个参数,也就是重新签名之后的IPA名称 | |
NEW_IPA=$2 | |
if [ $# -ne 2 ] | |
then | |
echo "Usage: `basename $0` old.ipa new.ipa" |
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
-- make xcode work on my iPhone | |
filename = arg[1] | |
mycodesign = "iPhone Developer: jie zhao (BF2E4X5CV7)" | |
if not string.find(filename, "project.pbxproj$") then | |
print("Usage: "..arg[0].." project.pbxproj") | |
os.exit(1) | |
end |
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
# -*- 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 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 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 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 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 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 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" |