This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| {"EN_KEY":["ついったー"],"EN_VALUE":["twitter"],"JAJP_KEY":["こしがや","ゆうき"],"JAJP_VALUE":["越谷","祐希"]} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CONSUMER_KEY = '' | |
| CONSUMER_SECRET = '' | |
| BASE_URL = 'http://api.mixi-platform.com/os/0.8' | |
| require 'rubygems' | |
| require 'oauth' | |
| require 'json' | |
| requester_id = 1555125 | |
| consumer = OAuth::Consumer.new(CONSUMER_KEY, CONSUMER_SECRET, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # /opensocial-0.0.4/lib/opensocial/auth/action_controller_request.rb | |
| module OAuth::RequestProxy #:nodoc: all | |
| class ActionControllerRequest < OAuth::RequestProxy::Base | |
| #proxies ActionController::AbstractRequest | |
| proxies(defined?(ActionController::AbstractRequest) ? ActionController::AbstractRequest : ActionController::Request) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # coding: utf-8 | |
| require 'rubygems' | |
| require 'net/https' | |
| require 'net/http' | |
| require 'rack' | |
| email = Rack::Utils.escape('your google account mail address') | |
| password = Rack::Utils.escape('your google account password') | |
| service = 'local' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Entry { | |
| private $title; | |
| private $body; | |
| private $posted_at; | |
| private $author; | |
| public function getTitle() { | |
| return $this->title; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Entry { | |
| private $title; | |
| private $body; | |
| private $posted_at; | |
| private $author; | |
| public function __set($key, $value) { | |
| $this->$key = $value; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Square { | |
| public $height; | |
| public $width; | |
| } | |
| $square = new Square(); | |
| $square->height = 100; | |
| $square->width = 80; // 正方形なのに縦と横が同じじゃない |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Square { | |
| private $height; | |
| private $width; | |
| public function setHeight($height) { | |
| $this->height = $height; | |
| $this->widh = $height; | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| class Square { | |
| private $height; | |
| private $width; | |
| public function setLength($length) { | |
| $this->height = $length; | |
| $this->width= $length; | |
| } |