Skip to content

Instantly share code, notes, and snippets.

View annidy's full-sized avatar
💭
I may be slow to respond.

fengxing annidy

💭
I may be slow to respond.
View GitHub Profile
#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;
@annidy
annidy / resing.sh
Created September 4, 2014 11:36
ipa重新签名
#!/bin/sh
#获取第一个参数,也就是要用于重新签名的IPA名称
OLD_IPA=$1
#获取第二个参数,也就是重新签名之后的IPA名称
NEW_IPA=$2
if [ $# -ne 2 ]
then
echo "Usage: `basename $0` old.ipa new.ipa"
@annidy
annidy / xcode.lua
Last active November 25, 2015 07:03
-- 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
@annidy
annidy / y2k_words.py
Last active December 14, 2015 23:39
有道单词本转换为金山单词本
# -*- 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
@annidy
annidy / nettime.lua
Last active December 19, 2015 17:39
Lua网络校时
#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);
# 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'
@annidy
annidy / png_hunter.py
Last active December 20, 2015 13:19
png资源提取器
#!/usr/bin/python
import os
import sys
import struct
ifp = sys.stdin
pngcount = 0
filename = ""
def findstart():
# 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)
**网络库**
@annidy
annidy / makefile
Last active December 21, 2015 15:39
lua扩展一般makefile
# http://lua-users.org/wiki/BuildingModules
TARGET = "mytest.so"
all:
gcc -c *.c
gcc -bundle -undefined dynamic_lookup *.o -o $(TARGET)
.PHONY : all
@annidy
annidy / AssetSource.m
Last active December 22, 2015 17:08
监视相册变化
//
// AssetSource.m
// CameraWathcher
//
// Created by FengXing on 13-9-9.
// Copyright (c) 2013年 FengXing. All rights reserved.
//
#import "AssetSource.h"