Ruby China
  • 社区
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • 注册
  • 登录
Daniel Lv 吕国宁
@lgn21st
管理员
第 3 位会员 / 2011-10-28

[email protected]
RubyChina 管理员
杭州市
193 篇帖子 / 6522 条回帖
523 关注者
90 正在关注
80 收藏
这哥们天天研究怎么减肥~~~ 多年过去后,这哥们越来越肥!
GitHub Public Repos
  • game_of_life 14

  • ether_address_monitor 10

    通过 etherscan 提供的 api 检查热钱包账户余额,如果余额小于 100 ether,则通过云片发送消息通知。

  • echo-api-server-demo 2

    Echo API Server Demo

  • carbonvote 1

  • ethnode 1

    build a docker image for ethfans' node

  • peatio 1

    An open-source assets exchange.

  • awesome-ruby 1

    :gem: A collection of awesome Ruby libraries, tools, frameworks and software

  • money-tree 1

    A Ruby implementation of Bitcoin HD Wallets (Hierarchical Deterministic) BIP32

  • Awesome-Layer-2 0

    All the layer 2 projects

  • beijing-2019 0

    The website for RustCon Asia 2018 in Beijing, China.

More on GitHub
  • 概况
  • 话题
  • 回帖
  • 收藏
  • 正在关注
  • 关注者
  • rails 程序和在 rails console 中执行有什么区别 at 2012年05月30日

    rails console 就是 rails。

  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月29日

    签到~

  • [杭州][2012年05月29号] Ruby Tuesday 大浪新地址 at 2012年05月29日

    这效果,沟通得靠吼了吧?

  • 问一下 Rspec 中的 subject 代表什么含义呢? at 2012年05月29日

    这个可以从英语语法中找到答案,it 是一个代词,所以 subject 你可以理解为 it 背后所指代的哪个名词(被指代的那个对象)

  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月29日

    今天的活动,@jjxp2007 准备的相当充分,绝对值得一听。 活动场地非常 cool,这里有一些活动场地的照片 http://www.douban.com/people/xinchejian/

  • [上海] 张江美资互联网公司急聘 Ruby 开发工程师 at 2012年05月29日

    @saybot 你好,我刚刚给 [email protected] 发了一封邮件,包括四个已删除招聘贴的存档以及原因解释,请查收,非常感谢贵公司对社区的支持。

  • 在 Ubuntu 里有没有什么命令确定 Nginx 配置文件位置? at 2012年05月28日

    当你执行 nginx -t 得时候,nginx 会去测试你得配置文件得语法,并告诉你配置文件是否写得正确,同时也告诉了你配置文件得路径:

    # nginx -t
    nginx: the configuration file /usr/local/etc/nginx/nginx.conf syntax is ok
    nginx: configuration file /usr/local/etc/nginx/nginx.conf test is successful
    
  • [杭州][2012年05月29号] Ruby Tuesday 大浪新地址 at 2012年05月28日

    让我想起了 CS 中得某张地图,呵呵...

  • 是不是可以在 iPad 上搭建 Rails? at 2012年05月28日

    #14 楼 @quakewang 真心膜拜,Android pad 上跑得起来 Ubuntu,然后还有 Ruby,然后继续 Rails...

  • 求助:css 文件究竟要放在那里 at 2012年05月27日

    #3 楼 @w7938940 不需要修改,你的做法已经是对的了,images 的目录在 assets/images

  • 头部代码实践,helpers 的使用。 at 2012年05月27日

    最终代码的处理非常干净漂亮,不过我认为这个处理手法跟 Rails 的 javascripts_include_tag 的处理手法如出一辙。

    https://raw.github.com/daz4126/sinatra-head-cleaner/master/sinatra/head_cleaner.rb

    require 'sinatra/base'
    
    module Sinatra
      module ClearHead
        def meta
          html="<meta charset=\"utf-8\" /><meta name=\"viewport\" content=\"width=device-width, initial-scale=1.0, minimum-scale=1.0\"/>"
          html << "<meta name=\"description\"content=\"#{settings.desc}\"  />" if settings.desc
          html << "<meta name=\"author\" content=\"#{settings.author}\" />" if settings.author
        end
    
        def favicon
          "<link href=\"/favicon.ico\" rel=\"shortcut icon\" />"
        end
    
        def ie_shim
          "<!--[if lt IE 9]><script src=\"http://html5shiv.googlecode.com/svn/trunk/html5.js\"></script><![endif]-->"
        end
    
        def title value=nil
          @title = value || settings.title || "untitled"
        end
    
        def title_tag
          "<title>#{@title}</title>"
        end
    
        def path_to script
          case script
            when :jquery then 'https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'
            when :rightjs then 'http://cdn.rightjs.org/right-2.3.0.js'
            when :backbone then 'http://cdnjs.cloudflare.com/ajax/libs/backbone.js/0.9.0/backbone-min.js'
            when :underscore then 'http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.3.1/underscore-min.js'
            #moo, prototype, scriptaculous, jquery ui, yui, dojo, raphael, extjs      
            else "/javascripts/#{script}.js"
          end
        end
    
        def javascripts(*args)
          js = []
          js << settings.javascripts if settings.respond_to?('javascripts')
          js << args
          js << @js if @js
          js.flatten.uniq.map do |script| 
            "<script src=\"#{path_to script}\"></script>"
          end.join
        end
    
        def js(*args)
          @js ||= []
          @js = args
        end
    
        def styles(*args)
            css = []
            css << settings.css if settings.respond_to?('css')
            css << args
            css << @css if @css
            css.flatten.uniq.map do |stylesheet| 
              "<link href=\"/#{stylesheet}.css\" media=\"screen, projection\" rel=\"stylesheet\" />"
            end.join    
        end
    
        def css(*args)
          @css ||= []
          @css += args
        end
    
        def webfonts(*args)
          "<link href=\"http://fonts.googleapis.com/css?family=#{((@fonts?settings.fonts+@fonts:settings.fonts)+args).uniq.*'|'}\" rel=\"stylesheet\" />"
        end
      end
    
      helpers ClearHead
    end
    
  • 是不是可以在 iPad 上搭建 Rails? at 2012年05月27日

    在 iPad 上搞 Rails,背后的需求是?

  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月27日

    为什么总有人问 RubyTuesday 是否欢迎新手呢?想来就来。

  • RubyTuesday 上海视频 20120424 - OAuth2 的前世今生 at 2012年05月27日

    #10 楼 @Desert 这个,一不小心被我忘记了。

  • callbacks 适用场景 at 2012年05月24日

    基于我对 Callback 的理解,我认为 Callback 的初衷,就是为了让你用优雅的方式去序列化组织你的业务逻辑。Callback 当然能用于写业务代码。

    Callback 不仅仅用于 ActiveRecord 对象上,在 Controller 中也有用到,同样的设计在其他很多地方都可以用到。

  • [上海][2012年05月29日] Ruby Tuesday 基于 Rails 和 iPhone 的移动开发实践 at 2012年05月23日

    顶起来!

  • [上海] 新技实业有限公司招聘 Rails/Sinatra 高手 × 2 [10k-22k] at 2012年05月23日

    顶一个,又一家上海的公司,赞啊~ 曹 10,好久不见你了,这是你自己的公司招聘嘛?

  • [上海] 张江美资互联网公司急聘 Ruby 开发工程师 at 2012年05月23日

    顶一下,又一家上海招聘 Ruby on Rails 的公司。

  • [杭州][2012年05月22号] Ruby Tuesday 召集 at 2012年05月22日

    看起来比以前的 EAC 还要牛啊,赞一个!

  • 求收留,地点不限 at 2012年05月21日

    建议求收留之际,应先更新一下自己的头像,否则在社区里面,看到你的帖子或者回复的时候,看起来跟其他用默认头像的人一样,分不出差别,很容易被人忽略的。

  • Twitter 开源了它的 Reputation 系统插件 at 2012年05月18日

    @s6520643 主题帖和内容做了一点修改。建议发布帖子的时候请尽量不要仅仅一个标题一个 link,最好附带上下文信息。

  • 中文 Railscast 第一期上线 at 2012年05月18日

    @poshboytl 到我这里来吧,我给你录制一期 Play by play,揭秘你是怎么录制一期视频的,呵呵。

  • 第一期 Railscasts-china live show 视频 with @huacnlee (第二期也已发布) at 2012年05月18日

    额~下载的时候发现,这一期视频的的尺寸达到了空前的.... 367 MB

  • 第一期 Railscasts-china live show 视频 with @huacnlee (第二期也已发布) at 2012年05月18日

    赞美!

  • [杭州][2012年05月22号] Ruby Tuesday 召集 at 2012年05月18日

    我很好奇,之前你们组织的时候,如果没有主题的话,大家就一起读源码,这个具体怎么操作?

  • 我觉得《501 程序员宣言》挺有意思 at 2012年05月18日

    真心做不到啊~~~

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