Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
2622
@jjym
VIP
NO. 2622 / 2012-06-22

[email protected]
上海
26 Topics / 1077 Replies
24 Followers
0 Following
118 Favorites
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
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 数学节点,不错,给大家推荐一个非常好的数学相关的 blog at July 08, 2012

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

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

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

  • 不属于 Model 中的字段一般怎么处理? at July 07, 2012

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

  • [北京] Ruby 活动 意见征集 at July 07, 2012

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

  • [北京] Ruby 活动 意见征集 at July 06, 2012

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

  • [北京] Ruby 活动 意见征集 at July 06, 2012

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

  • [北京] Ruby 活动 意见征集 at July 06, 2012

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

  • 社区主题默认的排序规则是怎样的? at July 06, 2012

    按照主键吧

  • [北京] Ruby 活动 意见征集 at July 06, 2012

    支持啊,有机会一定要去

  • 求助:rails 3.26 生成 model 自动生成 attr_accessible 的问题 at July 06, 2012

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

  • 这个社区很好 at July 06, 2012

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

  • [已解决] gem install httpclient 报错 at July 05, 2012

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

  • [已解决] gem install httpclient 报错 at July 05, 2012

    但是我 httpclient 也没装上

  • 悲催的买了双飞燕影印版 at July 04, 2012

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

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

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

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

    :u6709: :u7a7a:

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

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

  • Ubuntu 难道不能用 QQ? at July 03, 2012

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

  • 执行 rake assets:precompile 报错 at June 30, 2012

    应该是。。语法写错了吧

  • 多态关联用的多吗? at June 28, 2012

    同初学。。

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

  • to_s,to_str 和 inspect at June 27, 2012

    #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 June 27, 2012

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

  • Screencast: ctags at June 27, 2012

    支持。。

  • [新手向] 对 Controller 与 Model 体型问题的一些想法 at June 27, 2012

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

  • [新手向] 对 Controller 与 Model 体型问题的一些想法 at June 26, 2012

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

  • 各位 linux 下的 gvim 字体用的是啥? at June 26, 2012

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

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