Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
屎丸
@lithium4010
会员
第 8744 位会员 / 2013-08-19

上海
38 篇帖子 / 613 条回帖
11 关注者
47 正在关注
35 收藏
GitHub Public Repos
More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • [上海] 薄荷诚聘 Ruby 工程师 3 名 at 2015年05月18日

    顶顶顶

  • 现在可以关注人了 at 2015年04月23日

    基友一堆堆 😄

  • [成都] Active Network 寻觅 4 位 Ruby on Rails 攻城狮 / 程序媛 at 2015年04月21日

    Cool

  • 2015年3月29日 Rubyist 上海聚会 《React.js in Strikingly》PPT at 2015年04月19日

    :plus1:

  • 重新思考找回忘记密码解决方法 at 2015年04月19日

    冲着头像和文章进来的

  • 10 个 Ruby 技巧提升你的代码 at 2015年04月19日

    heredoc 一般啥时候用啊?

  • 那些年经历的 KPI at 2015年04月19日

    老板们都傻逼啊啊啊啊

  • [上海] “英语流利说” 团队招聘工程师 at 2015年04月17日

    ”熟悉如果去规模化一个 Web 应用(架构/数据库/缓存/CDN)“

    应该是如何吧。。

  • [珠海] 魅族招聘 Ruby 工程师(可实习) at 2015年04月11日

    支持,想投可是人在上海

  • [上海][2015年4月14日] Ruby 聚会召集 at 2015年04月11日

    去去去

  • [上海] Sonata Services 招聘 Ruby On Rails Developer (招聘结束,谢谢各位亲对我们公司的关注~) at 2015年03月23日

    公司的地址是哪里呢?

  • [广州] 4399 招聘一位 ruby 主程及两位 ruby 程序员,薪酬从 12k 起 at 2015年03月20日

    为什么会有 redmine 的要求呢?

  • 我喜欢酱紫的 Hash at 2015年03月11日

    逗号确实烦人啊。。。我觉得楼主的写法 写起来累,看起来舒服

  • 容错和速错 at 2015年03月10日

    #31 楼 @luikore

    还是不太明白。。。我是觉得写成 def foo(name: name, value: value) 太罗嗦了才会想到用简写的。这个语法的一般使用场景是什么呢?

  • 容错和速错 at 2015年03月10日

    #16 楼 @luikore

    def foo(name: n, value: v)
      {n: v}
    end  
    
    foo name: "li", value: 3
    
    #NameError: undefined local variable or method `v' for main:Object from (pry):14:in `foo'
    

    这样好像不行,能说说这个语法是怎么来的吗?

  • [上海] Strikingly 开年招募前端和移动端工程师--不装不 duang!靠谱团队,自由走心! at 2015年03月09日

    @joycehan 我来顶 😄 👏 :plus1:

    在 Strikingly 待过两个月,三观都被颠覆了有木有。

    爽爽爽。。。

  • [深圳] DJI 大疆创新公司招聘 Ruby on Rails 工程师 3 名 (内推 15-30k) at 2015年03月09日

    支持 :plus1:

  • 一小段简单的 Ruby 代码,不知道为什么会栈溢出 at 2015年03月08日

    怎么才能不写这个 Row 的 class 呢?还是太罗嗦了。。。觉得需求的row.one就是不合理啊。

    谢谢#6 楼 @spacewander告诉我 IO.readlines.


    1 require '~/ruby_csv.rb'
    2 
    3 csv = RubyCSV.new('file.txt')
    4 csv.each { |row| puts row.one }
    
     1 class RubyCSV
     2   def initialize(file_name)
     3     arr = IO.readlines(file_name).map { |line| line.split(',') } # @spacewander
     4     @row = RubyCSVRow.new(arr[0].map { |s| s.to_sym }, arr[1])  
     5   end
     6   
     7   def each; yield @row; end
     8 end
     9 
    10 class RubyCSVRow
    11   def initialize(arr_key, arr_value)
    12     @hash = Hash[arr_key.zip(arr_value)]
    13   end
    14   
    15   def method_missing(name, *args)
    16     @hash.key?(name) ? @hash[name] : nil
    17   end
    18 end
    
  • 如何循环遍历散列表? at 2015年03月07日

    #1 楼 @blacktulip 楼主说的是循环遍历是不是 循环 着 遍历的意思呀?这个限制不要死循环就好了吧⊙﹏⊙

  • 如何阻止 Ruby 吃掉所有内存?(已解决) at 2015年03月05日
    static VALUE
    rb_io_each_line(int argc, VALUE *argv, VALUE io)
    {
        VALUE str, rs;
        long limit;
    
        RETURN_ENUMERATOR(io, argc, argv);
        prepare_getline_args(argc, argv, &rs, &limit, io);
        if (limit == 0)
            rb_raise(rb_eArgError, "invalid limit: 0 for each_line");
        while (!NIL_P(str = rb_io_getline_1(rs, limit, io))) {
            rb_yield(str);
        }
        return io;
    }
    

    帮忙搬来 2.1 IO each 的源码,熟悉 C 的看看这里会不会导致不 GC

  • [上海] 薄荷诚邀 Ruby 好手 (新传图片,薄荷 girl 向你招手,是否考虑换个不一样的环境呢) at 2015年02月26日

    我又来求职了⊙▽⊙

  • Ruby 风格指导中的疑问 at 2015年02月26日

    我觉得用_是和 haskell 这种纯函数式风格的语法学的

  • [上海] Co-founder 或 Coder Wanted! 愿意跳入 early-stage 全球房产平台 start-up 火坑的 Rubist at 2015年02月25日

    有兴趣,已发简历

  • [上海] Strikingly 团队招聘后端 / 运维工程师 at 2015年02月25日

    我来流个眼泪 😢 @joycehan

  • [寒假] Rails 小菜鸟求团队实习,坐标上海 at 2015年01月19日

    那啥。。。登陆不了。。。

  • 求教跨域访问策略在 development 模式下和 production 模式下的区别? at 2014年11月14日

    看到楼主问问题,我整个人都不好了,楼主在我的印象中应该只是回复问题的,而且回复都被 like 成黄色。

  • RubyConf《I’ ve shipped the code, what’ s next》的 slides at 2014年11月03日

    看完啦~

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