This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import haxe.macro.Context; | |
import haxe.macro.Expr; | |
class Macro { | |
macro public static function buildJson(config_path:String, ?name:String = "JsonConfig"):Array<Field>{ | |
var config_field_name = "data"; | |
var config = null; | |
var traverse:Dynamic->?Null<Array<haxe.macro.Field>>->ComplexType = null; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- file: /etc/avahi/services/arduino.service --> | |
<?xml version="1.0" standalone='no'?><!--*-nxml-*--> | |
<!DOCTYPE service-group SYSTEM "avahi-service.dtd"> | |
<service-group> | |
<name replace-wildcards="yes">'%h' arduino bridge</name> | |
<service> | |
<type>_arduino._tcp</type> | |
<!-- port value not actually used when ssh_upload=yes --> | |
<port>22</port> | |
<txt-record>board=leonardo</txt-record> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--Cheap tube module, code for ESP8266 NodeMCU | |
--depends on ntp.lua | |
--https://gist.github.com/lucsmall/66d9b6539df7a0daa569 | |
--http://www.esp8266.com/viewtopic.php?p=12733 | |
--http://forum.43oh.com/topic/8596-4-digit-display-from-qifei/ | |
--Qifei 4-bit LED Digital Tube Module, aka 74HC595 | |
-- | |
--D7 -> DIO | |
--D5 -> sclk | |
--D4 -> rclk |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var totalTimTamsinPack = 8; //For the Hellema brand | |
var people = ["fardau", "wilfred", "jeroen", "teun", "arjan", "erik", "paul"]; | |
var usecrypto = true; | |
var timtamsleftAfterEveryoneGetsOne = totalTimTamsinPack - people.length; | |
var array = new Uint32Array(1); | |
while(timtamsleftAfterEveryoneGetsOne-- > 0){ | |
var winer = null; | |
if(usecrypto){ | |
window.crypto.getRandomValues(array); |
NewerOlder