Skip to content

Instantly share code, notes, and snippets.

View natcl's full-sized avatar

Nathanaël Lécaudé natcl

View GitHub Profile
@natcl
natcl / pi_adhoc
Created July 4, 2013 22:16
Raspberry pi wireless config adhoc
auto wlan0
iface wlan0 inet static
address 192.168.1.1
netmask 255.255.255.0
wireless-channel 1
wireless-essid MyNetwork
wireless-mode ad-hoc
@natcl
natcl / 14bit_conversion
Created September 12, 2013 21:07
Convert int to 2 separate 7 bit numbers and back to int in Max/MSP
{
"boxes" : [ {
"box" : {
"maxclass" : "number",
"parameter_enable" : 0,
"outlettype" : [ "int", "bang" ],
"id" : "obj-24",
"fontname" : "Arial",
"numinlets" : 1,
"numoutlets" : 2,
@natcl
natcl / fr_FR.po
Last active August 29, 2015 13:56 — forked from alienlebarge/FR_fr.mo
msgid ""
msgstr ""
"Project-Id-Version: Shaken Grid Premium\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2011-04-17 13:38-0500\n"
"PO-Revision-Date: 2011-07-10 11:37+0100\n"
"Last-Translator: Cédric Aellen <cedric.aellen@alienlebarge.ch>\n"
"Language-Team: Shaken And Stirred Web <hello@sawyerhollenshead.com>\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
@natcl
natcl / chasse_neige_schematic.fzz
Last active August 29, 2015 13:56
Exporail - Chasse Neige
504b 0304 1400 0000 0800 0f78 5a44 dec1
c7ce 3c0a 0000 4183 0000 1500 0000 6368
6173 7365 5f6e 6569 6765 5f73 6368 656d
2e66 7aed 5d6d 739b b816 fede 5fc1 d099
cebd 1f2c 90c4 6b9b 74e7 b67b bbb3 b3bb
b399 3677 f77e eb60 2c3b 4c31 f802 8e93
fcfa 7b84 0063 83b1 e338 b69c 40a6 534b
3a92 0e47 478f f448 022e 7eba 9b86 ca2d
4bd2 208e 2e55 8c74 5561 911f 8f82 6872
a9fe e7fa cbc0 517f faf8 e662 1a8f e621
@natcl
natcl / set_light.py
Created March 29, 2014 02:15
set_light
#!/usr/bin/python
import sys
from phue import Bridge
b = Bridge()
if len(sys.argv) == 1:
print('Please input some arguments')
# if we get 3 arguments
if len(sys.argv) == 4:
@natcl
natcl / hue.js
Created April 23, 2014 20:39
Smallmax javascript file to control the Philips hue system
autowatch = 1;
var ajaxreq;
var ip;
var key;
function set_ip(_ip)
{
ip = _ip;
}
// libraries
#include <Ethernet.h>
#include <EthernetUdp.h>
#include <SPI.h>
#include <Adafruit_NeoPixel.h>
#include <mac.h>
//-------------------- for NeoPixel--------------------//
const int ledsPerStrip = 492;//CHANGE FOR YOUR SETUP
Adafruit_NeoPixel leds = Adafruit_NeoPixel(ledsPerStrip, 2, NEO_GRB + NEO_KHZ800);
@natcl
natcl / max_viewer.maxpat
Last active August 29, 2015 14:05
Rolling serial buffer example with stop character
{
"boxes" : [ {
"box" : {
"maxclass" : "newobj",
"text" : "delay 10",
"patching_rect" : [ 153.5, 287.0, 56.0, 22.0 ],
"id" : "obj-41",
"numinlets" : 2,
"numoutlets" : 1,
"style" : "",
/* OctoWS2811 BasicTest.ino - Basic RGB LED Test
Required Connections
--------------------
pin 2: LED Strip #1 OctoWS2811 drives 8 LED Strips.
pin 14: LED strip #2 All 8 are the same length.
pin 7: LED strip #3
pin 8: LED strip #4 A 100 ohm resistor should used
pin 6: LED strip #5 between each Teensy pin and the
@natcl
natcl / artnet_logic_python_test.py
Created December 10, 2014 21:40
artnet_logic_python_test
#/usr/bin/python
ledsPerStrip = 240
numStrips = 2
numLeds = ledsPerStrip * numStrips
numChannels = ledsPerStrip * numStrips * 3
startUniverse = 0
led_buffer = [0 for x in range(numChannels)]