Skip to content

Instantly share code, notes, and snippets.

View lubieowoce's full-sized avatar
☀️

Janka Uryga lubieowoce

☀️
View GitHub Profile
@lubieowoce
lubieowoce / react-latest.sh
Created June 28, 2023 19:38
A bash function that prints out the latest canary/experimental releases of React and links to the relevant commits
# 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 \
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"
// 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
// 2020.02.25-r1
// url: .*reservise\.com/(?:calendar|clients).*
// F1 - add_benefit_card()
// F2 - edit_popup_price()
// F4 - click_popup_present()
// ShortKeys config
/*
"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])
@lubieowoce
lubieowoce / yoast_coauthors_integration.php
Last active July 2, 2025 13:59
Integrate Yoast with CoAuthors Plus
<?php
// Written against:
// - Yoast SEO 12.3
// - Co-Authors Plus 3.4
// - Wordpress 4.9.3
// - PHP 7.1
/*
@lubieowoce
lubieowoce / constrained_window.py
Created December 14, 2018 04:47
pyimgui window constraints -- problems with python callbacks in C code
# 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():