Skip to content

Instantly share code, notes, and snippets.

View j3k0's full-sized avatar

Jean-Christophe Hoelt j3k0

View GitHub Profile
#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 = [
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 };
<?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 / 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 / GET-customers-receipts-200.json
Created June 21, 2019 06:39
Response from fovea.billing customers receipts API
[{
"type": "android-appstore",
"appName": "test",
"bundleId": "cc.fovea.purchase.demo",
"receipt": {
"orderId": "GPA.3312-8483-xxxx-xxxxx..1",
"packageName": "cc.fovea.purchase.demo",
"productId": "cc.fovea.purchase.subscription1",
"purchaseTime": 1549447850144,
"purchaseState": 0,
{
"paging": {
"skip": 0,
"limit": 100,
"total": 3
},
"rows": [
{
"receiptId": "apple:1000000012309800",
"platform": "apple",
{
"receiptId": "apple:2700001237189799",
"platform": "apple",
"updatedAt": "2019-07-02T07:25:36.700Z",
"amountsMicros": {
"GBP": 2970000
},
"amountUSD": 3.75,
"numTransactions": 2,
"source": {