This file contains 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
package main | |
import ( | |
"encoding/binary" | |
"fmt" | |
"os" | |
"os/signal" | |
"time" | |
"github.com/gordonklaus/portaudio" |
This file contains 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
# Makefile for update and build pyenv debian package # | |
# Used directories | |
PYENV_SRC=pyenv.src | |
PYENV_BUILD=pyenv | |
PYENV_TARGET=$(PYENV_BUILD)/usr/share/pyenv | |
# Files wich needs to be removed from debian package | |
NOT_NEEDED_FILES=.agignore CHANGELOG.md CONDUCT.md .git .gitignore LICENSE \ | |
Makefile src test .travis.yml .vimrc plugins/.gitignore plugins/*/.git \ | |
plugins/*/.gitignore plugins/*/test plugins/*/LICENSE |
This file contains 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
------------------------------------------------------------------------------- | |
-- Configuration for using Xmonad inside Xfce, KDE and standalone. | |
-- | |
-- Xfce: It is recommended to disable/remove xfwm4 and xfdesktop. | |
-- KDE: Plasma works with xmonad, except | |
-- 1. Mouse cursor cannot focus on empty monitors. | |
-- 2. Panel start-menu search field cannot receive input. | |
------------------------------------------------------------------------------- |
This file contains 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
begin | |
lsusb = `lsusb` | |
if lsusb.split("\n").select{|l| l.include? "2047:ffe7"}.count == 0 | |
raise "Boogie Board Rip not currently connected" | |
end | |
begin | |
dmesg = `dmesg` | |
bbdev = dmesg.split("\n").select{|l| l.match "2047:FFE7.*hidraw[0-9]"}.pop.match("(hidraw[0-9]+)").to_s | |
raise RuntimeError if bbdev.empty? |