View MySQLIDB Example
//Example | |
//======= | |
ini_set("display_errors", true); | |
error_reporting(E_ALL|E_STRICT & ~E_NOTICE); | |
set_error_handler(function($errno, $errstr, $errfile, $errline){ | |
throw new ErrorException($errstr, 0, $errno, $errfile, $errline); | |
}); | |
$db = MySQLiDB::getInstance(); |
View gist:1344759
the request ... | |
================ | |
{ | |
"method":"foobar", | |
"params":["foo", "bar", "baz"] | |
} | |
View JsonRpc Client (js)
JS Client using jquery ajax and json2.js | |
======================================== | |
App.invokeRpc = function(method, params, callback) | |
{ | |
var rpc = { | |
method:method, | |
params:params | |
}; |
View CallbackVO.as
package com.application.rpc | |
{ | |
/** | |
* ... | |
* @author seb | |
*/ | |
public dynamic class CallbackVO extends Object | |
{ | |
View gist:1372905
package com.basilicom.utils | |
{ | |
import flash.external.ExternalInterface; | |
public class FireLog | |
{ | |
public static function log(msg:String = null, data:* = null):void | |
{ | |
try |
View Lib_Utils_Array_List_Values.php
/** | |
* Created by JetBrains PhpStorm. | |
* User: seb | |
* Date: 02.11.11 | |
* Time: 09:55 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class Lib_Utils_Array_List_Values | |
{ |
View Lib_Utils_Vector_UnsignedInt.php
<?php | |
/** | |
* Lib_Utils_Vector_UnsignedInt | |
*/ | |
class Lib_Utils_Vector_UnsignedInt | |
{ |
View Lib_Utils_Vector_UnsignedBigIntString.php
<?php | |
/** | |
* Lib_Utils_Vector_UnsignedBigIntString | |
* | |
*/ | |
class Lib_Utils_Vector_UnsignedBigIntString | |
{ |
View Basilicom.console.js
try { | |
if (!Basilicom) { | |
Basilicom = {}; | |
} | |
}catch(e) { | |
Basilicom = {}; | |
} | |
// +++++ Basilicom.console ++++++++++++ |
View Lib_Utils_Array_Dictionary.php
<?php | |
/** | |
* Created by JetBrains PhpStorm. | |
* User: VAIO | |
* Date: 02.11.11 | |
* Time: 09:55 | |
* To change this template use File | Settings | File Templates. | |
*/ | |
class Lib_Utils_Array_Dictionary |
OlderNewer