Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Fred Wu
@fredwu
VIP
NO. 188 / 2011-11-23

墨尔本
109 Topics / 836 Replies
156 Followers
0 Following
0 Favorites
https://fredwu.me/
GitHub Public Repos
  • crawler 952

    A high performance web crawler / scraper in Elixir.

  • angel_nest 774

    Project code name: Angel Nest. :)

  • opq 269

    Elixir queue! A simple, in-memory queue with worker pooling and rate limiting in Elixir.

  • stemmer 153

    An English (Porter2) stemming implementation in Elixir.

  • jquery-inline-confirma... 53

    Inline Confirmation plugin for jQuery. One of the less obtrusive ways of implementing confirmatio...

  • dotfiles 18

    My dotfiles

  • README-xplor 10

    Fred @ Xplor - how to work with me.

  • yield.rb 5

    Aggregated token amounts and values. Supports ApeBoard, YieldWatch, Binance, CoinGecko and more.

  • advent_of_code_2018 4

    https://adventofcode.com/2018/about

  • fredwu.me-v3 3

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • "ta".classify 的结果是什么? at December 21, 2012

    和 classify 没什么关系。具体请查 singularize 的 inflection 规则。

  • Two Daniel Pair Live Show 2 发布 at December 17, 2012

    赶紧再去找一个 Daniel,这样就可以发布 3D 版本了 😄

  • [已解决] ruby 在数组中通过一个元素找到下一个元素 at December 11, 2012
    a.drop_while { |n| n != 'b' }[1]
    

    =。=

  • [已解决] ruby 在数组中通过一个元素找到下一个元素 at December 11, 2012
    def get_next(current)
      a = %w[a b c d e f]
      a[a.index(current)+1]
    end
    get_next('b') #=> "c"
    
  • gem 推荐:better_errors at December 10, 2012

    不久后会加入 Pry 的支持 以及 更漂亮的出错页面 。

  • gem 推荐:better_errors at December 10, 2012

    袋鼠国喵本出品的哦。作者是个 18 岁的程序天才。 :D

  • [新手问题] Rspec 如何在多个用例中 share 测试代码 at December 04, 2012

    一个字: let

  • 新手求推荐一些开源的 Rails 程序 at December 03, 2012

    发帖前先搜索: http://ruby-china.org/topics/1335?page=1

  • [更新方法] 怎么样用比较优美的方法得到某一数组的累加数组,例如 [1,3,5,7] => [1,4,9,16] at November 30, 2012
    a = [1,3,5,7]
    b=[]; a.inject(0){ |r, e| b << r+e; b[-1] }; b #=> [1, 4, 9, 16]
    
  • [视频] RubyConfChina 2012 Matz 演讲 -- "Be a language designer" at November 29, 2012

    嗯,貌似压缩的太厉害了哟 :P

  • 我的演讲稿 追加未删节完整版 at November 27, 2012

    #49 楼 @ysihaoy 我的联系方式网上搜索一下就有了:)

  • [36 氪][创投圈] 成为了 [Rails Girls 北京] 的 media partner at November 26, 2012

    负面的,但既然他们是合作办公益活动,那我就不来掺和了。如果以后有商业方面往来的话,欢迎来向我咨询,我的联系方式网上搜一下就有了。:)

  • [36 氪][创投圈] 成为了 [Rails Girls 北京] 的 media partner at November 26, 2012

    请问楼主和创投圈是什么关系?

    我可以爆创投圈的料么?-___,-

  • layout 能否多次 yield 多部分 (解决) at November 26, 2012

    content_for: http://api.rubyonrails.org/classes/ActionView/Helpers/CaptureHelper.html#method-i-content_for

  • 图灵对 Matz 的采访貌似没人贴过。。。 at November 26, 2012

    #5 楼 @zw963 因为 Tumblr。

  • 图灵对 Matz 的采访貌似没人贴过。。。 at November 26, 2012

    #3 楼 @iwinux 没有日文,只有中文的。

  • RubyConfChina 2012 照片汇总 at November 24, 2012

    #9 楼 @lgn21st 哈哈谢谢。这次回来特地去新买了个头(腾龙的 24-70mm VC)。乘着回国,能免了 10% 的销售税,嘿嘿。

  • RubyConfChina 2012 照片汇总 at November 24, 2012

    我也拍了些: http://www.flickr.com/photos/76172385@N07/sets/72157632083056277/

  • "Please commit your changes and try again." at November 22, 2012

    git pull --rebase

  • 关于 ruby-china 代码中的 callback at November 22, 2012

    不管使用多少次,我都一律放在 method 里。

    method 的名称是“文档”——告知这个 callback 的用处。

  • 我的演讲稿 追加未删节完整版 at November 20, 2012

    呵呵,谢谢大家!原本以为说的太快了大概没多少人听懂,看来还是有不少朋友受益的,那我就放心了。:)

    昨天刚返回墨尔本,悲催的在飞机降落时吐了,然后在机场里上吐下泻…… 我在想是不是在飞机上喝了罐光明酸奶导致的…… =。=

    不好意思周六时我错过了 Q&A 的环节。所以大家如果有什么问题想问的话,欢迎跟帖询问,我会尽量解答的。:)

  • 請問上海天氣最近如何? at November 12, 2012

    #2 楼 @small_fish__ 她是这次的讲师之一啊。

  • ruby 如何实现这个 aop 效果? at November 11, 2012

    这不是 decorator 嘛?-__,-

    https://github.com/fredwu/ruby_decorators

    class Hi < RubyDecorator
      def call(this, *args, &blk)
        this.call(*args, &blk).sub('hello', 'hi')
      end
    end
    
    class Batman < RubyDecorator
      def call(this, *args, &blk)
        this.call(*args, &blk).sub('world', 'batman')
      end
    end
    
    class Catwoman < RubyDecorator
      def initialize(*args)
        @args = args.any? ? args : ['catwoman']
      end
    
      def call(this, *args, &blk)
        this.call(*args, &blk).sub('world', @args.join(' '))
      end
    end
    
    class World
      extend RubyDecorators
    
      def initialize
        @greeting = 'hello world'
      end
    
      def hello_world
        @greeting
      end
    
      +Batman
      def hello_batman
        @greeting
      end
    
      +Hi
      +Catwoman
      def hello_catwoman
        @greeting
      end
    
      +Catwoman.new('super', 'catwoman')
      def hello_super_catwoman
        @greeting
      end
    end
    
    world = World.new
    
    world.hello_world          # => "hello world"
    world.hello_batman         # => "hello batman"
    world.hello_catwoman       # => "hi catwoman"
    world.hello_super_catwoman # => "hello super catwoman"
    
  • 请问,每次 rails generate 都要--skip-test-unit 或者 --skip-stylesheets,能不能有什么配置,不需要每次都要输入这么长 at November 11, 2012
    $ cat ~/.railsrc 
    --old-style-hash
    --skip-bundle
    --skip-test-unit
    --database=mysql
    
  • Practical Object-Oriented Design in Ruby 征询译者 at November 10, 2012

    真巧,Amazon 这本书的页面我一直开着,打算过阵子买来看看……

  • 比较 Ruby on Rails 和 CakePHP at November 08, 2012

    233 https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Model.php#L1601-1769

  • 比较 Ruby on Rails 和 CakePHP at November 08, 2012

    随便找一个 CakePHP 的函数看看就知道该不该用这个框架了,嘿嘿。https://github.com/cakephp/cakephp/blob/master/lib/Cake/Model/Model.php#L2779-2826

  • 比较 Ruby on Rails 和 CakePHP at November 08, 2012

    CakePHP 和 Wordpress 差不多,都是社区庞大,但根基基本上已经全烂掉了,没办法补救了。CakePHP 的前核心早几年就放弃了 CakePHP 跑去搞自己的 Lithium 了。

  • 怎样平行赋值初始化数组? at November 07, 2012

    虽然不推荐,但是你可以——

    a1, a2, a3, a4 = Array.new(4, [])
    

    其实还是原本的方式最直观。

  • RubyConfChina 2012 参会指南 at November 06, 2012

    如果讲师迟到了还能不能入场呀?嘿嘿嘿。。。 :P

  • Prev
  • 1
  • 2
  • …
  • 10
  • 11
  • 12
  • 13
  • 14
  • …
  • 27
  • 28
  • Next
关于 / RubyConf / Ruby 镜像 / RubyGems 镜像 / 活跃会员 / 组织 / API / 贡献者
由众多爱好者共同维护的 Ruby 中文社区,本站使用 Homeland 构建,并采用 Docker 部署。
服务器由 赞助 CDN 由 赞助
iOS 客户端 / Android 客户端 简体中文 / English