Skip to content

Instantly share code, notes, and snippets.

Tom Byrne TomByrne

Block or report user

Report or block TomByrne

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@TomByrne
TomByrne / Haxe Wix Ubuntu Dockerfile
Last active Feb 6, 2019
Haxe / Wix / Ubuntu Dockerfile
View Haxe Wix Ubuntu Dockerfile
FROM syedhassaanahmed/wix-node
USER root
RUN mkdir /home/wix/src
WORKDIR /home/wix/src
# Haxe environment variables
ENV HAXEURL https://github.com/HaxeFoundation/haxe/releases/download/4.0.0-rc.1/haxe-4.0.0-rc.1-linux64.tar.gz
ENV HAXEPATH /root/haxe
ENV HAXE_STD_PATH $HAXEPATH/std/
@TomByrne
TomByrne / Haxe NPM Dependencies.md
Last active Jan 19, 2019
Packaging NPM dependencies into a JS/Haxe Application
View Haxe NPM Dependencies.md

When using NPM Dependencies in Haxe, the referenced JS doesn't get automatically pulled into your Haxe-compiled JS file. One way to include this JS is using webpack. These dependencies will only be resolved by webpack if you use the @:jsRequire metadata.

Firstly install webpack: npm i -g webpack.

After Haxe generates it's JS output, it will contain un-resolved require() calls. To resolve these dependencies (and any deeper dependencies), run webpack like this: webpack --config webpack.config.js

@TomByrne
TomByrne / ChromaKeyFilter.hx
Last active Apr 27, 2018
Chroma Key Filter for the Haxe version of Starling 2
View ChromaKeyFilter.hx
// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
@TomByrne
TomByrne / MultiExporter.jsx
Last active Jun 13, 2019
An Illustrator script for exporting layers and/or artboards into separate files (PNG8 / PNG24 / EPS / PDF / SVG / JPG / FXG).See http://www.tbyrne.org/export-illustrator-layers-to-svg-files
View MultiExporter.jsx
// MultiExporter.jsx
// Version 0.1
// Version 0.2 Adds PNG and EPS exports
// Version 0.3 Adds support for exporting at different resolutions
// Version 0.4 Adds support for SVG, changed EPS behaviour to minimise output filesize
// Version 0.5 Fixed cropping issues
// Version 0.6 Added inner padding mode to prevent circular bounds clipping
//
// Copyright 2013 Tom Byrne
// Comments or suggestions to tom@tbyrne.org
You can’t perform that action at this time.