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
//Adapted from http://haxe.org/doc/start/cpp | |
class Test { | |
static function main() { | |
//The following trace should reproduce the error regardless of haxe version 3+ | |
// trace(" | |
// Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! | |
// Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! Hello World! |
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
public var dimensions : Vector; | |
public var spacing : Float = 0.0; | |
public var line_height : Float = 0.0; | |
public var font_size : Float = 0.0; | |
public var font_character_count : Int = 0; | |
public var pages : Map<Int, Texture>; | |
public var characters : Map<Int, Character>; | |
public var kernings : Map< KerningKey, Int >; |
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
coreHelpers.excerpt_till_hrule = function (options) { | |
console.log(options); | |
var truncateOptions = (options || {}).hash || {}, | |
excerpt; | |
truncateOptions = _.pick(truncateOptions, ['words', 'characters']); | |
_.keys(truncateOptions).map(function (key) { | |
truncateOptions[key] = parseInt(truncateOptions[key], 10); |
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
import net.rezmason.utils.workers.BasicWorker; | |
import net.rezmason.utils.workers.BasicBoss; | |
class SimpleExample { | |
public static function main() { | |
var start = haxe.Timer.stamp(); | |
var do_loop = true; |
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
std::string FileDialogOpen( const std::string &title, const std::string &text, const std::vector<std::string> &fileTypes ) { | |
// NSArray *fileTypes = [NSArray arrayWithObjects:@"jpg",@"jpeg",nil]; | |
NSOpenPanel * panel = [NSOpenPanel openPanel]; | |
[panel setAllowsMultipleSelection:NO]; | |
[panel setCanChooseDirectories:NO]; | |
[panel setCanChooseFiles:YES]; | |
[panel setFloatingPanel:YES]; |
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
//General crap from startup and shutdown | |
void startup(void) { | |
//Create the objects we need to execute js in spidermonkey | |
spiderRuntime = JS_NewRuntime(0x100000); | |
spiderContext = JS_NewContext(spiderRuntime, 0x1000); |
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 com.underscorediscovery; | |
import com.eclecticdesignstudio.spritesheet.data.SpriteSheetFrame; | |
import com.eclecticdesignstudio.spritesheet.SpriteSheet; | |
import com.eclecticdesignstudio.spritesheet.data.BehaviorData; | |
import hxjson2.JSON; | |
class TexturePackerJSON { |
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
/* | |
Copyright (C) 2011 by Underscore Discovery, Sven "FuzzYspo0N" Bergstrom ( http://underscorediscovery.com ) | |
For more license information, please read the following | |
http://laboratory2D.com/#/license | |
The license is MIT based, the MIT license is appended to the file. | |
*/ |
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
/* | |
Copyright (C) 2011 by Underscore Discovery, Sven "FuzzYspo0N" Bergstrom ( http://underscorediscovery.com ) | |
For more license information, please read the following | |
http://laboratory2D.com/#/license | |
The license is MIT based, the MIT license is appended to the file. | |
*/ |
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
/* Copyright (c) 2012 Sven "FuzzYspo0N" Bergström | |
http://underscorediscovery.com | |
MIT Licensed. See LICENSE for full license. | |
Usage : node simplest.app.js | |
*/ | |
var |