Skip to content

Instantly share code, notes, and snippets.

View zxm9988's full-sized avatar

XiaoBangqiang zxm9988

View GitHub Profile
git config --global https.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global --unset http.proxy
git config --global --unset https.proxy
npm config delete proxy
#-*-coding=utf-8-*-
import requests
import re
from threading import Thread
import Queue
import time
import random
page=1 #max=79
home='http://91porn.com/video.php?page=%d&category=rf'%1
#!/bin/bash
#
# This script was inspired by Coneboy_K
#
# 介绍:
# 这个脚本全部自动化编译各指令集静态库后合并。现在支持指令集有armv7 armv7s arm64 i386 x86_64
#
# 使用:
# 首先cd 到xcode工程目录 然后运行 "sh ./build.sh" PS:xcode不能含有xcodebuild的Runscript切记!
#
@zxm9988
zxm9988 / gist:10625683
Created April 14, 2014 07:55
NSNull 空值判断
//
// NSString+NULL_CHECK.h
// ZHXCardStore
//
// Created by xbq on 14-4-12.
// Copyright (c) 2014年 zhx. All rights reserved.
//
#import <Foundation/Foundation.h>
@zxm9988
zxm9988 / gist:8346419
Created January 10, 2014 03:14
outScreenView 使父view 响应 屏幕外的子view的点击事件

@interface MyView: UIView @end

@implementation MyView

  • (BOOL)pointInside:(CGPoint)point withEvent:(UIEvent )event { for (UIView view in self.subviews) { if (view.userInteractionEnabled && [view pointInside:[self convertPoint:point toView:view] withEvent:event]) { return YES; }