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 | |
/** | |
* Test controller extending Controller_Cambiata_REST | |
* Jonas Nyström - cambiata | |
* | |
* To be used with a route like this one: | |
* | |
* Route::set('rest', 'rest(/<par1>(/<par2>(/<par3>(/<par4>(/<par5>)))))(.<format>)') | |
* ->defaults(array( |
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 | |
/** | |
* Quickly assemled rest controller based on Kohana 3's Kohana_Controller_REST | |
* https://github.com/kohana/core/blob/3.1%2Fmaster/classes/kohana/controller/rest.php | |
* | |
* Added functionality from FuelPHP's Controller_Rest | |
* https://github.com/fuel/fuel/blob/develop/fuel/core/classes/controller/rest.php | |
* | |
* All credits to Kohana and FuelPHP teams! | |
* Jonas Nyström - cambiata |
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 | |
/** | |
* Attempt to wrap Http Authentication into a separate class... | |
* | |
* Ideas and some code from FuelPHP Controller_Rest | |
* https://github.com/fuel/fuel/blob/develop/fuel/core/classes/controller/rest.php | |
* | |
*/ |
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 | |
/** | |
* | |
* Simplistic View_Model attempt for Kohana 3 | |
* @author Cambiata | |
*/ | |
class View_Model { | |
public function render($viewfile=FALSE) | |
{ |
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
/** | |
* ... | |
* @author Jonas Nyström | |
*/ | |
class KeyboardTools { | |
/** | |
* Targeting neko and windows, this method returns the sam keycodes for | |
* letters a-z and the numeric keyboard as when targeting flash/html5 |
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 ; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; | |
import flash.display.PixelSnapping; | |
import flash.display.StageAlign; | |
import flash.display.StageScaleMode; | |
import flash.events.Event; | |
import flash.Lib; | |
import starling.display.Image; |
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 ; | |
import neko.Lib; | |
import dci.Context; | |
/** | |
* ... | |
* @author | |
*/ |
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 cx.data; | |
import haxe.io.Bytes; | |
import haxe.io.BytesData; | |
import haxe.io.BytesInput; | |
#if js | |
import js.html.ArrayBuffer; | |
import js.html.DataView; | |
import js.html.XMLHttpRequest; |
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 following will be macromagically transformed... | |
class LazyExample implements Lazy | |
{ | |
var values:Array<Int>; | |
public function new() | |
{ | |
this.values = [3, 5, 1, 7]; | |
} |
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 ; | |
import lazy.Lazy; | |
class Main | |
{ | |
static function main() | |
{ | |
var t:TestLazy = new TestLazy(); | |
trace(t.sum); | |
trace(t.sum); |
OlderNewer