Skip to content

Instantly share code, notes, and snippets.

@skial
skial / Main.hx
Created January 17, 2011 09:45
haxe macro test
package ;
import js.Lib;
/**
* ...
* @author Skial Bainn
*/
class Main {
@skial
skial / Main.ml
Created June 16, 2011 19:59
--prefix option for haxe - kind of works...
(*
* Haxe Compiler
* Copyright (c)2005-2008 Nicolas Cannasse
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@skial
skial / Type.ml
Created June 17, 2011 13:47
--prefix option for haxe - kind of works...
(*
* Haxe Compiler
* Copyright (c)2005 Nicolas Cannasse
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@skial
skial / Optimizer.ml
Created June 17, 2011 13:47
--prefix option for haxe - kind of works...
(*
* Haxe Compiler
* Copyright (c)2005-2008 Nicolas Cannasse
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
@skial
skial / Type.hx
Created October 19, 2011 13:49
small changes to haxe js output
/*
* Copyright (c) 2005, The haXe Project Contributors
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* - Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* - Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
@skial
skial / Main.hx
Created October 31, 2011 12:43
Haxe -> javascript output -> [hand crafted] minified javascript output
package ;
import js.Lib;
class Main {
static function main() {
var div = Lib.document.getElementById('haxe:trace');
div.innerHTML = 'Message from mini me';
}
@skial
skial / A.hx
Created November 17, 2011 00:03
Weird behaviour with static methods...
package com.bainn;
extern class A {
public static function createB():B;
}
@skial
skial / Date.hx
Created December 8, 2011 23:08
Near to minimal php as possible - minimal code example
package ;
/**
* ...
* @author Skial Bainn
*/
extern class Date {
// http://www.php.net/manual/en/function.mktime.php
@skial
skial / Build.hx
Created December 21, 2011 12:11
Haxe Macro | Access build field doc
package uhu.macro.doc;
import haxe.macro.Context;
import haxe.macro.Expr;
import neko.io.File;
import neko.io.FileOutput;
/**
* ...
* @author Skial Bainn
*/
@skial
skial / readme.md
Created January 9, 2012 15:03
haxe-pygments.appspot.com readme

Welcome

Haxe-Pygment is an unofficial API for the Pygments syntax highlighting library, version 1.4. It's designed to provide syntax highlighting for web applications that don't have Python installed.


Usage

POST to http://haxe-pygments.appspot.com with lang and code parameters in the body.