Ruby China
  • Topics
  • 招聘
  • Wiki
  • 酷站
  • Gems
  • Sign Up
  • Sign In
jimmy
@fresh_fish
VIP
NO. 395 / 2011-12-05

北京
29 Topics / 1168 Replies
14 Followers
11 Following
241 Favorites
GitHub Public Repos
  • kaixin 1

    Yo, from ie6 to mordern browsers

  • one_cms 1

    Simplest CMS system

  • jquery-sticky-header-r... 0

    A jquery plugin to make something sticky, relative to their parent.

  • fedex 0

    Ruby library to interact with FedEx Rate Web Service

  • exception-track 0

    Tracking ⚠️ exceptions for Rails application and store them in database.

  • wx_pay 0

    An unofficial simple wechat pay gem

  • one_cms_v2 0

  • h4cn 0

  • themes_on_rails 0

    Adds multi themes support to your Rails 3/4/5 application

  • DouyinHooker 0

    Xposed module for TikTok v4.9.8(TikTok助手) 突破锁区/修改地区/去水印/点赞自动保存

More on GitHub
  • Overview
  • Topics
  • Replies
  • Favorites
  • Following
  • Followers
  • 杭州 Ruby Tuesday 7 月 3 日,线上活动 at July 03, 2012

    #22 楼 @huacnlee 时间能不能再往后延一个小时,帝都交通拥堵,伤不起啊

  • 看了代码才知道,Ruby China 的功能是如此丰富 at July 03, 2012

    #13 楼 @fsword 哈哈

  • 杭州 Ruby Tuesday 7 月 3 日,线上活动 at July 03, 2012

    #20 楼 @huacnlee Google hangouts 是不是得上 Google+ 了啊~ 要不要先添加联系人?

  • [上海][2012年07月03日] Ruby Tuesday 活动公告 at July 03, 2012

    #9 楼 @azhao 搞起来!想向各位大牛学习!

  • [成都] 创业团队招聘 Ruby on Rails 研发人员 at July 03, 2012

    补充:空气糟糕,食物差...

  • [成都] 创业团队招聘 Ruby on Rails 研发人员 at July 03, 2012

    北京又悲催的漂过,房价高,消费高,消费体验嘛,咳.....

  • [上海][2012年07月03日] Ruby Tuesday 活动公告 at July 02, 2012

    悲催的北京...

  • [北京] 热气球创业团队 - 寻 Ruby 工程师一起开始探险!!! at July 01, 2012

    帮你顶一下,说一下你们正在做的事吧 或者贴个网址

  • [上海] 实习生招聘, 你大学里遇到的最有趣的实习 at June 30, 2012

    怎么回事 删掉一条回复了?

  • 微博现在 omniauth 认证到底是 oauth 还是 oauth2? at June 30, 2012

    #5 楼 @hlcfan 用 'omniauth-oauth2'

    require 'omniauth-oauth2'
    
    module OmniAuth
      module Strategies
        class Weibo < OmniAuth::Strategies::OAuth2
          # Give your strategy a name.
          option :name, "weibo"
    
          # This is where you pass the options you would pass when
          # initializing your consumer from the OAuth gem.
          option :client_options, { 
            :site              =>   'https://api.weibo.com',
            :authorize_url     =>   '/oauth2/authorize',
            :token_url         =>   '/oauth2/access_token'
          } 
    
          option :token_params, {
            # SET :parse because weibo oauth2 access_token response with "content-type"=>"text/plain;charset=UTF-8",
            # and when you use ruby 1.8.7, the response body was not a valid HASH (see: https://github.com/intridea/oauth2/issues/75)
            # :body=>"{\"access_token\":\"2.001FOK5CacB2wCc20a59773d0uSGnj\",\"expires_in\":86400,\"uid\":\"2189335154\"}"}
            :parse => :json
          }      
    
          # These are called after authentication has succeeded. If
          # possible, you should try to set the UID without making
          # additional calls (if the user id is returned with the token
          # or as a URI parameter). This may not be possible with all
          # providers.
          uid { raw_info['id'] }
    
    
          info do
            {
              :nickname => raw_info['screen_name'],
              :name => raw_info['name'],
              :location => raw_info['location'],
              :avatar_url => raw_info['avatar_large']
            }
          end
    
          extra do
            {
              'raw_info' => raw_info
            }
          end
    
          def raw_info
            # SET :mode because by default it will use :header option, and send out header like
            # opts[:headers]={"Authorization"=>"Bearer 2.001FOK5CacB2wCc20a59773d0uSGnj"}
            # this doesn't align with weibo API (see: http://open.weibo.com/wiki/2/account/get_uid)
            access_token.options[:mode] = :query
            access_token.options[:param_name] = 'access_token'
            @uid ||= access_token.get('/2/account/get_uid.json').parsed["uid"]
            @raw_info ||= access_token.get("/2/users/show.json", :params => {:uid => @uid}).parsed
          end
        end
      end
    end
    

    initializers 中 omniauth.rb

    Rails.application.config.middleware.use OmniAuth::Builder do
      require 'weibo'
      provider :weibo, Setting.weibo_key, Setting.weibo_secret
    end
    
  • 话说怎么这里成了 BS 的讨论版了- - at June 30, 2012

    还是看需要吧,你想要不一样的风格时就自己写

  • [上海] 想和码婆一起工作吗? at June 30, 2012

    好诱人啊~~

  • 多态关联用的多吗? at June 29, 2012

    #5 楼 @zhenning has_many :comments, :as => :commentable,这个应该使用频率相当高吧

  • 关于飞信的鲜为人知的秘密 at June 27, 2012

    毕业后就没用过了

  • 大家觉得这个社交网站怎么样? at June 25, 2012

    感觉很山寨。

  • 怎么备案? 一个普通的大学生想建个网站怎么备案啊,听说各种麻烦啊 at June 24, 2012

    把服务器放在国外就不用备案了~

  • Linode 25 万美元回馈 at June 21, 2012

    真是悲剧 刚才 ping 了一下 500 多了~

  • 真的不觉得 Ruby-China 的背景好看 at June 21, 2012

    #2 楼 @fanix 邪恶...

  • Linode 25 万美元回馈 at June 20, 2012

    #48 楼 @alucardpj 应该是定时取的,或者是在队列里,不是即时更新的,我猜的

  • Linode 25 万美元回馈 at June 20, 2012

    #47 楼 @liluo #41 楼 @alucardpj 刚才去他们那个在线聊天室聊了聊,这种情况挺多的,给这个账号 发邮件 [email protected], 然后只能等着了...

  • Linode 25 万美元回馈 at June 20, 2012

    #39 楼 @alucardpj 我也是,收到这么一个邮件

    * linode213296 - (8080605) Linode Initial Configuration - Completed Tue, 19 Jun 2012 16:33:17 GMT
    
    This is a new feature.  You can change your notification settings via https://manager.linode.com/profile.
    

    看来他们也在解决,唉,只能等了

  • Linode 25 万美元回馈 at June 20, 2012

    #34 楼 @liluo 账号能登录了?

  • Linode 25 万美元回馈 at June 20, 2012

    #25 楼 @qichunren 刚才支付了一下,钱被扣了,但是注册失败,登录显示账号微验证,邮箱也没有邮件...难道又悲剧了?

  • Linode 25 万美元回馈 at June 20, 2012

    #29 楼 @jn615 人太多了~~等会儿再看吧 还有剩的再买

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