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
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 |
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 | |
import subprocess | |
import re | |
import os | |
import select | |
import sys | |
import time | |
import urllib2 | |
PIANOBAR_FOLDER = os.path.join(os.path.expanduser('~'), '.config/pianobar') |
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/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") |
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
// 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()) |
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/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$ |
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/env python | |
import gobject | |
import dbus | |
import dbus.service | |
import dbus.mainloop.glib | |
import os.path | |
APP_ID="pianobar-mediakeys" | |
pianobar_key_bindings = {} |