Skip to content

Instantly share code, notes, and snippets.

View idesignstuff's full-sized avatar

idesignstuff

  • Earth
  • 10:52 (UTC -05:00)
View GitHub Profile
USB_VID = 0x239A
USB_PID = 0x8058
USB_PRODUCT = "Serpente"
USB_MANUFACTURER = "arturo182"
CHIP_VARIANT = SAMD21E18A
CHIP_FAMILY = samd21
SPI_FLASH_FILESYSTEM = 1
EXTERNAL_FLASH_DEVICE_COUNT = 1
@gandolf0
gandolf0 / PianobarMonitor.py
Created January 21, 2017 04:06
PianobarMonitor
#!/usr/bin/python
import subprocess
import re
import os
import select
import sys
import time
import urllib2
PIANOBAR_FOLDER = os.path.join(os.path.expanduser('~'), '.config/pianobar')
@testeddoughnut
testeddoughnut / eventcmd.py
Created February 7, 2016 09:54
Libnotify eventcmd for pianobar
#!/usr/bin/env python
from gi.repository import Notify
from urllib.parse import urlparse
import os
import requests
import sys
TMP_DIR = os.path.expanduser("~/.config/pianobar/tmp/")
DEFAULT_ICON = os.path.expanduser("~/.config/pianobar/pandora-transparent.png")
@hsiboy
hsiboy / animation.ino
Created January 9, 2015 16:39
FUNCTION-BASED ANIMATION SEQUENCES FOR WS2812 LED STRIPS Using FastLED library - Author: Dave Morris: http://www.google.com/+DaveMorris128
// FUNCTION-BASED ANIMATION SEQUENCES FOR WS2812 LED STRIPS
// Using FastLED library
// Author: Dave Morris: http://www.google.com/+DaveMorris128
// Version 1.0 (2014-07-31)
//
//
// The following code includes "primitive animations" which are the base effect and
// "aggregate animations" which are combinations of one or more primitive animations
// Feel free to combine different primitives each loop for synergistic results but:
// -If using an aggregate animation make sure your primatives don't clear the buffer each frame (FastLED.clear())
@emcquaid
emcquaid / update.py
Created July 12, 2013 21:18
update.py for pianobar pidora
#!/usr/bin/env python
import sys, csv, subprocess, os
def process(command, new = False):
if new:
with open(os.devnull, "w") as fnull: result = subprocess.Popen($
else:
with open(os.devnull, "w") as fnull: result = subprocess.call(c$
@flaviocdc
flaviocdc / pianobar-mediakeys.py
Created March 13, 2012 23:59
Quick python script to handle media keys for pianobar
#!/usr/bin/env python
import gobject
import dbus
import dbus.service
import dbus.mainloop.glib
import os.path
APP_ID="pianobar-mediakeys"
pianobar_key_bindings = {}