Skip to content

Instantly share code, notes, and snippets.

import sys.FileSystem;
import sys.io.File;
/**
Haxe port of nekoboot.neko for creating executables from neko bytecode.
Original: http://code.google.com/p/nekovm/source/browse/trunk/src/tools/nekoboot.neko
Usage : nekoboot <file.n>
*/
.shape{
height: 100%;
width: 100%;
}
.circle {
border-radius: 50%/50%;
-moz-border-radius: 50%/50%;
-webkit-border-radius: 50%/50%;
}
.hide {
/**
* iOS 6 style switch checkboxes
* by Lea Verou http://lea.verou.me
*/
:root input[type="checkbox"] { /* :root here acting as a filter for older browsers */
position: absolute;
opacity: 0;
}
function inferInputModel() {
if (window.navigator.msPointerEnabled) {
return 'pointer';
} else if (window.ontouchstart !== undefined) {
return 'touch';
} else {
return 'unknown';
}
}
# -*- encoding: UTF-8 -*-
COUNTRIES = {
u'DZA': {'code': u'DZA', 'fr': u'Algerie', 'en': u'Algeria', 'num': 12},
u'AGO': {'code': u'AGO', 'fr': u'Angola', 'en': u'Angola', 'num': 24},
u'EGY': {'code': u'EGY', 'fr': u'Egypte', 'en': u'Egypt', 'num': 818},
u'BGD': {'code': u'BGD', 'fr': u'Bangladesh', 'en': u'Bangladesh', 'num': 50},
u'NER': {'code': u'NER', 'fr': u'Niger', 'en': u'Niger', 'num': 562},
u'LIE': {'code': u'LIE', 'fr': u'Liechtenstein', 'en': u'Liechtenstein', 'num': 438},
u'NAM': {'code': u'NAM', 'fr': u'Namibie', 'en': u'Namibia', 'num': 516},
#:kivy 1.3
<WonPopup>:
title: 'YOU WIN'
auto_dismiss: False
size_hint: None, None
size: 300, 200
btn_restart: btn_restart
btn_close: btn_close
content: content

Icon ressources collection

package
{
import com.bit101.components.CheckBox;
import com.bit101.components.ComboBox;
import com.bit101.components.PushButton;
import com.powerflasher.as3potrace.POTrace;
import com.powerflasher.as3potrace.backend.GraphicsDataBackend;
import flash.display.Bitmap;
import flash.display.BitmapData;