This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import json | |
import os | |
import platform | |
import sys | |
if sys.version_info[0] > 2: | |
PY3K = True | |
else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import urllib | |
files = ['000.jpg', '001.jpg', '011.jpg','111.jpg', '010.jpg','110.jpg', '101.jpg', '100.jpg'] | |
for f in files: | |
url = urllib.urlopen('http://ives.psy.umontreal.ca/lights/{0}'.format(f)) | |
with open(f, "wb") as output: | |
output.write(url.read()) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
from scene import * | |
from phue import Bridge | |
class PictureAutomation (Scene): | |
def setup(self): | |
self.bridge = Bridge() | |
self.lights = self.bridge.get_light_objects('name') | |
self.init_state = self.get_current_state() | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Max ToolBox": | |
{ | |
"version": "15", | |
"link": "https://github.com/natcl/maxtoolbox/archive/master.zip" | |
}, | |
"ejies": | |
{ | |
"version": "3.11", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["javac", "-classpath", "/Applications/Max 6.1/Cycling '74/java/lib/jitter.jar:/Applications/Max 6.1/Cycling '74/java/lib/jode-1.1.2-pre-embedded.jar:/Applications/Max 6.1/Cycling '74/java/lib/jython.jar:/Applications/Max 6.1/Cycling '74/java/lib/log4j-1.2.16.jar:/Applications/Max 6.1/Cycling '74/java/lib/max.jar:/Applications/Max 6.1/Cycling '74/java/lib/net.loadbang.jython-1.2.1.jar:/Applications/Max 6.1/Cycling '74/java/lib/net.loadbang.lib-1.8.0.jar:/Applications/Max 6.1/Cycling '74/java/lib/net.loadbang.scripting-1.1.0.jar:/Applications/Max 6.1/Cycling '74/java/classes/", "$file"], | |
"file_regex": "^ *\\[javac\\] (.+):([0-9]+):() (.*)$" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"cmd": ["ino", "build"], | |
"working_dir": "$file_path", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"variants": [ | |
{ "cmd": ["ino", "upload"], | |
"working_dir": "$file_path", | |
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", | |
"name": "ino upload" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
''' | |
Index à partir de 0 représente le temps en seconde | |
Chaque groupe de parenthèse représente une lumière | |
Premier élément est l'index de la lumière (à partir de 1] | |
Deuxième élément est l'état: | |
0: Éteint | |
1: Allumé | |
2: Clignote | |
''' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
path = sys.argv[1] | |
input_format = ['.' + x for x in sys.argv[2].split()] | |
output_format = '.' + sys.argv[3] | |
args = sys.argv[4] | |
files = [os.path.join(path,f) for f in os.listdir(path) if os.path.splitext(f.lower())[1] in input_format] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
allow-hotplug wlan0 | |
auto wlan0 | |
iface wlan0 inet dhcp | |
#wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf | |
wpa-ssid "xx" |
OlderNewer