- 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
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
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 ChatSEy | |
// @description Nicer Mobile Chat | |
// @version 1.0 | |
// @include http://chat.meta.stackoverflow.com/rooms/* | |
// @include http://chat.stackexchange.com/rooms/* | |
// @include http://chat.stackoverflow.com/rooms/* | |
// @include http://chat.askubuntu.com/rooms/* | |
// @run-at document-end | |
// ==/UserScript== |
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: |
OlderNewer