Skip to content

Instantly share code, notes, and snippets.

Neurogami Neurogami

Block or report user

Report or block Neurogami

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
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.
Neurogami / OscEsp8266.ino
Created Sep 29, 2015
Simple OSC lop using ESP8266 and Arduino IDE
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>
Neurogami / HTTP_loop.ino
Created Sep 29, 2015
Simple sketch for the ESP8266 using the Arduino IDE
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
View RemoveTwitterTrends.user.js
// ==UserScript==
// @name Remove Twitter Trends and Recommendations
// @namespace
// @description Removes Twitter Trends and "who to Follow" from the Sidebar. Works, as of 10/22/12
// @include*
// @include*
// ==/UserScript==
window.setTimeout(function() {var evilDiv, thisDiv;
evilDiv = document.evaluate("//div[@data-component-term='user_recommendations']", document, null, XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE, null);
for (var i = 0; i < evilDiv.snapshotLength; i++) {
View version.rb
#!/usr/bin/env ruby
require 'fileutils'
if ARGV.empty?
warn "Usage: #{__FILE__} <file-to-version>"
f = ARGV.first
View Configgy_main.lua
package.path = os.currentdir() .. "../../UserConfig/?.lua;" .. package.path
local menu_name = "Main Menu:Tools:Neurogami Configgy"
You can’t perform that action at this time.