windse7en's blog

while(1){slef++;}


  • Home

  • Archives

  • Tags

  • Search

T: Chef Ruby

395 Words   |   2 Min   |   Posted on 2015-07-31 |

chef componentng)

介绍主页

下载ubuntu chef

Read more »

B: Metaprogramming Ruby

2,006 Words   |   10 Min   |   Posted on 2015-07-27 |

Metaprogramming is writing code that writes codes.

Get all mixed modules for an object:

(class << obj; self; end).included_modules>>)

在runtime下,取得obj的class,查找所有modules

Read more »

Learn: linux command tips

177 Words   |   1 Min   |   Posted on 2015-07-22 |

info

帮助的中级文档,可以入手学习Emacs。主要的操作

Read more »

B: Design Patterns in Ruby

3,068 Words   |   18 Min   |   Posted on 2015-07-17 |

Design Patterns in Ruby

GoF(Gang of Four) book: Design Patterns: Elements of Reusable Object-Oriented Software.

prefer composition to inheritancy. Internal Domain-Specific Language(DSL), metaprogramming, convention not configuration

Read more »

Practical Obect Oriented Design in Ruby

2,229 Words   |   13 Min   |   Posted on 2015-07-16 |

Practical Object-Oriented Design in Ruby

Responsibilities, dependencies, interfaces, ducks, inheritance, behavior sharing, composition, and testing

Persist. Practice. Experiment. Imagine. Do your best work, and all else will follow.

Read more »

a endless journey to learn vim

1 Words   |   0 Min   |   Posted on 2015-07-10 |

This description to the VIM journey is to descript my learning process of VIM:

#开始通过看thoughtbot的vim教学视频学习怎么配置好vim的工作环境,玩vim adventure。第一部基本学会的内容:

  1. motion在一个文件中
  2. vim中的letter,word,sentence,paragraph的概念
  3. 配置vim config文件选择template,颜色
  4. 掌握常用的:command
  5. 三种mode熟练切换
Read more »

Rspec for Test in Ruby

35 Words   |   0 Min   |   Posted on 2015-07-02 |

Excel for summary of ruby test

  1. make sure install the rspec gem
  2. Use “rspec file_name.rb” to run the rspec test
Read more »

Ruby C Python C++ world Tips

27 Words   |   0 Min   |   Posted on 2015-06-24 |

Create the Ruby extension in C
里面清晰地讲明了怎么给Ruby写C的extension。
require mkmf, create makefile, create the extension

Read more »

Rails development ridiculous problem sets

265 Words   |   1 Min   |   Posted on 2015-06-23 |

Rails development related problem track blog.

Read more »

linux command learn tips

326 Words   |   2 Min   |   Posted on 2015-06-15 |

awk强大的文件操作,从Alfred Aho,Peter Weinberger and Brain Kernighan
找出非系统产生的账号:

awk -F “:” ‘($3 >= 1000) { printf $1 “\n”}’ /etc/passwd
awk Pattern {ACTIONS;}

awk中仅有string和numeric,可以互相转换。
文件中每一行check每一种pattern(Regex,Boolean,Special),In Boolean Search,进行fuzzy matching,” 23”==23

Read more »
123…7
Tao Zhang

Tao Zhang

61 posts
85 tags
GitHub Twitter
© 2017 Tao Zhang
Powered by Hexo
Theme - NexT.Muse
Visitors Visits