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
class EmbededGithubGist extends Wordpress { | |
public function showGithubGist() { | |
return displayGist(); | |
} | |
} |
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
/** | |
* get the login url from oauth | |
* | |
* @return string $loginUrl | |
*/ | |
public function getLoginUrl() { | |
// create the twitterOAuth object using your consumer_key and consumer_secret, after creating an app on | |
// dev.twitter.com/apps | |
$this->twitterOAuth = new TwitterOAuth($this->consumerKey, $this->consumerSecret); |
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
/** | |
* login the user | |
* should receive the information from twitter/oauth if login was successful | |
* | |
* @param string $oauthtoken | |
* @param string $oauthVerifier | |
* @return boolean | |
*/ | |
public function loginUser($oauthtoken, $oauthVerifier) { |
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
#!/bin/bash | |
files=$( find $1 -name "*xlf" ) | |
for file in $files; do | |
list=$(cat $file | grep "id=" | cut -d '"' -f2) | |
for i in `echo $list`; do |