Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
刘宏庆
@ane
Member
NO. 8972 / 2013-09-02

[email protected]
听云
天津
84 Topics / 417 Replies
15 Followers
12 Following
59 Favorites
做一个快乐的程序员
GitHub Public Repos
  • course 0

  • postgres 0

    practice postgres

  • LeetCode 0

    LeetCode刷题记录与面试整理

  • ralgo 0

  • pghero 0

    A performance dashboard for Postgres

  • ActiveRecordExtended 0

    Adds additional postgres functionality to an ActiveRecord / Rails application

  • kitsu-server 0

    :steam_locomotive: Rails API server for Kitsu

  • pg_search 0

    pg_search builds ActiveRecord named scopes that take advantage of PostgreSQL’s full text search

  • fx 0

    Versioned database functions and triggers for Rails

  • Robinhood 0

    Unofficial Documentation of Robinhood Trade's Private API

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • ActiveRecord 批量插入数据的性能问题 at March 02, 2014

    #8 楼 @huacnlee mysql 这种需求,我第一个想到的就是用存储过程

  • [北京][去哪儿网] 招聘开发工程师 (4 种岗位) at March 02, 2014

    #15 楼 @numberaugust 勾搭吕?呵呵,好有内涵。目前还招吗

  • spec 测试 edit,update,destory at February 21, 2014

    #3 楼 @reyesyang 是的,的确如此

  • spec 测试 edit,update,destory at February 21, 2014

    #4 楼 @dddd1919 bingo

  • spec 测试 edit,update,destory at February 21, 2014

    #1 楼 @Rei 我是建了一个 id=1 的。是不是需要 rails s 跑起来,才能测?

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 17, 2014

    #11 楼 @spacex 你不说,我都忘记了

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 17, 2014

    #10 楼 @leozwa 有道理

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 16, 2014

    #4 楼 @iBachue 走马观花的看看语法书,记个 30%,看看别人的代码,再细看看语法书,轻松不少

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 16, 2014

    #4 楼 @iBachue 也可以吧,像我这样缺乏想象力的人,管看书不行,书和代码得结合。

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 16, 2014

    #1 楼 @iBachue 我一开始看别人的代码,就觉得迷糊

  • 从别的地方找到的,我估计新手会喜欢的。我整理一下发布 at February 16, 2014

    #1 楼 @iBachue 给新手的,谢谢

  • ruby-china 的源代码求解 at February 16, 2014

    #6 楼 @allenfantasy 有没有介绍这些%w的连接了?虽然我也猜到它肯定是集合的意思

  • ruby-china 的源代码求解 at February 16, 2014

    #1 楼 @Johnsonqu%w是什么意思

  • ruby-china 的源代码求解 at February 16, 2014

    #2 楼 @ichord%w是什么意思

  • ruby-china 的源代码求解 at February 16, 2014

    #1 楼 @Johnsonqu soga

  • 管理多个 ruby 使用不同的 rails。 at February 11, 2014

    #4 楼 @ruohanc 先记下你的说法,明天一定研究实践一下

  • 闭包如何访问外部变量 at February 11, 2014

    #37 楼 @yfractal 没错,因为 that 指的是 getNameFunc 的调用者 object

  • 闭包如何访问外部变量 at February 11, 2014

    #34 楼 @yfractal 你这样解释,豁然开朗

  • js 在 node 和 window 中的全局对象 at February 11, 2014

    #1 楼 @saiga 和我想的一样,未定义,

  • js 在 node 和 window 中的全局对象 at February 11, 2014

    #1 楼 @saiga 意思是,在浏览器中,无论在什么地方,this 指的都是 Object window?,这样的话,似乎就可以说通了

  • 闭包如何访问外部变量 at February 11, 2014

    #28 楼 @yfractal 我觉得你的子树与根不合适,我举个例子

    var name = "The Window";
      var object = {
        name : "My Object",
        getNameFunc : function(){
          return function(){
            return this.name;
          };
        }
      };
      alert(object.getNameFunc()());
    

    按照你的逻辑,似乎应该是 My Object,事实上,看这个http://davidshariff.com/blog/what-is-the-execution-context-in-javascript/

  • 闭包如何访问外部变量 at February 11, 2014

    #27 楼 @hisea

    var name = 'World!';
    var that=this;  
    (   
        function () {
        console.log(that.name);
        if (typeof name === 'undefined') {
            var name = 'Jack';
            console.log('Goodbye ' + name);
        } else {
            console.log('Hello ' + name);
        }
    })();
    

    我这样修改,似乎也不对啊,是用 node 执行的,若果是浏览器,this 会指向 window 全局环境,node 好像也应该有全局环境吧

  • 闭包如何访问外部变量 at February 11, 2014

    #27 楼 @hisea 这个顶,经典,

  • `["1", "2", "3"].map (parseInt) at February 10, 2014

    #8 楼 @saiga #7 楼 @kai1248 那结果怎么会 nan

  • 闭包如何访问外部变量 at February 10, 2014

    #23 楼 @zj0713001 在天津生活的都是雷锋啊,

  • `["1", "2", "3"].map (parseInt) at February 10, 2014

    #4 楼 @kai1248 map 难道不是迭代的意思?

  • `["1", "2", "3"].map (parseInt) at February 10, 2014

    #3 楼 @detailyang 是的,就是没看懂所以问问

  • 闭包如何访问外部变量 at February 10, 2014

    #18 楼 @rasefon 也就是我的想法基本是成立的,重名会覆盖

  • 闭包如何访问外部变量 at February 10, 2014

    #16 楼 @rasefon 他可能是用浏览器测试的,正如 14 楼所言,都是包在 window 这个全局下,我用 node 测试 undefined

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