Skip to content

Instantly share code, notes, and snippets.

View chenshengzhi's full-sized avatar

Neil chenshengzhi

  • Xiamen, Fujian, China
View GitHub Profile
@chenshengzhi
chenshengzhi / swift中的下划线(_)用法.swift
Last active October 1, 2016 06:11
swift中的下划线(_)用法
//if循环中, 替代变量名来忽略对值的访问
let base = 3
let power = 10
var answer = 1
for _ in 1...power {
answer *= base
}
print("\(base) to the power of \(power) is \(answer)")
@chenshengzhi
chenshengzhi / swiftLibrary.txt
Last active November 2, 2015 03:40
swiftLibrary
Alamofire: HTTP网络库
Surge: 基于Accelerate框架开发,用于执行矩阵数学、数字信号处理以及图像处理等方面
SwiftyJSON: 解析JSON
Dollar: 了有用的函数式编程辅助方法
ExSwift: 标准类型和类的扩展
SwiftTask: 状态机
Haneke: 轻量级iOS通用缓存
Cartography: Swift声明Auto Layout
XCGLogger: log
@chenshengzhi
chenshengzhi / .vimrc
Last active February 17, 2016 03:56
.vimrc
set nocompatible
set enc=utf-8
set history=500
filetype plugin indent on
set autoindent
set smartindent
@chenshengzhi
chenshengzhi / installUpdateXcodePlugins
Last active February 15, 2016 09:04
install Update Xcode Plugins
#!/bin/bash
########### 要安装的URL列表############
plugins=(\
'https://github.com/onevcat/VVDocumenter-Xcode' \
'https://github.com/FuzzyAutocomplete/FuzzyAutocompletePlugin' \
'https://github.com/markohlebar/Peckham' \
'https://github.com/trawor/XToDo' \
'https://github.com/omz/ColorSense-for-Xcode' \
'https://github.com/dhcdht/DXXcodeConsoleUnicodePlugin' \
@chenshengzhi
chenshengzhi / sublimeText3.md
Last active February 7, 2019 11:17
sublime text 3

sublime text 3:

1.plugins  
2.C build  
3.keymap  
4.preferences  
5.OS X command line tool  
6.header omment snippet  
@chenshengzhi
chenshengzhi / Podfile
Last active August 29, 2015 14:24
my Podfile
platform :ios, '7.0'
pod 'MJExtension', '~> 2.3.6'
pod 'BKECircularProgressView', '~> 0.2'
pod 'SZTextView', '~> 1.2.1'
pod 'HZActivityIndicatorView', '~> 0.0.1'
pod 'FXNotifications', '~> 1.1'
pod 'JSBadgeView', '~> 1.4.1'
pod 'SDWebImage', '~> 3.7.2'
pod 'AFNetworking', '~> 2.5.4'
@chenshengzhi
chenshengzhi / hostsInstall
Last active February 12, 2016 14:09
hosts and dns
#!/bin/bash
wget https://raw.githubusercontent.com/racaljk/hosts/master/hosts -O ~/hosts
sed -i '' 's/# Modify hosts start/#user define\
\#127.0.0.1 localhost\
#127.0.0.1 localhost\
\
# Modify hosts start/g' ~/hosts
sudo mv ~/hosts /etc/hosts
@chenshengzhi
chenshengzhi / NSErrorCodeDefine
Last active August 29, 2015 14:22
NSError code definition file
FoundationErrors.h
NSURLError.h
CFNetworkErrors.h