Skip to content

Instantly share code, notes, and snippets.

Avatar

Shengzhi.Chen chenshengzhi

  • Xiamen, Fujian, China
View GitHub Profile
@chenshengzhi
chenshengzhi / NSErrorCodeDefine
Last active Aug 29, 2015
NSError code definition file
View NSErrorCodeDefine
FoundationErrors.h
NSURLError.h
CFNetworkErrors.h
View 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'
View swiftLibrary.txt
Alamofire: HTTP网络库
Surge: 基于Accelerate框架开发,用于执行矩阵数学、数字信号处理以及图像处理等方面
SwiftyJSON: 解析JSON
Dollar: 了有用的函数式编程辅助方法
ExSwift: 标准类型和类的扩展
SwiftTask: 状态机
Haneke: 轻量级iOS通用缓存
Cartography: Swift声明Auto Layout
XCGLogger: log
@chenshengzhi
chenshengzhi / macHideDockParameters.sh
Created Nov 5, 2015
mac dock 自动隐藏延迟设置
View macHideDockParameters.sh
//不延迟
defaults write com.apple.Dock autohide-delay -float 0 && killall Dock
//恢复默认
defaults delete com.apple.Dock autohide-delay && killall Dock
View hostsInstall
#!/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 Feb 15, 2016
install Update Xcode Plugins
View installUpdateXcodePlugins
#!/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' \
View .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.
View .vimrc
set nocompatible
set enc=utf-8
set history=500
filetype plugin indent on
set autoindent
set smartindent
@chenshengzhi
chenshengzhi / XcodeCustomKeyBinding.plist
Last active Jun 27, 2016
Xcode duplicate and delete line
View XcodeCustomKeyBinding.plist
<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>
You can’t perform that action at this time.