Accepts input as a list of UTF-32 codepoints and returns a Number.
let isNewline: Number -> Boolean =
(x: Number) -> x == 10
let isDigit: Number -> Boolean =
(x: Number) -> (x >= 48) && (x < 58)| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| T3ZWQ-P2738-3FJWS-YE7HT-6NA3K | |
| KFZUS-F3JGV-T95Y7-BXGAS-5NHHP | |
| 65Z2L-P36BY-YWJYC-TMJZL-YDZ2S | |
| SFZHH-2Y246-Z483L-EU92B-LNYUA | |
| GSZVS-5W4WA-T9F2E-L3XUX-68473 | |
| FTZ8A-R3CP8-AVHYW-KKRMQ-SYDLS | |
| Q3ZWN-QWLZG-32G22-SCJXZ-9B5S4 | |
| DAZPH-G39D3-R4QY7-9PVAY-VQ6BU | |
| KLZ5G-X37YY-65ZYN-EUSV7-WPPBS |
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <!-- | |
| How to define a variable. | |
| Just stick a new node in a property group. | |
| --> | |
| <PropertyGroup> | |
| <!-- This node in a property group will define a variable --> | |
| <TestVariable>Test Variable Value</TestVariable> | |
| <?xml version="1.0" encoding="utf-8" ?> | |
| <nlog | |
| xmlns="http://www.nlog-project.org/schemas/NLog.xsd" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| autoReload="true"> | |
| <!-- [${callsite}]--> | |
| <variable name="defaultMessageTemplate" value="[${longdate}] [${callsite}] [${uppercase:${level}}] ${message} ${exception:innerFormat=Message,StackTrace}"/> | |
| <targets> |
This script was adapted to allow you to play audio files through your microphone input. It does so by creating a virtual microphone and piping an audio file to it.
The work was mostly done in this StackOverflow answer, I just adapted it to use ffmpeg and add a trap to cleanup on exit.
Requirements:
| // | |
| // Simple example of using net.Socket but here we capture the | |
| // right events and attempt to re-establish the connection when | |
| // is is closed either because of an error establishing a | |
| // connection or when the server closes the connection. | |
| // | |
| // Requires | |
| var net = require('net'); |
java.util.Random, An instance of this class is used to generate a stream of pseudorandom numbers. The class uses a 48-bit seed, which is modified using a linear congruential formula. (See Donald Knuth, The Art of Computer Programming, Volume 2, Section 3.2.1.)
This class has 6 nifty functions:
nextFloat()
| $ wget http://downloads.sourceforge.net/project/glfw/glfw/3.0.1/glfw-3.0.1.zip | |
| $ unzip glfw-3.0.1.zip | |
| $ cd glfw-3.0.1/ | |
| $ mkdir build | |
| $ cd build | |
| $ export MACOSX_DEPLOYMENT_TARGET=10.8 | |
| $ cmake -D GLFW_NATIVE_API=1 -D CMAKE_OSX_ARCHITECTURES="i386;x86_64" -D BUILD_SHARED_LIBS=ON -D CMAKE_C_COMPILER=clang ../ | |
| $ make | |
| $ ls -l src/libglfw* |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| import requests | |
| import json | |
| import argparse | |
| from sys import exit | |
| import uuid | |
| client_token = str(uuid.uuid4()) |