- Install gatt and test it works with
sudo gattctl --discover
: https://github.com/getsenic/gatt-python - Get the mac of your Turn Touch using gattctl and update monitor.py appropriately (remember to unpair your tt from everything else first!)
- simply run
sudo python3 monitor.py
. Press some buttons and if everything is set up correctly, you will see it respond!
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
import gpxpy | |
from haversine import haversine | |
from pyproj import Transformer | |
import sys | |
from svgpathtools import Path, Line | |
import svgwrite | |
fnames = sys.argv[1:] | |
if not fnames: |
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 ( | |
"fmt" | |
"github.com/beefsack/go-astar" | |
"io/ioutil" | |
"math" | |
"sort" | |
"strings" | |
) |
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
""" | |
Save a copy of all BBC recipes as JSON files. | |
Instructions: | |
Run this file with Python 3 in an environment with BeautifulSoup4 and requests: | |
virtualenv -p python3 env | |
source env/bin/activate | |
pip install requests beautifulsoup4 |
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
// ==UserScript== | |
// @name Room Topic Diff | |
// @description Whenever the room topic is changed, displays what it was before | |
// @author fredley | |
// @version 1.0.0 | |
// @include *://chat.meta.stackoverflow.com/rooms/* | |
// @include *://chat.meta.stackexchange.com/rooms/* | |
// @include *://chat.stackexchange.com/rooms/* | |
// @include *://chat.stackoverflow.com/rooms/* | |
// @include *://chat.askubuntu.com/rooms/* |
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
// ==UserScript== | |
// @name Chat Image Upload | |
// @description Drag and Drop upload images | |
// @author fredley | |
// @version 1.0.0 | |
// @include *://chat.meta.stackoverflow.com/rooms/* | |
// @include *://chat.meta.stackexchange.com/rooms/* | |
// @include *://chat.stackexchange.com/rooms/* | |
// @include *://chat.stackoverflow.com/rooms/* | |
// @include *://chat.askubuntu.com/rooms/* |
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
// ==UserScript== | |
// @name It's Never Friday | |
// @description Detects links to Rebecca Black's Friday | |
// @version 1.0.0 | |
// @include *://chat.meta.stackoverflow.com/rooms/* | |
// @include *://chat.meta.stackexchange.com/rooms/* | |
// @include *://chat.stackexchange.com/rooms/* | |
// @include *://chat.stackoverflow.com/rooms/* | |
// @include *://chat.askubuntu.com/rooms/* | |
// @run-at document-end |
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
// ==UserScript== | |
// @name It's Never Friday | |
// @description Detects links to Rebecca Black's Friday | |
// @version 1.0.0 | |
// @include *://chat.meta.stackoverflow.com/rooms/* | |
// @include *://chat.meta.stackexchange.com/rooms/* | |
// @include *://chat.stackexchange.com/rooms/* | |
// @include *://chat.stackoverflow.com/rooms/* | |
// @include *://chat.askubuntu.com/rooms/* | |
// @run-at document-end |
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
var decode = function(save){ | |
return LZString.decompressFromBase64(save.split("|")[1].substring(16)); | |
} | |
var encode = function(json){ | |
return btoa("1.0.19") + "|" + btoa("SAVE HAX0R3D") + LZString.compressToBase64(json); | |
} |
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
// ==UserScript== | |
// @name Badge Popups | |
// @description YAY BADGES | |
// @version 1.0 | |
// @include *//meta.stackexchange.com/users/* | |
// @run-at document-end | |
// ==/UserScript== | |
var init = function($){ | |
if($('.people-helped').length == 0) return; |
NewerOlder