Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Zete
@luikore
VIP
NO. 2880 / 2012-07-16

55 Topics / 3422 Replies
245 Followers
6 Following
32 Favorites
GitHub Public Repos
  • triez 140

    fast, efficient, unicode aware HAT trie with prefix / suffix support for Ruby

  • rsec 78

    Parser / Regexp Combinator For Ruby

  • regexp_optimized_union 11

    Regexp.optimized_union(word_list, regexp_options) generates optimized regexp for matching union o...

  • zscan 9

    Improved string scanner

  • stimulus-bind 9

    Enable simple data binding for stimulusjs

  • vscode-hypertab 3

    The Missing Tab Completion for VS Code

  • property-list 1

    Property list (plist) library with all formats support

  • keycap 1

    1.5u keycap for Kailh low profile switch

  • ffi-clang 0

    Ruby FFI bindings for libclang 3.4+.

  • llvm-node 0

    Node LLVM 4.0+ Bindings

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 你不需要这些 Gems at November 22, 2013

    还有...

    • rails
    • padrino
    • mongoid
  • ruby 2.1.0? at November 22, 2013

    #3 楼 @chairy11 2.0 的 p353 相对于 p247 有不少 bug fix

    2.1 主要就是 GC 性能提升

  • ruby 2.1.0? at November 22, 2013

    #1 楼 @kevinzhow p247 的赶紧更新 p353 吧

  • git 这玩意有必要性升级吗? at November 21, 2013

    xcode5 带的 git 是 1.8.3.4, 和新版偏差在 1% 以内就懒得 brew install 一次了...

  • Sam Stephenson 告诉你为什么要使用 CoffeeScript at November 21, 2013

    #8 楼 @jiyinyiyong 有分工么?

  • Sam Stephenson 告诉你为什么要使用 CoffeeScript at November 21, 2013

    #6 楼 @jiyinyiyong 以前没注意去 whois... 其实是赞的意思。翻译 +1

  • Sam Stephenson 告诉你为什么要使用 CoffeeScript at November 21, 2013

    #4 楼 @jiyinyiyong 卧艹,原来是你注的域名

  • 好朋友分手了…因为代码风格不同… at November 21, 2013

    当初豆腐脑放糖还是放盐早点问清楚比较好

  • 培养零基础开发小组笔记 at November 21, 2013

    @bhuztez @lgn21st 觉得 B 大在买萌...

  • 培养零基础开发小组笔记 at November 21, 2013

    把 w3school 换成 mdn 好一点

  • Sam Stephenson 告诉你为什么要使用 CoffeeScript at November 21, 2013

    食毕,很好。coffee 还有一点爽的是 range 操作,再也不用一遍又一遍的翻 splice 函数的文档了

    arr[0...-1]
    arr[0..5] = ['a', 'b']
    'foo bar'[0...3]
    
  • 总结了一下键盘上所有符号的英文说法 at November 20, 2013

    补充一下

    ` backtick
    ! bang
    ^ hat
    * star
    {} braces
    | pipe
    

    http://en.wikipedia.org/wiki/Template:Punctuation_marks

    几个横线辨析...

    ‒ figure dash, 连数符
    - 键盘上的"减号"摁出来的字符一般是 hyphen, 连字符
    − 真 · minus
    – en dash 比 hyphen 长, 用于比分和范围等
    — em dash 比 en dash 长, 和转折意思的破折号差不多了
    
  • 发现 rubychina 一个给力的地方 at November 20, 2013

    #11 楼 @xstmjh 没有碎片包的时代... 做个史诗般的任务才送个 16 格... 别人石头什么的都捡得很 high 萨满大叫谁东西没捡剥不了皮 术士就是舍不得摧毁包里的碎片捡不了!

  • 发现 rubychina 一个给力的地方 at November 20, 2013

    #9 楼 @xstmjh 术爷人生顶峰是打绿龙拉了两个大团加发糖一铜币都不收!

  • 发现 rubychina 一个给力的地方 at November 20, 2013

    法爷这么出名都不知道?求法爷开个门,求法爷来个餐桌,求法爷加个智力 ...

  • eventmachine httpserver 没有成功调用到 post_init at November 20, 2013

    历史原因起了这么个怪名字,早叫 initialize 就好了

  • 关于 archive-zip,怎么可以获得包含的文件的名字呢? at November 20, 2013

    z.entries.map &:zip_path

  • sinatra + puma 出现的问题求解 at November 20, 2013

    activerecord 和 pg 的版本?

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #27 楼 @bhuztez 这是更详细的描述? http://www.dyalog.com/MasteringDyalogAPL/MasteringDyalogAPL.pdf Spe-5.2 - Fractional Axis

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #25 楼 @bhuztez 1.234 也一样,比 1 大而且没到 2 就可以...

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #23 楼 @bhuztez axis indicator http://en.wikipedia.org/wiki/APL_syntax_and_symbols#Operators_and_axis_indicator

    0 < n < 1 上下结构 n = 1 左右结构 1 < n 转置后左右结构

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #21 楼 @bhuztez 我知道了,tryapl 只接受 apl functional symbol rho 不接受 greek small letter rho

    X ← "a" "b" "c" "d"
    X , [1.5]((⍳⍴X)-1)
    
  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #19 楼 @bhuztez gnu-apl 可以啊

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #17 楼 @bhuztez

    X ← 'a' 'b' 'c' 'd'
    X , [1.5]((⍳ρX)-1)
    
  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #14 楼 @zealinux

    打散 (splat) 运算符,会调用对象的 to_ary 方法转换成数组

    The Ruby Programming Language ch4s5, 注册个免费帐号可以看 safariflow 的: http://www.safariflow.com/library/view/The+Ruby+Programming+Language/9780596516178/ch04s05.html#id3274652

    常用法:

    array = [head, *tail]
    
    head, *tail = array
    
    def f head, *tail
      ...
    end
    
    lambda do |head, *tail|
      ...
    end
    
    # 嵌套展开
    proc do |((head, *middle, tail), *middle, tail)|
      ...
    end
    
  • win7 ruby 自宫指南 at November 20, 2013

    #10 楼 @i5ting er.. 说错了,mysql 的 bin 目录

  • win7 ruby 自宫指南 at November 20, 2013

    最后一个 segfault, 把 mysql2 的 bin 目录放到路径中试试?

  • 怎么样打印一下 ruby 的运行栈? at November 20, 2013

    rake --trace some_task 会比较慢,换成 Ruby 2.0 用 Dtrace 方法调用的话可以比较快,不过 dtrace 脚本不太好写而且要 sudo


    从 C 的运行栈也有可能看出运行到哪里卡住了

    gdb 1234.core
    bt
    

    还有个笨方法就是打日志

  • 怎么样最简方式,把一维数组变为二维 at November 20, 2013

    #12 楼 @skandhas en, * 就是调用了 to_ary, enumerator 的 to_ary 和 to_a 一样

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