Skip to content

Instantly share code, notes, and snippets.

View zhangxigithub's full-sized avatar

Sid Zhang zhangxigithub

View GitHub Profile
/*
括号里表示一开始输入几个0
0:0(0)
1:1(1)
2:2(2)
3:3(3)
4:4(4)
5:5(5)
6:6(6)
7:9(3)
@zhangxigithub
zhangxigithub / iMessage轰炸
Created April 26, 2013 09:34
iMessage轰炸
tell application "Messages"
repeat 10 times
send "hello" to buddy "对方邮件" of service "E:自己账号"
end repeat
end tell
@zhangxigithub
zhangxigithub / NSURL+ZXURL.h
Created June 21, 2013 06:16
解析NSURL中GET传数值的参数
//
// NSURL+ZXURL.h
// ZXTools
//
// Created by zhangxi on 13-6-21.
// Copyright (c) 2013年 张玺. All rights reserved.
//
/*
demo
@zhangxigithub
zhangxigithub / ZXTools.py
Created June 24, 2013 09:48
install ZXTools
#! /usr/bin/python
import os
import urllib
import shutil
url = 'https://raw.github.com/zhangxigithub/ZXTools/master/ZXTools.podspec'
@zhangxigithub
zhangxigithub / iOS服务器编译生成ipa
Last active December 20, 2015 19:29
iOS服务器编译生成ipa
<?php
/*
need : shenzhen
https://github.com/nomad/shenzhen
Installation:
$ gem install shenzhen
*/
$dir = "/Applications/MAMP/htdocs/mad/project/MADClient";
@zhangxigithub
zhangxigithub / iOS所有的类
Created August 8, 2013 16:17
iOS所有的类
NSMutableDictionary *result = [NSMutableDictionary dictionary];
NSFileManager *manager = [NSFileManager defaultManager];
NSString *root = @"/Users/zhangxi_imac/Desktop/未命名文件夹 2/Frameworks";
NSArray *dirs = [manager contentsOfDirectoryAtPath:root error:nil];
for(NSString *dir in dirs)
@zhangxigithub
zhangxigithub / server.js
Created January 14, 2014 07:44
Node.js 服务器
var http = require("http"),
url = require("url"),
path = require("path"),
fs = require("fs");
http.createServer(function (req, res) {
var pathname=__dirname+url.parse(req.url).pathname;
if (path.extname(pathname)=="") {
pathname+="/";
@zhangxigithub
zhangxigithub / go.html
Created January 27, 2014 09:16
高德添加到首评代码
data:text/html;charset=UTF-8,
<html>
<head>
<meta content="yes" name="apple-mobile-web-app-capable" />
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<title>莱州市</title>
</head>
<body bgcolor="#ffffff">
//
// ZXRemoteNotification.h
// ZXPush
//
// Created by 张玺 on 12-8-13.
// Copyright (c) 2012年 张玺. All rights reserved.
//
#import <Foundation/Foundation.h>
@zhangxigithub
zhangxigithub / copy.swift
Created July 16, 2014 09:48
swift copy
import Cocoa
class Human:NSCopying
{
var name = ".."
var spouse:Human?
func copy() -> AnyObject! {