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 / NSErrorCodeDefine
Last active August 29, 2015 14:22
NSError code definition file
FoundationErrors.h
NSURLError.h
CFNetworkErrors.h
@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 / 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 / macHideDockParameters.sh
Created November 5, 2015 00:58
mac dock 自动隐藏延迟设置
//不延迟
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
//恢复默认
defaults delete com.apple.Dock autohide-delay && killall Dock
@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 / 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 / .zshrc
Last active February 17, 2016 03:32
.zshrc
# Path to your oh-my-zsh installation.
export ZSH=~/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Uncomment the following line to use case-sensitive completion.
@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 / XcodeCustomKeyBinding.plist
Last active June 27, 2016 05:39
Xcode duplicate and delete line
<key>Custom</key>
<dict>
<key>Delete Current Line</key>
<string>selectLine:, deleteBackward:</string>
<key>Duplicate Current Line</key>
<string>selectLine:, copy:, moveToEndOfLine:, insertNewline:, paste:, deleteBackward:</string>
</dict>
Atom Settings