Skip to content

Instantly share code, notes, and snippets.

View j3k0's full-sized avatar

Jean-Christophe Hoelt j3k0

View GitHub Profile
input {
tcp {
port => 55555
type => syslog
}
udp {
port => 55555
type => syslog
}
}
typedef A = { a:Int };
typedef B = { > A, b:Int };
class TypedefTest {
public static function f(x:A):A
return x.a == 0 ? x : null;
static function main() {
var b:B = { a:1, b:2 };
#globals emit
teiAligner = require "./tei/aligner"
exportObject = (name, obj, funcNames) ->
"var #{name} = {\n" +
("\"#{f}\":" + obj[f] for f in funcNames).join(",\n") +
"\n};\n"
module.exports = [
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<application xmlns="http://ns.adobe.com/air/application/18.0" minimumPatchLevel="0">
<id>nl.goliathgames.triominos</id>
<name>
<text xml:lang="en">Triominos</text>
</name>
<versionNumber>1.4.49</versionNumber>
<versionLabel>v1.4.49</versionLabel>
<filename>Triominos</filename>
<description>
@j3k0
j3k0 / mxmlc-output.txt
Created September 25, 2015 05:14
Output of mxmlc
Loading configuration: /Users/jeko/Documents/triominos/client/config-mobile-debug.xml
Warning: com.adobe.utils.ArrayUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/ArrayUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/ArrayUtil.as
Warning: com.adobe.utils.NumberFormatter is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/NumberFormatter.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/NumberFormatter.as
Warning: com.adobe.utils.DictionaryUtil is defined by multiple files: /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs/com/adobe/utils/DictionaryUtil.as, /Users/jeko/Fovea_AIR_Toolchains/1.3/libs/as3corelib/src/com/adobe/utils/DictionaryUtil.as
Warning: com.adobe.utils.XMLUtil is defined by multiple files: /Users/jeko/Fovea_AIR_Toolchains/1
@j3k0
j3k0 / adt-output.xml
Created September 25, 2015 05:29
Output of adt package
verity:bin-mobile-debug jeko$ adt -package -target apk-debug -connect 172.20.10.4 -storetype pkcs12 -keystore ../android/fovea-devel.p12 -storepass xxxxxx Triominos.apk Triominos-app.xml Triominos.swf icons -extdir /Users/jeko/Fovea_AIR_Toolchains/1.3/libs -extdir /Users/jeko/Documents/triominos/client/submodule/foveas3/src/fovea/socialservices/libs
Warning: Resource values-af/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-af/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/messenger_button_strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-ar/strings.xml has been skipped because of mismatch with supported languages information in application descriptor.
Warning: Resource values-bn/messenger_button_strings.xml has been skipped
@j3k0
j3k0 / android-release.sh
Created October 15, 2018 07:55
Generate an android release build with cordova
#!/bin/bash
cd "$(dirname "$0")"
ROOT_DIR="$(pwd)"
FINAL_APK="${FINAL_APK:-$ROOT_DIR/android-release-$(date +%Y%m%d-%H%M).apk}"
KEYSTORE="${KEYSTORE:-$ROOT_DIR/android-release.keystore}"
if test ! -e "$KEYSTORE"; then
echo "ERROR: Keystore file $KEYSTORE not found."
@j3k0
j3k0 / mutt2issue.py
Created November 6, 2018 07:03
mutt script that creates github issues
#!/usr/bin/env python
# -*- coding: utf-8 -*-
## About
# Use the content of an email to create a github issue
#
## Usage
# add this to your .muttrc:
# macro index,pager \ei "<pipe-message>~/path/to/mutt2issue.py<enter>"
#
@j3k0
j3k0 / index.html
Last active September 15, 2022 09:51
Tutorial Cordova In-App Purchase Consumable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Hello World</title>
</head>
<body>
@j3k0
j3k0 / index.html
Last active March 20, 2021 18:14
Tutorial Cordova In-App Purchase Non-Consumable
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval' 'unsafe-inline'; style-src 'self' 'unsafe-inline'; media-src *; img-src 'self' data: content:;">
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width">
<title>Hello World</title>
</head>
<body>