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
| require 'gistit' | |
| gist = Gistit.new | |
| gist.paste("puts 'hello world!'") # => 12345 | |
| gist.delete 12345 # => true |
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
| public class FastPass { | |
| public static string url(string key, string secret, string email, string name, string uid); | |
| public static string url(string key, string secret, string email, string name, string uid, bool isSecure); | |
| public static string url(string key, string secret, string email, string name, string uid, bool isSecure, Dictionary<string, string> privateFields); | |
| public static string script(string key, string secret, string email, string name, string uid); | |
| public static string script(string key, string secret, string email, string name, string uid, bool isSecure); | |
| public static string script(string key, string secret, string email, string name, string uid, bool isSecure, Dictionary<string, string> privateFields); | |
| } |
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
| Dictionary<string, string> parms = new Dictionary<string, string>(); | |
| parms.Add("twitter_name", "nullstyle"); | |
| var result = FastPass.script("lmwjv4kzwi27", "fiei6iv61jnoukaq1aylwd8vcmnkafrs", "[email protected]", "Scott", "nullstyle", false, parms); | |
| Output: | |
| <script src="http://getsatisfaction.com/fastpass?email=scott%40getsatisfaction.com&name=Scott&oauth_consumer_key=lmwjv4kzwi27&oauth_nonce=wpiZFNjJxFKq8z9V3L6uYoff5p2m62mXMBJClzm9A&oauth_signature=V99fKTkbGx4jm4GcIWNffClv97U%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1229463267&oauth_token=&oauth_version=1.0&twitter_name=nullstyle&uid=nullstyle" alt="" /> |
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
| class FastPass | |
| def self.url(consumer_key, consumer_secret, email, nickname, unique_id, secure=false, private_fields={}) ; end | |
| def self.script(consumer_key, consumer_secret, email, nickname, unique_id, secure=false, private_fields={}) ; end | |
| end |
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
| <%= FastPass.script(CONSUMER_KEY, CONSUMER_SECRET, current_user.email, current_user.name, current_user.id) %> |
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
| class FastPass: | |
| @staticmethod | |
| def url(key, secret, email, name, uid, isSecure=False, **privateFields): | |
| pass | |
| @staticmethod | |
| def script(key, secret, email, name, uid, isSecure=False, **privateFields): | |
| pass |
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
| Call: | |
| FastPass.script("lmwjv4kzwi27", "fiei6iv61jnoukaq1aylwd8vcmnkafrs", "[email protected]", "Scott", "nullstyle", False, twitter_name = "nullstyle") | |
| Output: | |
| <script src="http://getsatisfaction.com/fastpass?email=scott%40getsatisfaction.com&name=Scott&oauth_consumer_key=lmwjv4kzwi27&oauth_nonce=wpiZFNjJxFKq8z9V3L6uYoff5p2m62mXMBJClzm9A&oauth_signature=V99fKTkbGx4jm4GcIWNffClv97U%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1229463267&oauth_token=&oauth_version=1.0&twitter_name=nullstyle&uid=nullstyle" alt="" /> |
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
| class FastPass { | |
| public static function url($key, $secret, $email, $name, $uid, $is_secure=false, $privateFields=array()) {} | |
| public static function script($key, $secret, $email, $name, $uid, $is_secure=false, $privateFields=array()) {} | |
| } |
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
| Call: | |
| FastPass::script("lmwjv4kzwi27", "fiei6iv61jnoukaq1aylwd8vcmnkafrs", "[email protected]", "Scott", "nullstyle", false, array("twitter_name" => "nullstyle")) | |
| Output: | |
| <script src="http://getsatisfaction.com/fastpass?email=scott%40getsatisfaction.com&name=Scott&oauth_consumer_key=lmwjv4kzwi27&oauth_nonce=wpiZFNjJxFKq8z9V3L6uYoff5p2m62mXMBJClzm9A&oauth_signature=V99fKTkbGx4jm4GcIWNffClv97U%3D&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1229463267&oauth_token=&oauth_version=1.0&twitter_name=nullstyle&uid=nullstyle" alt="" /> |
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
| public class FastPass { | |
| public static String url(String key, String secret, String email, String name, String uid) throws OAuthException, IOException, URISyntaxException; | |
| public static String url(String key, String secret, String email, String name, String uid, boolean isSecure) throws OAuthException, IOException, URISyntaxException; | |
| public static String url(String key, String secret, String email, String name, String uid, boolean isSecure, HashMap<String, String> privateFields) throws OAuthException, IOException, URISyntaxException; | |
| public static String script(String key, String secret, String email, String name, String uid) throws OAuthException, IOException, URISyntaxException; | |
| public static String script(String key, String secret, String email, String name, String uid, boolean isSecure) throws OAuthException, IOException, URISyntaxException; | |
| public static String script(String key, String secret, String email, String name, String uid, boolean isSecure, HashMap<String, String> privateFields) th |
OlderNewer