Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
neal
@guyanbiao
VIP
NO. 3126 / 2012-08-03

groot.com
广州
22 Topics / 298 Replies
9 Followers
7 Following
269 Favorites
GitHub Public Repos
  • cordova-plugin-pgyer-f... 5

    cordova 蒲公英用户反馈插件

  • guyanbiao.github.com 2

  • assets 0

    A comprehensive, up-to-date collection of information about several thousands (!) of crypto tokens.

  • qunatitative-trading-b... 0

  • poker_ai 0

  • bigtime_price 0

  • web3-eth 0

    Web3 Ruby gem client for Ethereum

  • ethereum.rb 0

    Ethereum library for the Ruby language

  • uniswap-interface 0

    🦄 An open source interface for the Uniswap protocol

  • acts_as_list 0

    An ActiveRecord plugin for managing lists.

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 有多少人觉得自己越来越不会写字了啊? at October 26, 2013

    盯着前字看,越看越觉的陌生

  • [招聘、杭州、可实习] 小团队,大梦想:成为 SegmentFault 的前十名员工 at October 22, 2013

    第一感觉我操,进豆瓣了

  • Apache Benchmark 的使用的个人浅薄经验 at September 04, 2013

    不在本机测试的话网络会对结果有影响么?

  • NameError (uninitialized constant SessionsHelper::Users) at September 03, 2013

    #4 楼 @lgn21st 怎么有点传销的感觉

  • 关于 rake 的一些问题。 at August 31, 2013

    你头像出自何处?

  • 为什么 dota 会那么吸引? at August 29, 2013

    #10 楼 @ShiningRay 对,这个也是我想的一个重要原因

  • ssh 执行一个 ruby 文件没反应 at August 22, 2013

    ruby 加上绝对路径试一下

  • 新人报道 at August 21, 2013

    骚年撸一发?

  • 请问有没有介绍 Rails 底层原理的书... at August 19, 2013

    advanced rails 跟 元编程 都有涉及一些吧

  • 周五要给公司的一群 Java coder 做 Ruby 的 share, at August 15, 2013

    界面有点丑啊

  • 解决粘贴到终端 Vim 缩进错乱 at August 14, 2013

    #14 楼 @nightire 求字体

  • js 如何判断浏览器是关闭还是刷新? at August 01, 2013

    你可以这样,window.onbeforeunload 的时候告诉服务器,10 秒钟之后,销毁 session,然后重新登陆的时候,取消这个 timer

  • js 如何判断浏览器是关闭还是刷新? at July 31, 2013

    这个还真不好知道,你的需求是什么啊?

  • cancan,如何将 role 字段设为 admin at July 25, 2013

    写在 seed 里面的吧,或者 console 手工加

  • 大家平时会做什么极限运动? at July 24, 2013

    俯卧撑

  • 实现 block 里的变量 at July 08, 2013

    你 block 执行的环境里面没有 i 这个变量啊,你的 i 是在一个方法里面定义的,方法的定义(以及类和模块的定义),会形成一个新的 scope,里面的变量你在外面是无法拿到的。而且你指出的拿不到 i 的地方也不对啊,你试下这个

    F = {}
    
    def data name = '', &block
        F[name] = [] unless F.include? name
        F[name] << block
    end
    
    i = 2  # 把 i 移到这里
    def do_data name
        h = {}
        F[name].each do | b |
                    h.merge!(b.call)
        end
        h
    end
    
    data :a do
        {
            :a1 => i,   # 你原来的代码是这里出错, 拿不到 i 
            :a2 => 'a2222',
        }
    end
    
    p do_data(:a)
    
  • 求助,head first rails 第四章的实验问题,应该有通用性问题! at July 07, 2013

    <% form_tag "/client_workouts/find" do %> -----> <=% form_tag "/client_workouts/find" do %> ?

  • Mac 下有好用的 office 吗? at July 03, 2013

    LibreOffice?

  • 数据库是 string 类型,传入的值也是 string 类型,报输入类型不符怎么回事 at July 01, 2013

    看起来是 organ 并不是 users 的一个字段,而是一种关系,类似 belongs_to :organ 这样的吧,所以你 @user.organ 是要等于 Organ 的一个实例吧

  • Rails 的值怎么传入 angularjs at June 22, 2013

    http://railscasts.com/episodes/324-passing-data-to-javascript

  • ruby model 问题 at June 17, 2013

    nil 就是 nil 啊,"" 是字符串啊,try this:

    a.company = nil
    a.save
    
  • 什么影响阅读? at June 14, 2013

    我想知道大脑的算法是怎样的

  • 一个关于 rails 关联模型的创建问题 at June 14, 2013

    直接 ar1=Article.create 可以么

  • angularjs 里 controller 的重复代码怎么办 at June 13, 2013

    #3 楼 @winnie 那就跟 rails 的 controller 继承 ApplicationController 一样了

  • angularjs 里 controller 的重复代码怎么办 at June 13, 2013

    #1 楼 @winnie 做 helper 还是每次都要在 controller 引用啊,我的意思是类似 before_filter 这样的,指定某几个或者全部 controller 在执行的时候都要先做某一件事

  • 求助英语音节划分 at June 12, 2013

    用数据库啊

  • [北京] 海淀区马甸 Ruby 程序员 at June 04, 2013

    #8 楼 @grj1046 。。。我的那个拼写错啦,是 [email protected] 你直接发 [email protected] 吧

  • [北京] 海淀区马甸 Ruby 程序员 at June 04, 2013

    #6 楼 @grj1046 你发的哪个邮箱啊?

  • [北京][求职] Ruby 开发工程师 at June 03, 2013

    我操,你怎么知道

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