Skip to content

Instantly share code, notes, and snippets.

@luigidr
luigidr / hue.py
Created November 4, 2020 15:43
Simple Python client for the Philips Hue
import requests
import time
if __name__ == '__main__':
# the base URL
# base_url = 'http://192.168.0.201'
# if you are using the emulator, probably the base_url will be:
base_url = 'http://localhost:8000'
@luigidr
luigidr / git-subpull.sh
Created January 29, 2015 12:10
git pull in subfolders
#!/bin/bash
find . -mindepth 1 -maxdepth 1 -type d -print -execdir git --git-dir={}/.git --work-tree=$PWD/{} pull origin master \;
@luigidr
luigidr / ws-py.py
Created January 13, 2015 08:57
WebSocket utility for Dog 3.x using ws4py
#!/usr/bin/python
'''
Created on Jan 12, 2015
@author: derussis
'''
from ws4py.client.threadedclient import WebSocketClient
import json, getopt, sys