Skip to content

Instantly share code, notes, and snippets.

Nov Matake nov

Block or report user

Report or block nov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:124110
# NOTICE:
# JsonMarkup returns Hash, not Json text.
# You need to call to_json for returned target.
# USAGE
# def to_markup(markup, options = {})
# markup = case format
# when :xml
# Builder::XmlMarkup.new
# when :json
View gist:125623
# environment.rb
VERSION_DEFAULT = Version1
# user.rb
class User
include Builder::UserMarkup
end
View gist:128538
require 'net/http'
require 'rubygems'
require 'json'
params = {
:context => {
:country => 'ALL',
:language => 'ja'
},
:gadgets => [{
View gist:148908
class RequestToken < OauthToken
attr_accessor :provided_oauth_verifier
def authorize!(user)
return false if authorized?
self.user = user
self.authorized_at = Time.now
# self.verifier=OAuth::Helper.generate_key(16)
self.verifier=OAuth::Helper.generate_key[0,20]
View gist:248176
require 'rubygems'
require 'oauth'
htt_method = :get
endpoint = 'http://oauth.service-provider.com/oauth/request_token'
consumer_secret = 'CONSUMER_SECRET'
token_secret = 'ACCESS_TOKEN_SECRET'
request_params = {
# ADD ALL PARAMETERS HERE
View Patch for OAuth Authentication (Twitter login)
module OAuth
class RequestToken
def authenticate_url
params = (params || {}).merge(:oauth_token => self.token)
build_authorize_url(consumer.authenticate_url, params)
end
end
View changed-----to-----at-the-end-of-sentences-tried-to-simplify-a-few-sentences.patch
From d1dd858ec3904d58c096bd0b31ab0652e754e3fa Mon Sep 17 00:00:00 2001
From: nov matake <nov@matake.jp>
Date: Fri, 12 Mar 2010 20:21:24 +0900
Subject: [PATCH] =?UTF-8?q?changed=20":"=20to=20"=E3=80=82"=20at=20the=20end=20of=20sentences
=20tried=20to=20simplify=20a=20few=20sentences?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
View reviewed-1-3-to-2-1.patch
From 4a60060d69750362311ef58a2fff471d6d58970b Mon Sep 17 00:00:00 2001
From: nov matake <nov@matake.jp>
Date: Tue, 16 Mar 2010 22:05:23 +0900
Subject: [PATCH] reviewed 1.3 to 2.1
this commit needs to be confirmed by all translators.
---
draft-hammer-oauth-10.xml | 45 +++++++++++++++++++++++----------------------
1 files changed, 23 insertions(+), 22 deletions(-)
View reviewed-3---3-1.patch
From 9a24205333b0cdf880abc1e4246a5ec8c89db48d Mon Sep 17 00:00:00 2001
From: nov matake <nov@matake.jp>
Date: Tue, 16 Mar 2010 23:37:25 +0900
Subject: [PATCH] reviewed 3 & 3.1
---
draft-hammer-oauth-10.xml | 28 ++++++++++++++--------------
1 files changed, 14 insertions(+), 14 deletions(-)
diff --git a/draft-hammer-oauth-10.xml b/draft-hammer-oauth-10.xml
View reviewed-3-2---3-3---3-4.patch
From 6fc26a55c5f1d10ddaba15c751f29d830bfd947d Mon Sep 17 00:00:00 2001
From: nov matake <nov@matake.jp>
Date: Fri, 19 Mar 2010 12:02:25 +0900
Subject: [PATCH] reviewed 3.2 & 3.3 & 3.4
---
draft-hammer-oauth-10.xml | 45 ++++++++++++++++++++++++---------------------
1 files changed, 24 insertions(+), 21 deletions(-)
diff --git a/draft-hammer-oauth-10.xml b/draft-hammer-oauth-10.xml
You can’t perform that action at this time.