This file contains 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
/* *** ** | |
* The Base64Transcoder library is the work of Jonathan Wright, | |
* available at http://code.google.com/p/oauth/. | |
* *** ** | |
*/ | |
- (NSString *)hmacsha1:(NSString *)text key:(NSString *)secret { | |
NSData *secretData = [secret dataUsingEncoding:NSUTF8StringEncoding]; | |
NSData *clearTextData = [text dataUsingEncoding:NSUTF8StringEncoding]; | |
unsigned char result[20]; | |
CCHmac(kCCHmacAlgSHA1, [secretData bytes], [secretData length], [clearTextData bytes], [clearTextData length], result); |
This file contains 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
package com.bango.utils; | |
import java.io.DataInputStream; | |
import java.io.DataOutputStream; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import javax.microedition.io.Connector; | |
import javax.microedition.io.HttpConnection; |
This file contains 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 | |
/** | |
Copyright 2009 Google Inc. All Rights Reserved. | |
**/ | |
error_reporting(0); | |
// Bot catcher | |
function __detectVisit() { | |
$agent = strtolower($_SEVER['HTTP_USER_AGENT']); |
This file contains 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 static String sha1(String s, String keyString) throws | |
UnsupportedEncodingException, NoSuchAlgorithmException, | |
InvalidKeyException { | |
SecretKeySpec key = new SecretKeySpec((keyString).getBytes("UTF-8"), "HmacSHA1"); | |
Mac mac = Mac.getInstance("HmacSHA1"); | |
mac.init(key); | |
byte[] bytes = mac.doFinal(s.getBytes("UTF-8")); | |
This file contains 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
var ready = self.setInterval("checkReady()", 100); | |
function checkReady() { | |
var root = document.getElementById("root"); // Change this to any HTML element | |
if(typeof root != 'undefined') { | |
window.clearInterval(ready); | |
__init(); | |
} | |
} |
This file contains 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
private class RunStartupTask extends AsyncTask<Problem, Idea, Execution> { | |
public static final List<Founder> founders = new ArrayList<Founder>(); | |
private ProgressDialog dialog; | |
@Override | |
protected void onPreExecute() { | |
founders.add("Clark"); | |
founders.add("Kent"); |
This file contains 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 if ( ! defined('BASEPATH')) exit('No direct script access allowed'); | |
/** | |
* OAUTHnesia for PHP Class | |
* | |
* @package OAUTHnesia | |
* @subpackage PHP | |
* @category OAUTH Client | |
* @author Batista R. Harahap <[email protected]> | |
* @link http://www.bango29.com |
This file contains 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
var OAUTHnesia = { | |
// Urbanesia API Base URL | |
API_BASE_URL: "http://api1.urbanesia.com/", | |
// OAUTH Tokens | |
OAUTH_CONSUMER_KEY: "", | |
OAUTH_CONSUMER_SECRET: "", | |
OAUTH_USER_KEY: "", | |
OAUTH_USER_SECRET: "", | |
This file contains 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
package com.urbanesia.api; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
import javax.microedition.io.Connector; | |
import javax.microedition.io.HttpConnection; | |
import net.rim.device.api.crypto.MD5Digest; |
This file contains 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
/** | |
* OAUTHnesia for Java Android Class | |
* | |
* @package OAUTHnesia | |
* @subpackage Java Android | |
* @category OAUTH Client | |
* @author Batista R. Harahap <[email protected]> | |
* @link http://www.bango29.com | |
* @license MIT License - http://www.opensource.org/licenses/mit-license.php | |
* |
OlderNewer