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
# Usage: | |
# | |
# react-latest [tag] | |
# | |
function react-latest { | |
local TAG=${1-experimental} | |
echo "react@$TAG" | |
echo | |
which jq > /dev/null || { echo 'please install jq'; return 1; } | |
npm view react versions --json \ |
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
import asyncio | |
import bleak | |
# https://os.mbed.com/teams/Bluetooth-Low-Energy/wiki/UART-access-over-BLE | |
# https://www.mgsuperlabs.co.in/estore/IoT-pHAT-with-header-for-Raspberry-Pi | |
RBL_SERVICE_UUID = "713D0000-503E-4C75-BA94-3148F18D941E" |
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
// 2020.03.03-r3 | |
/* eslint-env jquery */ | |
/* eslint no-global-assign: "off" */ | |
/* eslint no-unused-vars: ["warn", { "varsIgnorePattern": "^_", "argsIgnorePattern": "^_" }] */ | |
/* eslint no-prototype-builtins: "off" */ | |
/* global | |
ich |
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
// 2020.02.25-r1 | |
// url: .*reservise\.com/(?:calendar|clients).* | |
// F1 - add_benefit_card() | |
// F2 - edit_popup_price() | |
// F4 - click_popup_present() | |
// ShortKeys config | |
/* |
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
"disassemble femtoLisp bytecode (kind of)" | |
""" | |
a serialized function looks like this: | |
#fn( | |
":000r1|Mc0<17702|M]<6@0|N\x8550|M;c1|NK;|N\x85@0c2|Mi10~N31L3;|\x84c3\x82W0e4e5|31316A0c6qe7e5|313141;c8qc93041;c:|Mc1|NKi10~N31L4;" | |
[ | |
else begin or => 1arg-lambda? caddr | |
#fn("=000r1c0|~ML2L1c1|c2e3e4~3131Ki20i10N31L4L3;" [let if begin cddr caddr]) |
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
# pyimgui version: | |
# https://github.com/lubieowoce/pyimgui/commit/62bd989bf3621df125f68d0e07423668a68bf9c9 | |
def limit_aspect_ratio_2(position, current_size, desired_size) -> 'Tuple[float, float]': | |
print('limit_aspect_ratio_2(_, current_size={}, desired_size={})'.format(current_size, desired_size)) | |
w, h = desired_size | |
return (h*2, h) | |
def draw(): |
NewerOlder