Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Chutian Yang
@yct21
Member
NO. 9034 / 2013-09-06

[email protected]
0 Topics / 9 Replies
0 Followers
0 Following
1 Favorites
GitHub Public Repos
  • nvimdev.github.io 0

    website

  • obsidian-dataview 0

    A data index and query language over Markdown files, for https://obsidian.md/.

  • neogit 0

    An interactive and powerful Git interface for Neovim, inspired by Magit

  • tp-lean-zh 0

    Lean 定理证明

  • baby-plonk 0

    Simplified educational python plonk implementation

  • plonk-intro-notebook 0

  • moonmath-manual 0

    A resource for anyone interested in understanding and unlocking the potential of zk-SNARKs, from ...

  • lambdaworks 0

    lambdaworks offers implementations for both SNARKs and STARKs provers, along with the flexibility...

  • Elliptic-curve-pairings 0

    Elliptic curve mathematics including Tate and Weil pairings for BLS signatures and zk-SNARK algor...

  • play-github-actions 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 请问现在比较好的 Rails 教学网站有哪些 at December 21, 2017

    https://www.rubytapas.com/

  • [杭州] The Plant 还在招聘 at June 09, 2015
    请把 中、 英文简历(含期望薪资)发到以下邮箱, 我们会在 春节过后 联系你:
    

    春节过后=。=

  • 透彻理解 Ruby 中的 return at March 31, 2015

    #24 楼 @est

    def some_function()
      yield 2
    end
    
    some_function() {|y| next y*y} # => 4
    

    其实就是退出当前 block.

  • UCloud API 开发大赛在 RubyChina 的特别抽奖送书活动,截止日期 3 月 24 日 at March 24, 2015

    94

  • 返回值问题 at December 30, 2014

    在 ruby 中,block 基本可以看做是一个非 object 版本的 proc. 和 lambda 的不同点在于,proc 中的 return 是直接退出定义 proc 的 scope.

    def double(&proc)
      yield * 2
    end
    
    def test
      double do
        return 1 # 直接退出 test 函数
      end 
    end
    
    test # => 1
    

    如果希望一个 callable object 在 return 时只退出自身的 scope, 可以使用 lambda.

    def double(p)
      p.call * 2
    end
    
    def test
      double lambda {return 1} 
    end
    
    test # => 2
    
  • 一道 ruby 笔试题 at December 23, 2014

    

    突然就想到了 metaprograming ruby 里的这张纸巾...

  • 几本电子书的消息 at January 08, 2014

    https://leanpub.com/deploying_rails_applications-cn 这个链接里面的中文标题,rails 拼错了 - -

  • 羽毛球小站 从.net mvc 迁移过来的~ at December 06, 2013

    这个左下角。。。罗小黑战记?

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