Skip to content

Instantly share code, notes, and snippets.

View Coneboy-k's full-sized avatar
🌴
On vacation

Jacksun Coneboy-k

🌴
On vacation
View GitHub Profile
@Coneboy-k
Coneboy-k / .gitignore
Created September 24, 2013 02:33 — forked from adamgit/.gitignore
#########################
# .gitignore file for Xcode4 / OS X Source projects
#
# Version 2.0
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
# 2013 updates:
# - fixed the broken "save personal Schemes"
#
# NB: if you are storing "built" products, this WILL NOT WORK,
@Coneboy-k
Coneboy-k / static lib build script
Created April 19, 2014 07:58
static lib build script support armv7 armv7s arm64 i386 x86_64
#!/bin/bash
#
# This script was inspired by Coneboy_K
#
# 介绍:
# 这个脚本全部自动化编译各指令集静态库后合并。现在支持指令集有armv7 armv7s arm64 i386 x86_64
#
# 使用:
# 首先cd 到xcode工程目录 然后运行 "sh ./build.sh" PS:xcode不能含有xcodebuild的Runscript切记!
#
//
// Created by Damien DeVille on 6/23/13.
// Copyright (c) 2013 Damien DeVille. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <objc/runtime.h>
extern id _objc_setNilReceiver(id newNilReceiver);
@Coneboy-k
Coneboy-k / adHoc
Last active August 29, 2015 14:05
这是发布内部测试或者上传app store 后提取dSYM文件的py脚本。
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__author__ = 'Coneboy_k'
from os import makedirs,listdir
from os import path
import string
import time
#import <objc/runtime.h>
#import <objc/message.h>
#import <libkern/OSAtomic.h>
#import <pthread.h>
#define ITERATIONS (1024*1024*32)
- (void)testLock
{
double then, now;
unsigned int i, count;

Install Python

$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7

Symlinks...

@Coneboy-k
Coneboy-k / judge work overtime
Created November 11, 2014 07:18
加班时间判断
# -*- coding: utf-8 -*-
import xlrd
import os
import time
import datetime
__author__ = 'Coneboy_K'
@Coneboy-k
Coneboy-k / Gitbook 有趣的东西
Last active August 29, 2015 14:09
Gitbook 有趣的东西
[Docker —— 从入门到实践](http://yeasy.gitbooks.io/docker_practice/)
[OpenWrt智能、自动、透明翻墙路由器教程](http://softwaredownload.gitbooks.io/openwrt-fanqiang/)
[Django Girls Tutorial](http://djangogirls.gitbooks.io/djangogirls-tutorial/)
[零基础学Python](http://looly.gitbooks.io/python-basic/)
[github-cheat-sheet](http://snowdream86.gitbooks.io/github-cheat-sheet/)
@Coneboy-k
Coneboy-k / config
Created October 13, 2015 04:41 — forked from jackyzonewen/config
A SVN config file to solve conflicts for XCode project file,such as xcuserdata,Please Copy follow and write into a file named "config",then copy this file into the path " ~/.subversion/ "
### This file configures various client-side behaviors.
###
### The commented-out examples below are intended to demonstrate
### how to use this file.
### Section for authentication and authorization customizations.
[auth]
### Set password stores used by Subversion. They should be
### delimited by spaces or commas. The order of values determines
### the order in which password stores are used.
@Coneboy-k
Coneboy-k / turbo-qiniu.sh
Created November 11, 2015 02:05 — forked from trawor/turbo-qiniu.sh
本脚本解决部分地区七牛上传速度慢的问题
#!/bin/bash
#
# 通过对比 ping 响应时间,找到本机最快的上传ip
# Travis@fir.im
#
function refresh_host()
{
IP="$1"
UPLOAD_HOST="upload.qiniu.com"