Skip to content

Instantly share code, notes, and snippets.

Franco Ponticelli fponticelli

Block or report user

Report or block fponticelli

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
@fponticelli
fponticelli / config.ini
Created Feb 3, 2012
ReportGrid visualizations template
View config.ini
cache=2 days
formats=pdf,ps,png,jpg,svg,bmp,tif,html
[params]
viz[0]=pieChart
viz[1]=barChart
[defaults]
viz=pieChart
@fponticelli
fponticelli / config.ini
Created Jun 4, 2012 — forked from abergie/config.ini
RG Description
View config.ini
cache=2 days
formats=png,html
[params]
start=true
end=true
path=true
@fponticelli
fponticelli / config.ini
Created Jul 17, 2012 — forked from abergie/config.ini
RG Description
View config.ini
cache=2 days
formats=png,jpg,pdf,html
screenWidth=580
[params]
start=true
end=true
path=true
token=true
@fponticelli
fponticelli / gist:5040330
Last active Dec 14, 2015
Function wrapping in abstract
View gist:5040330
abstract FunctionInfo<T>({ f : T, arity : Int, hasReturn : Bool })
{
public inline function new(f : T, arity : Int, hasReturn : Bool)
{
this = { f : f, arity : arity, hasReturn : hasReturn };
}
public inline function self() : T return this.f;
public inline function call(args : Array<Dynamic>)
@fponticelli
fponticelli / RGBLed.hx
Last active Dec 17, 2015
Rotating RGB LED color hue with BeagleBone Black, Haxe and BoneScript.
View RGBLed.hx
import bone.Bone;
import thx.color.Color;
import thx.color.HSL;
using thx.color.Convert;
class RGBLed
{
public static function main()
{
reset();
View LinkedList.h
#ifndef _LINKEDLIST_H
#define _LINKEDLIST_H
template <typename T>
class LinkedList {
public:
LinkedList();
~LinkedList();
void add(T value);
void remove(T value);
View stream.js
import Timer from 'ui/timer';
let _listeners = Symbol();
class Source {
constructor(callback) {
this[_listeners] = [];
let sink = (value) => {
Timer.immediate(() => {
this[_listeners].map=> ƒ(value));
@fponticelli
fponticelli / CommentBox.hx
Created Jun 1, 2014
react.hx first attempt
View CommentBox.hx
import react.React;
class CommentBox extends React {
static function main() {
React.renderComponent(
@dom '<CommentBox url="comments.json" pollInterval={2000} />',
js.Browser.document.getElementById('content')
);
}
View Sample.axe
class Sample<T>(value : T) {
trace(value)
def toString = value
}
View DemoObject.hx
import sui.Sui;
class DemoObject {
public static function main() {
var o = new DemoObject(),
sui = new Sui();
sui.bind(o.name);
sui.bind(o.enabled);
sui.bind(o.startedOn);
sui.bind(o.traceMe);
You can’t perform that action at this time.