Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Fred Wu
@fredwu
高级会员
第 188 位会员 / 2011-11-23

墨尔本
109 篇帖子 / 836 条回帖
156 关注者
0 正在关注
0 收藏
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
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • "ta".classify 的结果是什么? at 2012年12月21日

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

  • Two Daniel Pair Live Show 2 发布 at 2012年12月17日

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

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

    =。=

  • [已解决] ruby 在数组中通过一个元素找到下一个元素 at 2012年12月11日
    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 2012年12月10日

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

  • gem 推荐:better_errors at 2012年12月10日

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

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

    一个字: let

  • 新手求推荐一些开源的 Rails 程序 at 2012年12月03日

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

  • [更新方法] 怎么样用比较优美的方法得到某一数组的累加数组,例如 [1,3,5,7] => [1,4,9,16] at 2012年11月30日
    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 2012年11月29日

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

  • 我的演讲稿 追加未删节完整版 at 2012年11月27日

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

  • [36 氪][创投圈] 成为了 [Rails Girls 北京] 的 media partner at 2012年11月26日

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

  • [36 氪][创投圈] 成为了 [Rails Girls 北京] 的 media partner at 2012年11月26日

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

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

  • layout 能否多次 yield 多部分 (解决) at 2012年11月26日

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

  • 图灵对 Matz 的采访貌似没人贴过。。。 at 2012年11月26日

    #5 楼 @zw963 因为 Tumblr。

  • 图灵对 Matz 的采访貌似没人贴过。。。 at 2012年11月26日

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

  • RubyConfChina 2012 照片汇总 at 2012年11月24日

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

  • RubyConfChina 2012 照片汇总 at 2012年11月24日

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

  • "Please commit your changes and try again." at 2012年11月22日

    git pull --rebase

  • 关于 ruby-china 代码中的 callback at 2012年11月22日

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

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

  • 我的演讲稿 追加未删节完整版 at 2012年11月20日

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

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

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

  • 請問上海天氣最近如何? at 2012年11月12日

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

  • ruby 如何实现这个 aop 效果? at 2012年11月11日

    这不是 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 2012年11月11日
    $ cat ~/.railsrc 
    --old-style-hash
    --skip-bundle
    --skip-test-unit
    --database=mysql
    
  • Practical Object-Oriented Design in Ruby 征询译者 at 2012年11月10日

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

  • 比较 Ruby on Rails 和 CakePHP at 2012年11月08日

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

  • 比较 Ruby on Rails 和 CakePHP at 2012年11月08日

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

  • 比较 Ruby on Rails 和 CakePHP at 2012年11月08日

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

  • 怎样平行赋值初始化数组? at 2012年11月07日

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

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

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

  • RubyConfChina 2012 参会指南 at 2012年11月06日

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

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