Skip to content

Instantly share code, notes, and snippets.

View alebianco's full-sized avatar

Alessandro Bianco alebianco

View GitHub Profile
@alebianco
alebianco / Batch_Publisher.jsfl
Created February 18, 2019 16:16 — forked from grvgl/Batch_Publisher.jsfl
JSFL file to publish multiple Flash files with single JSFL command
var tempDoc=undefined;
var searchSubDir="true"
if(fl.documents.length==0){
tempDoc=fl.createDocument();
}
var folder = getFolderURIFromUser();
exportlist=new Array();
if(folder){
if(folder.substr(0,8)!="file:///"){
folder="file:///"+folder.split(":").join("|").split("\\").join("/");
@alebianco
alebianco / gruntfile.js
Last active May 5, 2016 15:56
grunt-run-task issue #9
module.exports = function (grunt) {
grunt.initConfig({});
grunt.registerTask('test', 'testing grunt-run-task', function() {
var runTask = require('grunt-run-task');
runTask.loadNpmTasks("grunt-fileindex");
function createConfig(folder) {
return {
@alebianco
alebianco / gruntfile.js
Created May 5, 2016 15:50
grunt-run-task issue #5
module.exports = function (grunt) {
grunt.initConfig({});
grunt.registerTask('test', 'testing grunt-run-task', function() {
var runTask = require('grunt-run-task');
runTask.loadNpmTasks("grunt-fileindex");
function createConfig(folder) {
return {
@alebianco
alebianco / head-master.log
Created August 26, 2015 15:55
Haxe Formula versioning test
GL05259M:~ alessandro.bianco$ brew install haxe --HEAD
==> Installing dependencies for haxe: objective-caml, camlp4
==> Installing haxe dependency: objective-caml
==> Downloading https://homebrew.bintray.com/bottles/ocaml-4.02.3.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/ocaml-4.02.3.yosemite.bottle.tar.gz
==> Pouring ocaml-4.02.3.yosemite.bottle.tar.gz
🍺 /usr/local/Cellar/ocaml/4.02.3: 1187 files, 115M
==> Installing haxe dependency: camlp4
==> Downloading https://homebrew.bintray.com/bottles/camlp4-4.02.2+6_1.yosemite.bottle.tar.gz
Already downloaded: /Library/Caches/Homebrew/camlp4-4.02.2+6_1.yosemite.bottle.tar.gz
@alebianco
alebianco / Main.hx
Created August 19, 2015 14:19
Tink Streams
package ;
import tink.core.Callback;
import tink.core.Outcome;
import tink.core.Future;
@:expose("game")
@:keep
class Main {
@alebianco
alebianco / Main.hx
Created August 19, 2015 11:08
Promhx memory leak
package ;
import promhx.Deferred;
import promhx.Stream;
import promhx.deferred.DeferredStream;
@:expose("game")
@:keep
class Main {
@alebianco
alebianco / Main.hx
Created June 30, 2015 07:58
Promhx error catching test
package ;
import haxe.Timer;
import promhx.Deferred;
import promhx.Promise;
class Main {
public static var instance:Main;
@alebianco
alebianco / Main.hx
Last active August 29, 2015 14:23
Validate JSON with typedefs
import haxe.macro.Context;
import haxe.Json;
import sys.io.File;
import haxe.macro.Expr;
import haxe.macro.Type;
using haxe.macro.TypeTools;
using haxe.macro.ExprTools;
class Main {
@alebianco
alebianco / pullify.sh
Created March 13, 2014 14:35
pullify
git config --add remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/pr/*'
git fetch
git checkout pr/999
@alebianco
alebianco / prettylog
Created February 28, 2014 09:38
Configure a pretty format for git logs
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s (%Cgreen%cr%Creset) <%C(bold blue)%an %ae%Creset>' --abbrev-commit"