Skip to content

Instantly share code, notes, and snippets.

Avatar

KJB IBwWG

View GitHub Profile
View flatten.pl
use strict;
use warnings;
use Test;
BEGIN { plan tests => 4 }
my $commonResult = [-1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11];
joinOkay($commonResult, IBwWG::Flattener::flatten(-1, 0, 1, 2, [3], [4, [5, 6]], [[7]], 8, 9, [10, 11]));
joinOkay($commonResult, IBwWG::Flattener::flatten([[[-1]]], 0, 1, 2, [3], [4, [5, 6]], [[7], [8, [9]]], 10, 11));
@IBwWG
IBwWG / install-haxe.sh
Last active Jun 5, 2018 — forked from jgranick/install-haxe.sh
Haxe Linux install script
View install-haxe.sh
#!/bin/sh
HAXE_VERSION=3.4.2
NEKO_VERSION=2.1.0
if [ `uname -m` = "armv7l" ]; then
HAXE_VERSION=3.1.3
View install_flash_debugger_for_linux.sh
#!/bin/sh
echo ""
echo "-----------------------------------"
echo " Installing Flash Debugger"
echo "-----------------------------------"
wget -c https://fpdownload.macromedia.com/pub/labs/flashruntimes/flashplayer/linux64/flash_player_sa_linux_debug.x86_64.tar.gz
tar xvzf flash_player_sa_linux_debug.x86_64.tar.gz
rm flash_player_sa_linux_debug.x86_64.tar.gz
@IBwWG
IBwWG / PlayState.hx
Last active Mar 5, 2020 — forked from MSGhero/PlayState.hx
9-Slice Algo Test
View PlayState.hx
package;
import flash.display.BitmapData;
import flash.geom.Matrix;
import flash.geom.Point;
import flash.geom.Rectangle;
import flixel.FlxSprite;
import flixel.FlxState;
/**