- 博客(5)
- 资源 (1)
- 收藏
- 关注
原创 About class << self in ruby
在ruby中经常可以见到这样的写法:class A class << self def hello puts "hello" end endend这样的写法和class A def self.hello puts "hello" endend可以说是完全一样的。第一种写法的一个好处是,如果需要在一个class
2012-12-17 23:36:06 3315
原创 A Tour of Go - Exercise: Web Crawler
A Tour of GoExercise: Web CrawlerIn this exercise you'll use Go's concurrency features to parallelize a web crawler.Modify the Crawl function to fetch URLs in parallel without fetching
2012-12-16 22:47:19 2482
原创 A Tour of Go - Exercise: Equivalent Binary Trees
A Tour of GoExercise: Equivalent Binary TreesThere can be many different binary trees with the same sequence of values stored at the leaves. For example, here are two binary trees storin
2012-12-16 21:23:34 1405
原创 A Tour of Go: Exercise: Rot13 Reader
A Tour of GoExercise: Rot13 ReaderA common pattern is an io.Reader that wraps another io.Reader, modifying the stream in some way.For example, the gzip.NewReader function takes an io
2012-12-16 17:03:15 1488
51制作的时钟,带温度测量
2012-02-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人