Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
Tony
@mystery
Member
NO. 9242 / 2013-09-22

易课教育
成都
2 Topics / 157 Replies
6 Followers
18 Following
0 Favorites
不要做相同的事情,期待不同的结果。
GitHub Public Repos
  • rmp-api 0

    A wrapper for the Rate My Professor (RMP) GraphQL database

  • AI-Scientist 0

    The AI Scientist: Towards Fully Automated Open-Ended Scientific Discovery 🧑‍🔬

  • Robyn 0

    Robyn is a Super Fast Async Python Web Framework with a Rust runtime.

  • qaDemo 0

  • gptstore-prompts 0

    Here are the Top 100 prompts on GPTStore, which we can use to learn and improve prompt engineering.

  • ChatGPT-Next-Web 0

    A well-designed cross-platform ChatGPT UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT 应用。

  • vue-admin-better 0

    🚀🚀🚀vue admin,vue3 admin,vue3.0 admin,vue后台管理,vue-admin,vue3.0-admin,admin,vue-admin,vue-element-a...

  • video-retalking 0

    [SIGGRAPH Asia 2022] VideoReTalking: Audio-based Lip Synchronization for Talking Head Video Editi...

  • chatgpt-nextjs 0

    像官方 ChatGPT 一样使用,再加入更强大的功能(Use as the official ChatGPT, with even more powerful features.)

  • easy-ui 0

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • [成都] 百词斩 - RubyServer 开发 15K-35K at October 19, 2015

    原来百词斩也在成都啊!原来有用过挺好!

  • tmux+tmuxinator+(Mac) vim+Guard 太赞了 at March 17, 2015

    #3 楼 @rocLv 是呀,tmux+Vim 已经用上了,现在就缺一个 牛逼的键盘了!

  • "中级 Ruby 工程师"都在做什么? at March 12, 2015

    初级工程师,就是按照模块来完成工作,也就是知道此模块是做什么 中级工程师的工作其实也差不多,就是开发一些 较为复杂的程序。

  • tmux+tmuxinator+(Mac) vim+Guard 太赞了 at March 12, 2015

    (tmux + Vim + HHKB) + ROR ☺

  • to_param 功能如何更好的支持中文? at January 22, 2015

    先用正则判断出是中文,就用拼音插件,转成拼音就好了

  • 求教关于 Ruby 的多线程问题 at January 09, 2015

    为啥?因为它是 Ruby !!!

  • 工作学习时,老是玩手机咋办? at January 04, 2015

    #20 楼 @cqcn1991 现在有飞机模式呀,没用的,没有自制去开的。

  • 国内第一家云端的日志管理软件 (uclogs.com) 招募体验用户(第二期) at November 17, 2014

    不错,我最近正好有这个需求,日志量非常大 ( 未切割前 800 M ),邮箱是 lijia.tong#foxmail.com

  • Ruby 很小众吗?今天被同事说 Ruby 很小众,几乎没未来。 at July 28, 2014

    很小众

  • 站立式工作台建设成功 at July 24, 2014

    左手触摸板右手鼠标,好方便,不过这里我感兴趣的,只有那个 HHKB

  • [北京] 大鱼自助游招聘工程师 Ruby/ 前端 /iOS/Android at July 23, 2014

    👏

  • 出个 HHKB pro2 9.9 成新,黑色有刻,包顺丰 [郑州可同城交易,送货上门^_^] at July 19, 2014

    你这价格有点高呀!

  • 新手请教 vim 配置 at July 17, 2014

    我这有配置好的 https://github.com/user-tony/vimfiles

  • joins 两个 table 进来后,如果两个进行 group 或 where? at July 10, 2014

    SUM 这个函数写在 SELECT 里记得应该是不好用,因为有单独的 SUM(:xxx), 但是不支持同时 sum 两个字段

    你还是写 Product.connection.select_all(' SELECT SUM(column) FROM tables GROUP BY xxxx') 拼个 SQL 不丢人,哈哈

  • 大虾们,关于 Gitlab 的二次开发问题 at July 07, 2014

    你想搞懂它,没有捷径,不然你怎么二次开发?

  • 会 SQLite 来一下 at July 06, 2014
    require "sqlite3"
    
    # Open a database
    db = SQLite3::Database.new "test.db"
    
    # Create a database
    rows = db.execute <<-SQL
      create table numbers (
        name varchar(30),
        val int
      );
    SQL
    
    # Execute a few inserts
    {
      "one" => 1,
      "two" => 2,
    }.each do |pair|
      db.execute "insert into numbers values ( ?, ? )", pair
    end
    
    # Execute inserts with parameter markers
    db.execute("INSERT INTO students (name, email, grade, blog) 
                VALUES (?, ?, ?, ?)", [@name, @email, @grade, @blog])
    
    # Find a few rows
    db.execute( "select * from numbers" ) do |row|
      p row
    end
    

    来源 https://github.com/sparklemotion/sqlite3-ruby

  • rails 无限级分类实现 ok,请教一个小问题 at July 05, 2014

    #4 楼 @flowerwrong 要不要这样试一下,我没测试,看你写的类方法,所以给出一点小建议!☺

    raw 方法其实是不安全的,应该用 sanitize 详见: 别用 raw 和 html_safe

    module CatsHelper
    
      def cat_get_children cat
          return unless cat.is_a?(Cat) || cat.childs.present?
          content_tag(:ul, class: 'cat-ul') do
             cat.childs.map do |cat|
                 content_tag(:li, class: 'cat-ul-li') do
                    cat.name
                    get_children cat
                 end
              end
          end
      end
    
    end
    
    <ul>
       <% @cats.each do |cat| %>
         <li>
            <%= cat.name %>
            <%= sanitize cat_get_children(cat) %>
         </li>
       <% end %>
     </ul>
    
  • rails 无限级分类实现 ok,请教一个小问题 at July 04, 2014

    #2 楼 @flowerwrong <%= raw CatsHelper.get_children(cat) %>

  • 荐书:Redis 设计与实现 at July 03, 2014

    #27 楼 @franky_xhl 我昨天也在京东下的单,说没货,需外地调货

  • [深圳] 大疆创新科技有限公司 (DJI) 招聘 Ruby 开发工程师 3 名 at July 02, 2014

    待遇挺好的,可惜就不在北京,帮你顶一下

  • 荐书:Redis 设计与实现 at July 02, 2014

    好书 已京东下单 😄

  • 搭建一个后台管理网站,用 div、table 还是 iframe? at June 30, 2014

    什么 div / table 用 Bootstrap 忘了么?

  • 目前哪些基于 Solr 的分词器比较完善? at June 30, 2014

    #7 楼 @Peter sorry 没有给全称 是 IKAnalyzer 分词

  • 目前哪些基于 Solr 的分词器比较完善? at June 30, 2014

    用 Ik 多省事儿

  • ruby 能否自动生成变量名? at June 30, 2014

    没看元编程的书?

  • RubyConf Taiwan 2014 汇总 at June 30, 2014

    👍

  • Rails 4 后台作业问题 at June 29, 2014

    #4 楼 @ren_jiaxing 看到你用 Windwos 当服务器,我实在是不得不说,你的需求太高端了!

    但是我还是想告诉你,Windows 上也有任务管理,只是用的人少了点么!

  • 求助 Puma + Nginx 跑 Rails 出错 at June 29, 2014

    #8 楼 @steve 是这样的

  • 求助 Puma + Nginx 跑 Rails 出错 at June 28, 2014

    nginx.conf 配置里是不是没有加用户?

    示例

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