Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
@lululau
高级会员
第 549 位会员 / 2011-12-22

11 篇帖子 / 183 条回帖
4 关注者
5 正在关注
16 收藏
GitHub Public Repos
  • dot_files 5

    My config files.

  • neogit-ai-commit.nvim 2

  • tmux-config 2

    :green_book: Example tmux configuration - screen + vim key-bindings, system stat, cpu load bar.

  • spacezsh 2

  • spacemacs 1

    Emacs advanced Kit focused on Evil: The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!

  • oh-my-zsh 1

    A community-driven framework for managing your zsh configuration. Includes 120+ optional plugins ...

  • bin 1

  • webook 0

  • macos-wechat-emacs 0

  • flowt 0

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • Ruby 导出 CSV 文件中文乱码,纠结了好久好久 at 2015年02月04日

    你这是啥软件?加上 BOM 试试,不行就转成带 BOM 的 UTF16 再试试

  • vim 如何让 shell 的命令显示在底部的 buffer 里? at 2015年01月14日

    #3 楼 @zztczcx :w !wc

  • to_json 的\u 的问题 at 2015年01月09日

    ActiveSupport.escape_html_entities_in_json = false

  • 字符创和日期之间的转换 at 2015年01月08日

    DateTime.strptime

  • Ruby 2.2 发布了 at 2014年12月26日

    rvm 下载完,提示 archive checksum 不匹配

  • [北京] D.G.Z 招聘 Ruby on Rails 初级工程师 at 2014年12月08日

    不要共产党员这条赞 👍

  • 作为开发者,你喜欢 markdown 还是所见即所得的编辑器 at 2014年11月28日

    只要编辑时,可以不用鼠标,完全键盘操作就能完成绝大数编辑任务即可,最好能兼顾到 Emacs/Vim 用户的使用习惯

  • 【求助】iTerm2 中新开 Tab 后没有执行 RVM 脚本,没有自动切换 ruby-version 和 ruby-gemset at 2014年10月23日

    start command 换成 login shell 试试

  • 弱问开机密码与权限密码是否可以分离 at 2014年10月09日

    #16 楼 @kww 就是让你看 sudoers 的手册,搜索和 password 相关的说明,里面有告诉你怎么不使用 invoking 用户的密码

  • 弱问开机密码与权限密码是否可以分离 at 2014年09月23日

    man sudoers | grep passw

  • 这句 ruby 脚本何解 at 2014年08月19日

    #2 楼 @Iacob Perl 程序猿应该会这么写😄

    ruby -ne 'puts $1 if /href=\"([^\"]+)\"/'
    
  • 关于 ruby socket,编码的问题 at 2014年07月11日

    p 改成 puts / print

  • %Q, %q, %W, %w, %x, %r, %s, %i 这些符号的文档在哪里? at 2014年07月11日

    http://www.ruby-doc.org/core-2.1.2/doc/syntax/literals_rdoc.html#label-Percent+Strings

  • Vim 插件推荐 - vim-ctrlspace at 2014年07月08日

    太赞了

  • Emacs 在 Mac 下 Meta 全局设置问题 at 2014年06月20日

    https://ruby-china.org/topics/12479

    下面这篇文章的源地址打不开了,给你个 evernote 的链接吧:

    https://app.yinxiang.com/shard/s9/sh/53c21da8-49ea-4627-9fc0-9c504e78c650/8a39beee305ef2744cb15129ff5d82f5

  • Mac iTerm 中 Emacs Meta 键的设置问题 at 2014年05月30日

    不知道 LZ 说的是不是 iTerm2,iTerm2 的话在 "Preferences" -> "Profiles" -> "your Profile" -> "Keys" -> 界面的右下角有关于 left/right option key 的映射配置,改成 +Esc 就可以了

  • 时间的遍历如何写? at 2014年05月20日
    require 'active_support/core_ext'
    
    class Day < Date
      alias :succ :tomorrow
    end
    
    class Month < Date
      alias :succ :next_month
    end
    
    class Year < Date
      alias :succ :next_year
    end
    
    
  • Chrome 插件,Github 控值得拥有 at 2014年05月16日

    可惜不支持 Github Enterprise,改了半天也没改成功

  • 据说是张小龙分享的七个理念 at 2014年05月07日

    看到过很多人捧这个人,但是我其实一直没看明白微信到底牛在哪儿

  • 每次运行 spec 的时候我都想 at 2014年05月03日

    好吧,bash 支持 command_not_found_handle ,注意不是 handler,是 handle

  • 每次运行 spec 的时候我都想 at 2014年05月03日

    正好这两天研究了下zsh,zsh 有个类似 method_missing 的 hook: command_not_found_handler

    bash 据我所知是没有太好的办法,可以在 PROMPT_COMMAND 脚本里遍历 ./spec 目录,然后为每个 spec 定义函数或 alias

  • 将 HTML 保存到数据库,怎样让页面显示不显示代码,而显示效果 at 2014年04月02日
    <%== html %>
    
  • 一段字符串,怎么高效的把所有中文符号,换成英文符号? at 2014年03月31日
    # Ruby 2.1.1 测试通过,str 的编码为 UTF-8
    # 只能替换这些标点:!"#$%&'()*+,-./
    str.gsub(/[\uFF01-\uFF0F]/) {|s| (s.ord-65248).chr}
    
  • 页面的计数功能 at 2014年03月19日

    由专门的 http server 来记录访问日志,然后后台程序分析日志,将统计结果写到数据库里

  • Action Mailer 无法发邮件 at 2014年03月18日

    #2 楼 @ziu 把 from 换成你的真实的 163 邮箱试试

  • Action Mailer 无法发邮件 at 2014年03月18日

    日志里没有记录错误信息?忘了调用 .deliver() 方法了?

  • 能否在 Rake 脚本中改变 shell 环境中的当前路径? at 2014年02月12日

    rake 进程是这个 shell 进程的子进程,子进程没办法直接改变父进程的 PWD。不知道这样是不是符合你的需求:

    task :path do   
       path = "/tmp"
       puts path
    end
    

    在命令行中执行: cd $(rake path) && pwd

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