Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Juanito Fatas
@juanito
高级会员
第 1510 位会员 / 2012-03-19

[email protected]
https://Buildkite.com
Tokyo
71 篇帖子 / 454 条回帖
113 关注者
11 正在关注
51 收藏
GitHub Public Repos
  • ruby-style-guide 127

    Ruby Style Guide (Chinese)

  • - 3

  • fast_uuid 2

  • rails 1

    Ruby on Rails

  • rails-versions 1

    A common repository of Rails version metadata.

  • dalli 0

    High performance memcached client for Ruby

  • renovate 0

    Universal dependency update tool that fits into your workflows.

  • dev.to 0

    Where programmers share ideas and help each other grow

  • abn 0

    Small library for validating Australian Business Numbers

  • rdoc 0

    RDoc produces HTML and online documentation for Ruby projects.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 论坛里能否建个搜索引擎 at 2012年04月16日

    上方有一个搜索框,黑边灰色框,可以试试。

  • 对 Ruby China 社区的几点建议. at 2012年04月16日

    hacker news 的帖子 Ranking 算法

  • Mac OS X 替换系统字体 at 2012年04月16日

    #1 楼 @huacnlee 恩,一般的俪黑看腻了可以换个口味试试。

  • Mac OS X 替换系统字体 at 2012年04月16日

    效果图:

    效果图

  • Redis 文档中文翻译 at 2012年04月16日

    可以關注翻譯的人的博客:http://huangz1990.github.com

  • 强烈建议恢复 “社区” 为首页 at 2012年04月16日

    有首页其实还蛮不错的,可以看到活跃跟最多人喜欢的,但我自己都把书签设成 http://ruby-china.org/topics

  • Ruby China T 恤第一期最终选稿 at 2012年04月16日

    我喜欢 2 号

  • 发起一个算法讨论, 取得素数. at 2012年04月14日

    #10 楼 @sunzheng91 其實這算法叫做 Sieve of Eratosthenes

  • github 上面搜索自己的 gist at 2012年04月14日

    能搭配 sublime text2 做代碼管理,請看此人的博客

  • 请问 ruby 怎么读取和解析 html 文件呢? at 2012年04月14日

    Nokogiri (鋸) is an HTML, XML, SAX, 以及 Reader 解析器。

    Ruby API 1.9.3 core (英文版)

  • 发起一个算法讨论, 取得素数. at 2012年04月14日

    先實現如何找到除數

    def square(n)
      return n * n
    end
    
    # b 可以被 a 除嗎?
    def divides?(a, b)
      return b.remainder(a) == 0  
    end
    
    # 若 n 不是質數,一定有一個除數小於或等於 sqrt(n)
    # 所以只要找 1 .. sqrt(n)
    def find_divisor(n, test_divisor)
      if square(test_divisor) > n
        return n
      elsif divides?(test_divisor, n)
        return test_divisor
      else
        find_divisor(n, test_divisor+1)
      end
    end
    
    
    
    

    再實現如何找到最小除數(從 2 找起)

    def smallest_divisor(n)
        find_divisor(n, 2)
    end
    
    
    
    

    由於質數本身是自己的最小除數 => 找到質數

    # n 是一個質數 iff 自身是最小除數
    def prime?(n)
        return smallest_divisor(n) == n
    end
    
    
    
    

    從給定的區間找,把非質數過濾掉

    def find_prime(m=2, n)
        (m..n).find_all { |i|  prime?(i) == true } 
    end
    
    
    
    
    p find_prime(10) # => [2, 3, 5, 7]
    p find_prime(10, 20) # => [11, 13, 17, 19]
    
    
    
    
  • Redis 文档中文翻译 at 2012年04月11日

    頂!这个人翻译得特别用心,山大的工作量都是他一人翻译的。。。

  • RailsCast 视频下载脚本 at 2012年04月05日

    iTunes 還有 Terry Tai 的 Railscasts

  • rake assets:precompile isn't precompiled scss at 2012年04月04日

    我打算升级 Rails 到 3.1.3 试试

  • rake assets:precompile isn't precompiled scss at 2012年04月04日

    #5 楼 @he9qi ~> 3.1.0

  • rake assets:precompile isn't precompiled scss at 2012年04月04日

    #6 楼 @hayeah 也是不行欸。。。

  • Ruby 纪念 T-Shirt 设计反馈 at 2012年04月04日

    黑或白色 T,左胸口是论坛 favicon(红宝石在瓷器上那个),背後一小段代码 <% ruby-china %>?不加等号是因为 ruby-china 已经融入身子里了。。。

  • rake assets:precompile isn't precompiled scss at 2012年04月03日

    #1 楼 @he9qi 試過不行,謝謝!

  • rake assets:precompile isn't precompiled scss at 2012年04月03日

    project.css.scss 沒改過:

    // Place all the styles related to the projects controller here.
    // They will automatically be included in application.css.
    // You can use Sass (SCSS) here: http://sass-lang.com/
    
    

    也試過: config.assets.precompile += %w( project.css.scss ) ==> 不行

    鬱悶。。。

  • Ruby China 客户端发布 at 2012年04月03日

    頂一個!!

  • Ruby 纪念 T-Shirt 设计反馈 at 2012年04月03日

    我喜歡 3 號

  • 编写一个好的网站,要学什么 at 2012年04月02日

    CSS 推薦一本 handcrafted css

  • 编写一个好的网站,要学什么 at 2012年04月02日

    #2 楼 @413472212 有一個 30 days to Learn HTML & CSS 還有可以去 codecademy 學 Javascript 這倆教程還不錯。。。

  • 日本女人的 Rubyist at 2012年03月30日

    她是变身指令里面演西内玛利亚姐姐的那个女生

  • 日本女人的 Rubyist at 2012年03月30日

    找到了那個女生的 twitter,居然連 Matz 都 RT......

    Matz-RT

  • 日本女人的 Rubyist at 2012年03月30日

    Ruby-china's Milestone!!!!

  • 怎样带领好一个 Rails 团队? at 2012年03月29日

    還可以看看 getting REAL : ))) http://gettingreal.37signals.com/GR_chn.php

  • 怎样带领好一个 Rails 团队? at 2012年03月29日

    參考:http://xdite-smalltalk.tumblr.com/ 及 http://blog.xdite.net/posts/2012/03/26/issue-tracking-project-management-agile/ and 這系列文:http://blog.xdite.net/posts/2012/03/17/website-online-todo/

  • 新版本的首页看起来太简陋了 at 2012年03月28日

    我也喜欢进来就看帖子。默默把书签设置为 http://ruby-china.org/topics 了哈

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