Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
2622
@jjym
高级会员
第 2622 位会员 / 2012-06-22

[email protected]
上海
26 篇帖子 / 1077 条回帖
24 关注者
0 正在关注
118 收藏
GitHub Public Repos
  • hdwallet 34

    HD wallet BIP-32 related key derivation utilities.

  • buddy-alloc 31

    Buddy-alloc is a memory allocator for no-std Rust, used for embedded environments.

  • minimal-ray-tracer-zig 2

  • godwoken 1

  • ckb-std 1

    This library contains serveral modules that could help you write CKB contract with Rust.

  • fiber-autopilot 0

  • ckb-cli 0

    CKB command line interface

  • vulkan-tutorial-c 0

    Learn https://vulkan-tutorial.com/Introduction with C

  • test-bincode 0

  • force-bridge 0

    General Force Bridge components.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • 数学节点,不错,给大家推荐一个非常好的数学相关的 blog at 2012年07月08日

    强大。。对我来说有点太高端了。。

  • 生成随机字符串的一行代码 at 2012年07月08日
    p (Array.new(10) { 97 + rand(26).to_i }).pack "c*"
    
  • 生成随机字符串的一行代码 at 2012年07月08日

    def random_str(len) rand(36*(len - 1) ... 36*len).to_s 36 end

  • 不属于 Model 中的字段一般怎么处理? at 2012年07月07日

    8L 正解 LZ 可以看看这个 http://guides.rubyonrails.org/active_record_validations_callbacks.html 好像是验证一个不存在的字段就作为一个虚拟字段 如果你validates :password_confirmation,presence: true 那么不通过验证会有 error。但是数据库中无此字段,所以即使通过验证这个字段也不会保存。这个字段仅在内存中存在

  • [北京] Ruby 活动 意见征集 at 2012年07月07日

    #89 楼 @jasl 这个招聘贴 感觉这贴当 QQ 了。。

  • [北京] Ruby 活动 意见征集 at 2012年07月06日

    #80 楼 @congteng 我 10 号到北京,有意合租房子的话联系下 a .QQ234267675,mail:[email protected]

  • [北京] Ruby 活动 意见征集 at 2012年07月06日

    @jasl 3K 有机会一起交流姿势

  • [北京] Ruby 活动 意见征集 at 2012年07月06日

    @congteng 同实习,少年有意合租房子什么的吗?还方便交流姿势

  • 社区主题默认的排序规则是怎样的? at 2012年07月06日

    按照主键吧

  • [北京] Ruby 活动 意见征集 at 2012年07月06日

    支持啊,有机会一定要去

  • 求助:rails 3.26 生成 model 自动生成 attr_accessible 的问题 at 2012年07月06日

    #5 楼 @HanHor attr_accessible :email, :nickname, :authentications_attributes ,:created_at,:updated_at 这样也不行?

  • 这个社区很好 at 2012年07月06日

    Ruby China 是个好社区 ---新宇体

  • [已解决] gem install httpclient 报错 at 2012年07月05日

    X。。我不加 sudo 装上了。。

  • [已解决] gem install httpclient 报错 at 2012年07月05日

    但是我 httpclient 也没装上

  • 悲催的买了双飞燕影印版 at 2012年07月04日

    坚持看完一本就能看其他的了。

    看 Rails Tutorial 前,同样没过 3 级 看完后过了

    好吧..4 级还需努力。。

  • 发现 Ruby China 已经支持 emoji 表情了 (别回啦,预览就可以看效果了) at 2012年07月04日

    :u6709: :u7a7a:

  • 如何 alias 一个类方法或者模块方法呢? at 2012年07月03日
    class << self
      alias foobar bar
    end
    

    现在没环境。不知道这样行不行?

  • Ubuntu 难道不能用 QQ? at 2012年07月03日

    wine 挺好啊,QQ2012。就是不支持视频秀

  • 执行 rake assets:precompile 报错 at 2012年06月30日

    应该是。。语法写错了吧

  • 多态关联用的多吗? at 2012年06月28日

    同初学。。

    多态关联是指 Polymorphic 选项? model Image belongs_to :imageable,polymorphic: true 就是说当前 Model 属于:imageable 而使用时 has_many :images,as: imageable 就是指当前 Model 作为 imageable,这样就行了,其余的和一对多一样了

  • to_s,to_str 和 inspect at 2012年06月27日

    #14 楼 @hooopo

    Ruby could have called to_s method on e and could have produced the result. But ruby refused to do so.
    
    Ruby refused to do so because it found that the object you are trying to add to string is not of type String. When we call to_s we get the string representation of the string. But the object might or might not be behaving like a string.
    

    看了这篇后感觉 to_str 更像是为了避免无意义的字符串而出现的。 Ruby 在设计上很多地方都值得思考,有机会一定要看下 Matz 那本书

  • 关于飞信的鲜为人知的秘密 at 2012年06月27日

    ..居然收费..收费谁还用这个

  • Screencast: ctags at 2012年06月27日

    支持。。

  • [新手向] 对 Controller 与 Model 体型问题的一些想法 at 2012年06月27日

    @xds2000 居然有这种东西,好神奇

  • [新手向] 对 Controller 与 Model 体型问题的一些想法 at 2012年06月26日

    #1 楼 @lanisle 恩,不太熟悉 markdown.调下格式

  • 各位 linux 下的 gvim 字体用的是啥? at 2012年06月26日

    用 rails.vim 那个字体,看着挺顺眼的

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