throttling does not go well with realtime audio processing (resulting in a popcorn audio stream)
Having audio issues? Double check if u r throttling!!
watch grep \"cpu MHz\" /proc/cpuinfo
| // https://en.wikipedia.org/wiki/Levenshtein_distance | |
| function lv(A, B) { | |
| // create two work vectors of integer distances | |
| let v0 = new Array(A.length); | |
| let v1 = new Array(B.length); | |
| // initialize v0 (the previous row of distances) | |
| // this row is A[0][i]: edit distance for an empty s | |
| // the distance is just the number of characters to delete from t | |
| for(let i = 0; i <= B.length + 1; i++){ | |
| v0[i] = i; |
| NSPR_LOG_MODULES=MediaSource:5,MediaSourceSamples:5,MediaFormatReader:5 /Applications/Firefox.app/Contents/MacOS/firefox |
| 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; | |
| <!-- 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> |
| --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 |
| 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); |