Instantly share code, notes, and snippets.

View MicrosoftAjax.js
Function.__typeName = "Function";
Function.__class = true;
Function.createCallback = function(b, a) {
return function() {
var e = arguments.length;
if (e > 0) {
var d = [];
for (var c = 0; c < e; c++) d[c] = arguments[c];
d[e] = a;
return b.apply(this, d)
View CollectionTest.php
<?php
class CollectionTest extends \PHPUnit_Framework_TestCase
{
public function testArrayIteratorSort()
{
$itemA = array(
'token' => "SOME_TOKEN",
'default' => "DEFAULT A",
'order' => 5
);
View schema.sql
-- -----------------------------------------------------
-- Table `ssg`.`map_ground_type`
-- -----------------------------------------------------
DROP TABLE IF EXISTS `ssg`.`map_ground_type` ;
CREATE TABLE IF NOT EXISTS `ssg`.`map_ground_type` (
`mapGroundTypeId` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`type` ENUM('sea','stone','sand','forest','grass','mountain') NOT NULL DEFAULT 'grass',
PRIMARY KEY (`mapGroundTypeId`))
ENGINE = InnoDB
View MapTile.php
<?php
// namespace declaration
namespace Application\Model\Map;
use \PDO;
use \RecursiveDirectoryIterator;
use Application\Core\Cache;
use Application\Model\BaseModel;
use Application\Model\iModel;