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
package; | |
// Consts for all assets IDs (openfl template). | |
// Copy to '%PROJECT_DIR%/templates/haxe/AssetId.hx' | |
// Add entry '<template path="templates"/>' to 'project.xml' | |
// Add "%EXPORT_DIR%/flash/haxe" as sources dir for IDE code completion | |
// Using in code: openfl.Assets.getText(AssetId.assets_data_txt) | |
// openfl.Assets.getBitmapData(AssetId.images_logo_png) | |
class AssetId { |
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
package; | |
import flash.display.DisplayObject; | |
import ru.stablex.ui.widgets.Widget; | |
enum VPolicy{ | |
Top; | |
Bottom; | |
Middle; | |
Justify; |
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
package ; | |
class MacroUtils { | |
public function new() { | |
} | |
/** Подставляет на этапе компиляции в код значение переданное компилятору через флаг -D (Например: -DsetLanguage=ru )*/ | |
macro public static function getDefinedValue(key:haxe.macro.Expr, defaultValue:haxe.macro.Expr) { | |
function getString(v:haxe.macro.Expr):String { | |
return switch(v.expr) { | |
case EConst(CString(str)): |
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
# how to make cert http://stackoverflow.com/questions/5833642/python-apns-sslerror | |
import time | |
from apns import APNs, Frame, Payload | |
apns = APNs(use_sandbox=True, cert_file='certkey.pem', enhanced=True) | |
print("start") | |
def response_listener(error_response): | |
print("client get error-response: " + str(error_response)) |
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
#!/bin/sh | |
############################################### | |
## test GCM | |
############################################### | |
api_key="" | |
reg_id="" | |
curl --header "Authorization: key=$api_key" --header Content-Type:"application/json" https://android.googleapis.com/gcm/send -d "{\"registration_ids\":[\"$reg_id\"],\"data\":{\"message\":\"Test Android Push Notificaiton\"}}" |
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
# http://wiki.ros.org/docker/Tutorials/GUI | |
# mount /etc/group and /etc/passwd read only | |
# set user from $USER | |
docker run -ti --rm -v $(pwd):/tmp/hx -w /tmp/hx -v /etc/group:/etc/group:ro -v /etc/passwd:/etc/passwd:ro —user=$USER debian:jessie |
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
#!/usr/bin/env bash | |
set -e | |
sudo mkdir -p /opt/flashplayer | |
temp_file=$(mktemp) | |
wget -O $temp_file https://fpdownload.macromedia.com/pub/flashplayer/updaters/22/flashplayer_22_sa_debug.exe | |
sudo cp $temp_file /opt/flashplayer/flashplayer.exe | |
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
The application works stable on previos version with -Dlegacy. | |
Toolchain: | |
linux/debian/jessie | |
haxe 3.2.1 | |
hxcpp 3.2.193 | |
lime 2.7.0 | |
openfl 3.4.0 | |
-DLegacy | |
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
#!/bin/bash | |
# Сборка образа с инструментарием | |
docker build -t sdk-flash-image sdk-flash | |
# Каталог кэша для монтирования в Docker контейнер в качестве домашнего каталога | |
HOME_CACHE="$HOME/.iceowl-docker-cache" | |
mkdir -p $HOME_CACHE | |
# Уникальное имя для контейнера (необязательно, но полезно для фильтрации) |
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
http://haxe.org | |
http://haxe.org/manual | |
http://try.haxe.org | |
http://haxe.io |
OlderNewer