API Documentation, generated 2011-06-23T18:10:05+01:00
Actions : 7
Errors : 4
Output Types : 8
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 | |
$users = array( | |
'f884624f' => 'Jonathan', | |
); | |
if (!isset($_GET['tag'])) { | |
echo '0:No'; | |
die(); | |
} |
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 | |
$users = array( | |
'f884624f' => 'Jonathan', | |
); | |
$received = $_GET['tag']; | |
if (array_key_exists($received, $users)) { | |
echo 'Hi ' . $users[$received]; |
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 | |
$cacheDir = sys_get_temp_dir(); | |
echo 'Cache Dir: ' . $cacheDir . '<br />'; | |
$newCacheDir = $cacheDir . DIRECTORY_SEPARATOR . 'cache'; | |
echo 'New Cache Dir: ' . $newCacheDir . '<br />'; | |
if (!is_dir($newCacheDir)) { | |
mkdir($newCacheDir, 0777); |
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 | |
$query = http_build_query(array( | |
'discussion' => array( | |
'user_name' => 'Firstname Surname', | |
'user_email' => '[email protected]', | |
'title' => 'Some subject', | |
'body' => 'The description of the discussion.', | |
'private' => 1 | |
) |
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
import datetime | |
import os | |
import sys | |
from boto.exception import BotoServerError | |
import boto.ec2.cloudwatch.metric | |
import boto | |
AWS_ACCESS_KEY = "XXX" |
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
Index: RESTFrameworks.wiki | |
=================================================================== | |
--- RESTFrameworks.wiki (revision 293) | |
+++ RESTFrameworks.wiki (working copy) | |
@@ -7,6 +7,7 @@ | |
* [ActiveResource] [http://api.rubyonrails.org/classes/ActiveResource/Base.html http://www.gstatic.com/codesite/ph/images/tearoff_icon.gif] (Ruby on Rails) | |
* [compojureREST Compjure-REST] [http://github.com/ordnungswidrig/compojure-rest http://www.gstatic.com/codesite/ph/images/tearoff_icon.gif] | |
* [Exyus] [http://www.exyus.org/ http://www.gstatic.com/codesite/ph/images/tearoff_icon.gif] | |
+ * [FRAPI] [http://getfrapi.com http://www.gstatic.com/codesite/ph/images/tearoff_icon.gif] | |
* [Jersey] [http://wikis.sun.com/display/Jersey/Main http://www.gstatic.com/codesite/ph/images/tearoff_icon.gif] |
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
$.each($('a'), function(i, item) { | |
$(this).attr('href', 'http://en.wikipedia.org/wiki/Irish_Declaration_of_Independence'); | |
}); |