Python syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import mathPython syntax here : 2.7 - online REPL
Javascript ES6 via Babel transpilation - online REPL
import math| #!/bin/sh -xe | |
| # update-itch.sh | |
| # | |
| # Required packages: jq and pkgbuild-introspection | |
| source ./PKGBUILD | |
| OLDVERSION="$pkgver" | |
| echo "Old Version: ${OLDVERSION}" | |
| NEWVERSION=$(curl https://api.github.com/repos/itchio/itch/releases 2> /dev/null | jq -r '.[0].tag_name | match("\\d(\\.\\d+)+").string') |
| #!/usr/bin/env python | |
| from pocketsphinx.pocketsphinx import * | |
| from sphinxbase.sphinxbase import * | |
| import os | |
| import pyaudio | |
| import wave | |
| import audioop | |
| from collections import deque |
| diff --git a/include/xcb.h b/include/xcb.h | |
| index b7eed2c..c51adf4 100644 | |
| --- a/include/xcb.h | |
| +++ b/include/xcb.h | |
| @@ -51,6 +51,7 @@ | |
| ConfigureNotify */ \ | |
| XCB_EVENT_MASK_POINTER_MOTION | \ | |
| XCB_EVENT_MASK_PROPERTY_CHANGE | \ | |
| + XCB_EVENT_MASK_LEAVE_WINDOW | \ | |
| XCB_EVENT_MASK_ENTER_WINDOW) |
| # Paths {{{ | |
| set folder = ~/Mail # mailbox location | |
| set alias_file = ~/.mutt/alias # where to store aliases | |
| set header_cache = ~/.mutt/cache/headers # where to store headers | |
| set message_cachedir = ~/.mutt/cache/bodies # where to store bodies | |
| set certificate_file = ~/.mutt/cerficates # where to store certs | |
| set mailcap_path = ~/.mutt/mailcap # entries for filetypes | |
| set tmpdir = ~/.mutt/temp # where to keep temp files | |
| set signature = ~/.mutt/sig # my signature file |
| curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks | |
| curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }" |
| curl -i -u YOURUSER -X GET https://api.github.com/repos/ORG/REPO/hooks | |
| curl -i -u YOURUSER -X PATCH https://api.github.com/repos/ORG/REPO/hooks/IRC_HOOK_ID -d "{ \"add_events\": [\"push\", \"pull_request\", \"issues\"] }" |
| set-hook -g client-attached 'run-shell /bin/update_display.sh' |
*Beware: These instructions have been cobbled together from all of the sources I found that got my specific unit working. I can verify it works on a Pi 3B running the latest OS as of summer 2019. Everyone's hardware and system will be a bit different so your mileage may vary. Before you go crazy trying to debug issues sending a signal, grab an existing lirc config for any remote and use the lirc CLI to send a signal out and verify your hardware is sending the signal by viewing the IR LED through a front-facing smartphone camera (almost all smartphone front cameras - even new iPhones - will not filter out IR light and you should see the LED flash when sending a signal). If you see your hardware is sending a signal and/or you can see that the IR input is seeing some signal, then you know your setup works and the issue may be that the remote you're trying to learn simply won't work with LIRC. I know for a fact that many Comcast/Xfinity cable remotes are actually RF devices and need to have