blog.coding4life.org
vim | 西门闲话
https://blog.coding4life.org/archives/tag/vim
1 vundle [ https:/ github.com/gmarik/Vundle.vim. 2 Powerline [ https:/ github.com/Lokaltog/vim-powerline. 字体下载看这里:[ https:/ github.com/Lokaltog/powerline-fonts. 我是邪恶的分割线= = = = = = = =. General " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "Get OS Version function! MySys() return "linux" "return "win32" endfunction "Get Os Language function! MyLang() return "chs" "return "jpn" endfunction. Linux和windows使用 leader e 快速打开配置文件。 Vimrc cr "When .vimrc is edited, reload it(Fo *nux) autocmd!
blog.coding4life.org
定义Property时的那些属性 | 西门闲话
https://blog.coding4life.org/archives/152
通常声明property的似乎,都是这3种组合 @property (nonatomic, strong) NSMutableArray *array; @property (nonatomic, copy) NSString *iconName; @property (nonatomic, assign) BOOL shouldRemind; / 但是在声明storybord的UI控件的Outlet时,也会用这种组合 @property (nonatomic, weak) IBOutlet UITextField *textField;. Void) setPropertyNewName:(NSString *)propertyNewName { / assign是大概这个样子的。 PropertyNewName = propertyNewName }. Void) setPropertyNewName:(NSString *)propertyNewName { / copy是大概这个样子的。 在ubuntu上从零搭建node.js nginx mongodb环境 →. For more help s...
blog.coding4life.org
vim之路 ep01 | 西门闲话
https://blog.coding4life.org/archives/54
我是邪恶的分割线= = = = = = = =. General " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "Get OS Version function! MySys() return "linux" "return "win32" endfunction "Get Os Language function! MyLang() return "chs" "return "jpn" endfunction. Linux和windows使用 leader e 快速打开配置文件。 Bufwritepost .vimrc source $VIM vimrc elseif MySys() = "linux" "Fast reloading of the .vimrc(For *nux) map leader s :source /.vimrc cr "Fast editing of .vimrc(For *nux) map leader e :e! Fast reloading of the vimrc. This will...
blog.coding4life.org
iOS | 西门闲话
https://blog.coding4life.org/archives/tag/ios
通常声明property的似乎,都是这3种组合 @property (nonatomic, strong) NSMutableArray *array; @property (nonatomic, copy) NSString *iconName; @property (nonatomic, assign) BOOL shouldRemind; / 但是在声明storybord的UI控件的Outlet时,也会用这种组合 @property (nonatomic, weak) IBOutlet UITextField *textField;. Void) setPropertyNewName:(NSString *)propertyNewName { / assign是大概这个样子的。 PropertyNewName = propertyNewName }. Void) setPropertyNewName:(NSString *)propertyNewName { / copy是大概这个样子的。 Theme Mon Cahier by Bluelime Media.
blog.coding4life.org
vim之路 ep02 | 西门闲话
https://blog.coding4life.org/archives/101
1 vundle [ https:/ github.com/gmarik/Vundle.vim. 2 Powerline [ https:/ github.com/Lokaltog/vim-powerline. 字体下载看这里:[ https:/ github.com/Lokaltog/powerline-fonts. 七周七语言 Ruby 1日目习题 →. To create code blocks or other preformatted text, indent by four spaces:. This will be displayed in a monospaced font. The first four. Spaces will be stripped off, but all other whitespace. Markdown is turned off in code blocks:. This is not a link](http:/ example.com). Here is some inline `code`. Leave this field empty.
blog.coding4life.org
hashmap | 西门闲话
https://blog.coding4life.org/archives/author/hashmap
在ubuntu上从零搭建node.js nginx mongodb环境. 我最近也因为各种原因,前前后后总够构建了好几台node.js nginx mongodb的Linux服务器。 Sudo apt-get update sudo apt-get install build-essential libssl-dev sudo apt-get isntall curl. 关于安装node.js这一点,我不是很推荐使用apt-get 来安装node.js的环境。 这里推荐一个管理不同版本node.js的工具 nvm,官网: https:/ github.com/creationix/nvm. Curl -o- https:/ raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh bash. Wget -qO- https:/ raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh bash. 导入mongodb的public key sudo apt-key adv - key...
blog.coding4life.org
读书笔记 | 西门闲话
https://blog.coding4life.org/archives/category/读书笔记
习题1 打印字符串 Hello, World. Puts "Hello, world.". Hello, world.". 习题2在字符串 Hello, Ruby.”中,找出 Ruby. 所在下表。 Hello, Ruby.".index("Ruby."). Hello, Ruby.". Puts "HashMap n" * 10. 习题4打印字符串 This is sentence number 1.”,其中的数字1会一直变化到10. 110)step(1) { x puts "This is sentence number #{x}"}. This is sentence number #{x}". Target = rand(10) puts "Please Input a Number" while input=STDIN.gets a = input.to i puts "Too great" if a target puts "Too small" if a target puts "Sucess" if a = target break if a = target end.
blog.coding4life.org
VIM | 西门闲话
https://blog.coding4life.org/archives/category/vim-2
1 vundle [ https:/ github.com/gmarik/Vundle.vim. 2 Powerline [ https:/ github.com/Lokaltog/vim-powerline. 字体下载看这里:[ https:/ github.com/Lokaltog/powerline-fonts. 我是邪恶的分割线= = = = = = = =. General " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " "Get OS Version function! MySys() return "linux" "return "win32" endfunction "Get Os Language function! MyLang() return "chs" "return "jpn" endfunction. Linux和windows使用 leader e 快速打开配置文件。 Vimrc cr "When .vimrc is edited, reload it(Fo *nux) autocmd!
blog.coding4life.org
Ruby | 西门闲话
https://blog.coding4life.org/archives/tag/ruby
习题1 打印字符串 Hello, World. Puts "Hello, world.". Hello, world.". 习题2在字符串 Hello, Ruby.”中,找出 Ruby. 所在下表。 Hello, Ruby.".index("Ruby."). Hello, Ruby.". Puts "HashMap n" * 10. 习题4打印字符串 This is sentence number 1.”,其中的数字1会一直变化到10. 110)step(1) { x puts "This is sentence number #{x}"}. This is sentence number #{x}". Target = rand(10) puts "Please Input a Number" while input=STDIN.gets a = input.to i puts "Too great" if a target puts "Too small" if a target puts "Sucess" if a = target break if a = target end.
blog.coding4life.org
七周七语言 Ruby 1日目习题 | 西门闲话
https://blog.coding4life.org/archives/122
习题1 打印字符串 Hello, World. Puts "Hello, world.". Hello, world.". 习题2在字符串 Hello, Ruby.”中,找出 Ruby. 所在下表。 Hello, Ruby.".index("Ruby."). Hello, Ruby.". Puts "HashMap n" * 10. 习题4打印字符串 This is sentence number 1.”,其中的数字1会一直变化到10. 110)step(1) { x puts "This is sentence number #{x}"}. This is sentence number #{x}". Target = rand(10) puts "Please Input a Number" while input=STDIN.gets a = input.to i puts "Too great" if a target puts "Too small" if a target puts "Sucess" if a = target break if a = target end.