Skip to content

Instantly share code, notes, and snippets.

package org.gestouch.extensions.starling
{
import flash.geom.Point;
import org.gestouch.core.ITouchHitTester;
import starling.core.Starling;
import starling.display.DisplayObject;
#!/usr/bin/env bash
# Assuming OS X Yosemite 10.10.4
# Install XCode and command line tools
# See https://itunes.apple.com/us/app/xcode/id497799835?mt=12#
# See https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/xcode-select.1.html
xcode-select --install
# Install the Homebrew package manager if you don't already use it; see source http://brew.sh
@fljot
fljot / Mac OS X 10_5_ Windows Ctrl.xml
Last active January 9, 2023 07:12
AutoHotkey mappings to emulate OSX keyboard shortcuts on Windows
<!-- put this to IDEA keymaps config folder. For v13 it is <userdir>\.IntelliJIdea13\config\keymaps\ -->
<?xml version="1.0" encoding="UTF-8"?>
<keymap version="1" name="Mac OS X 10.5+ Windows Ctrl" parent="Mac OS X 10.5+">
<action id="$Copy">
<keyboard-shortcut first-keystroke="meta C" />
<keyboard-shortcut first-keystroke="meta INSERT" />
<keyboard-shortcut first-keystroke="control C" />
<keyboard-shortcut first-keystroke="control INSERT" />
</action>
<action id="$Cut">
@fljot
fljot / gist:9282786
Created March 1, 2014 00:30
Flex mavenization (FDK)
http://flex.apache.org/download-utilities.html
https://cwiki.apache.org/confluence/display/FLEX/Apache+Flex+SDK+Mavenizer
http://anthonywhitford.blogspot.com/2013/09/mavenizing-flex-sdk-missing.html
#org.apache
java -cp flex-utilities/mavenizer/target/flex-sdk-converter-1.0.jar SDKGenerator sdkhome fdk true
#com.adobe
java -cp flex-utilities/mavenizer/target/flex-sdk-converter-1.0.jar SDKGenerator sdkhome fdk false
@fljot
fljot / gist:1078004
Created July 12, 2011 13:47
[AS3] Vector.<*> as argument
var v:Vector.<Sprite> = new Vector.<Sprite>();
trace(v is Vector.<*>);// true
var foo:Vector.<*>;
//foo = v;// Implicit coercion of a value of type __AS3__.vec:Vector.<flash.display:Sprite> to an unrelated type __AS3__.vec:Vector.<*>.
foo = v as Vector.<*>; // OK
var bar:Vector.<Sprite> = foo as Vector.<Sprite>;// OK
genericArgument(v);// true, 0, Hello from genericArgument()
//typedArgument(v);// Implicit coercion of a value of type __AS3__.vec:Vector.<flash.display:Sprite> to an unrelated type __AS3__.vec:Vector.<*>.