Skip to content

Instantly share code, notes, and snippets.

@andyli
andyli / Neko.2.0.0.nuspec
Last active August 29, 2015 14:14
Neko Chocolatey package
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
<metadata>
<id>neko</id>
<title>Neko</title>
<version>2.0.0</version>
<authors>Haxe Foundation</authors>
<licenseUrl>https://github.com/HaxeFoundation/neko/blob/master/LICENSE</licenseUrl>
<projectUrl>http://nekovm.org/</projectUrl>
<iconUrl>https://cdn.rawgit.com/andyli/cc07575f598351e0ad74/raw/6a9cae9a136670c0052356b773f8e13bf37c13dd/logo.png</iconUrl>
PS C:\WINDOWS\system32> cinst SQlite -version 3.8.5.20140809
Chocolatey (v0.9.8.27) is installing 'SQlite' and dependencies. By installing you accept the license for 'SQlite' and ea
ch dependency you are installing.
SQLite v3.8.5.20140809
Old installation directory for SQLite detected (C:\ProgramData\chocolatey\bin). If you want to use the new installation
directory (ChocolateyBinRoot\SQLite), remove the sqlite*.dll sqlite*.def files from your old installation directory and
reinstall this package with the '-force' parameter.
Downloading SQLite 64 bit
from 'https://www.sqlite.org/2014/sqlite-dll-win64-x64-3080500.zip'
enum ChirpMethod {
Linear;
Quadratic(vertexZero:Bool);
Logarithmic;
Hyperbolic;
}
class Chirp {
/**
Ported from Scipy.
From c83068bd7b95b3e29b2edc9410cea4b14625f3aa Mon Sep 17 00:00:00 2001
From: Jeremie Dimino <jdimino@janestreet.com>
Date: Wed, 12 Mar 2014 14:39:21 +0000
Subject: [PATCH] Do not pass -fno-defer-pop to clang
---
configure | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/configure b/configure
// ==UserScript==
// @name SimpleCD ads removal
// @namespace http://www.onthewings.net/
// @version 0.1
// @description Remove ads from SimpleCD.
// @match http://simplecd.me/*
// @copyright 2014 Andy Li
// ==/UserScript==
var nodes = document.querySelectorAll('a[id*=__lgUnion_a__]');
import haxe.macro.Expr;
/*
* For compile-time function argument checking for `using`.
*/
abstract Point(Dynamic)
from { var x: Float; var y: Float; }
from { var x(default, never): Float; var y(default, never): Float; }
from { var x(get, never): Float; var y(get, never): Float; }
{}
@andyli
andyli / gist:5520755
Created May 5, 2013 12:49
Haxe -java-lib jogl errors
$ haxe build.hxml
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class (put):1: character 0 : Field put should be declared with 'override' since it is inherited from superclass
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class:1: character 0 : Defined in this class
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class (put):1: character 0 : Field put overloads parent class with different or incomplete type
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class:1: character 0 : Defined in this class
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class (put):1: character 0 : param1 : Int -> param2 : haxe.Int64 -> com.jogamp.common.nio.NativeBuffer<Dynamic> should be param1 : Int -> param2 : haxe.Int64 -> com.jogamp.common.nio.PointerBuffer
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class (put):1: character 0 : com.jogamp.common.nio.NativeBuffer<Dynamic> should be com.jogamp.common.nio.PointerBuffer
gluegen-rt.jar@com/jogamp/common/nio/PointerBuffer.class:1: character 0 : Defined in
Index: std/haxe/macro/Printer.hx
===================================================================
--- std/haxe/macro/Printer.hx (revision 6380)
+++ std/haxe/macro/Printer.hx (working copy)
@@ -94,7 +94,7 @@
public function printComplexType(ct:ComplexType) return switch(ct) {
case TPath(tp): printTypePath(tp);
case TFunction(args, ret): args.map(printComplexType).join("->") + "->" + printComplexType(ret);
- case TAnonymous(fields): "{" + fields.map(printField).join(",") + "}";
+ case TAnonymous(fields): "{" + [for (f in fields) printField(f) + ";"].join("") + "}";
@andyli
andyli / gist:5115030
Created March 8, 2013 08:38
brew install sqlite --universal -v
Andys-MBP:zlib-1.2.7 andy$ brew install sqlite --universal -v
Warning: It appears you have MacPorts or Fink installed.
Software installed with other package managers causes known problems for
Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.
==> Downloading http://sqlite.org/sqlite-autoconf-3071502.tar.gz
Already downloaded: /Library/Caches/Homebrew/sqlite-3.7.15.2.tar.gz
/usr/bin/tar xf /Library/Caches/Homebrew/sqlite-3.7.15.2.tar.gz
==> ./configure --prefix=/usr/local/Cellar/sqlite/3.7.15.2 --disable-dependency-tracking --enable-dynamic-extensions
./configure --prefix=/usr/local/Cellar/sqlite/3.7.15.2 --disable-dependency-tracking --enable-dynamic-extensions
checking for a BSD-compatible install... /usr/bin/install -c
import sys.*;
import sys.io.*;
import haxe.macro.*;
import haxe.macro.Expr;
using haxe.macro.ExprTools;
using haxe.macro.TypeTools;
import haxe.unit.*;
class DummyClass {}
interface DummyInterfaceA {}