View simple-demo.xml
<?xml version="1.0" encoding="UTF-8"?>
<Mediator-Model Version="1" User="" TWO_Version="0.9.2">
<Model V="5" ID="TWO">
<Composite V="1" ID="Locations">
<OSC_Location V="2" ID="demo_location_0" Description="Demo sketch 0" Root_OSC_Address=""
Outgoing_IP="" Outgoing_Port="7000" Incoming_Port="1000"/>
<OSC_Location V="2" ID="demo_location_1" Description="Location of the secnd demo sketch"
Root_OSC_Address="" Outgoing_IP="" Outgoing_Port="7001"
View opt-parse-complete-example.rb
# This is based on code copied from
# to replace non-working example given in the rdocs for the OptionParser class
require 'optparse'
require 'optparse/time'
require 'ostruct'
require 'pp'
class OptparseExample
Version = '1.0.1'

Scenario: Wanting to add a virtualhost file to Apache2, which was installed using apt while in bash

Assumption: /etc/apache2 in bash maps to %HOME%\AppData\Local\lxss\rootfs\etc\apache2

  1. Opened a Windows-linux bash shell
  2. Installed apache2 (sudo apt-get install ...)
  3. Wanted to add a virtual host file that had been used on another dev machine
  4. Decided that editing files with vi in the bash terminal was too annoying :)
  5. Found the matching "sites-available" folder via Win10 File Explorer.
  6. Copied an existing virtualhost file itno that folder
View random_string_using_char_set.rb
def random_string_using_char_set len, chars
(0...len).map { chars[rand(chars.size)] }.join
safe_chars = (('A'..'Z').to_a + ('a'..'z').to_a + ('3'..'9').to_a ) - %w{5 S Z l o O}
some_string = random_string_using_char_set 50, safe_chars
p some_string
View one-shot-osc.rb
#!/usr/bin/env ruby
require 'osc-ruby-ng'
if ARGV.empty?
puts "Usage: #{__FILE__} <adddress>:<port> <address_pattern> [args ...]"
def arg_to_type a
View thenewyorker-email.html
Content-Type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "
<html xmlns=3D"">
<head><meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8"><meta name=3D"format-detection" content=3D"telephone=3Dno"><meta name=
View TeensyBluefriendDemo.ino
@file bleuart_datamode.ino
@author hathach, ktown (Adafruit Industries)
This demo will show you how to initialize the module in COMMAND mode then
send data in DATA mode, uses the MODE pin
Altered to work with a Teensy 3.1 using Serial2
The Bluefruit CTS pin is connected to Teensy pin 8.
View OscEsp8266.ino
#include <OSCMessage.h>
#include <WiFiUdp.h>
WiFiUDP Udp; // A UDP instance to let us send and receive packets over UDP
const IPAddress outIp(192,168,0,99); // remote IP of your computer
const unsigned int outPort = 9900; // remote port to receive OSC
const unsigned int localPort = 9901; // local port to listen for OSC packets (actually not used for sending)
#include <ESP8266WiFi.h>
View HTTP_loop.ino
This sketch sends data via HTTP GET requests to an IP address.
#include <ESP8266WiFi.h>
const char* ssid = "YOUR_WIFI_SSID";
const char* password = "YOUR_WIFI_PASSWORD";
* ##library.sentence##
* ##library.url##
* Copyright James Britt / Neurogami
* The MIT License (MIT)
* Permission is hereby granted, free of charge, to any person obtaining a copy