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)
<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()) |
## Sublime Text 3 Serial key build is 3176 | |
> * Added these lines into /etc/hosts | |
127.0.0.1 www.sublimetext.com | |
127.0.0.1 license.sublimehq.com | |
> * Used the license key | |
----- BEGIN LICENSE ----- |