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
[desktop] | |
icon-16.png - android/assets/icon-16.png | |
icon-32.png - android/assets/icon-32.png | |
icon-64.png - android/assets/icon-64.png | |
icon-192.png - android/assets/icon-192.png | |
icon-256.png - android/assets/icon-256.png | |
splash-desktop.png- android/assets/splash-desktop.png | |
langs/ - android/assets/langs/ | |
[android] |
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 java.util.regex.*; | |
class ItoR { | |
public static void main (String[] args) { | |
String source = "require \"non/Graphics\"\n" + | |
"require \"non/graphics\"\n" + | |
"require \"non/GFX\"\n" + | |
"require \"non/Audio\"\n"; | |
System.out.println(source + "\n"); | |
Pattern pattern = Pattern.compile("(\\s*)(require)(\\s?)(\")(.+)(\")"); |
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
with non | |
name = .project.name | |
music = .audio.newSource("music.ogg") | |
image = .graphics.newImage("image.png") | |
.load = -> | |
.audio.play(music) | |
.draw = -> | |
.graphics.print("Hello #{name}") |
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
enum Some { | |
One, | |
Two, | |
Three | |
} | |
class Thing { | |
public String name, password, another; | |
public Some thing; | |
} |
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
//pseudooooo | |
new ArrayList() {{ | |
add(something); | |
add(something); | |
}}; | |
//pseudooooo | |
new ArrayList() { | |
ArrayList () { | |
super(); |
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 java.lang.reflect.Field; | |
import java.util.ArrayList; | |
import java.util.Iterator; | |
import java.util.List; | |
import org.apache.commons.lang3.reflect.FieldUtils; | |
public static class WixList<T> extends ArrayList<T> { | |
/** | |
* Adds an item if it isnt already present |
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
project('kaizo') | |
name = 'kaizo' | |
version = '0.0.1' | |
namespace = 'Kaizo' | |
csharp = { | |
type = 'exe', | |
source = '../../src', | |
output = 'out', |
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
# Require some other modules | |
require "openfl/display/Sprite" | |
require "openfl/events/Event" | |
require "openfl/Lib" | |
# Set type of this module to class and extend it by OpenFL sprite | |
module class extends Sprite | |
# Module variables | |
def static appname = "My Application" |
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
-- vim: set ft=rb: | |
-- We can also use Haxe libraries | |
fs = require("sys/FileSystem") | |
-- Set default target to build() | |
def default = build | |
def build() | |
-- Copy something |
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 haxe.unit.TestCase | |
import haxe.unit.TestRunner | |
module self | |
def main = () => | |
def r = TestRunner.new() | |
r.add(MyTests.new()) | |
r.run() | |
class MyTests < TestCase |
OlderNewer