Skip to content

Instantly share code, notes, and snippets.

View robiot's full-sized avatar
🚀
Doesn't exist? Create it!

Elliot Lindberg robiot

🚀
Doesn't exist? Create it!
View GitHub Profile
export const chaosTestStrings = (): void => {
const textNodes = getAllTextNodes(document.body);
for (const node of textNodes) {
const textNodeLength = node.textContent ? node.textContent.length : 0;
if (node.textContent === null) {
return;
}
if (node.parentElement instanceof Element) {
if (node.parentElement.dataset.originalText === undefined) {
@robiot
robiot / lunar-client-installer.sh
Last active October 7, 2021 13:39
Easy lunar client installer | Run with sudo
#!/bin/bash
pkgver=2.8.0
_pkgname=lunarclient
_srcdir=/tmp/lunar
_appimage="Lunar%20Client-${pkgver}.AppImage"
_appname="Lunar Client-${pkgver}.AppImage"
source="https://launcherupdates.lunarclientcdn.com/${_appimage}"
rm -rf "${_srcdir}"
text = "cute"; print('\n'.join([''.join([(text[(x-y) % len(text)] if ((x*0.05)**2+(y*0.1)**2-1)**3-(x*0.05)**2*(y*0.1)**3 <= 0 else ' ') for x in range(-25,30)]) for y in range(30,-30,-1)]))
@lopspower
lopspower / README.md
Last active December 5, 2025 13:16
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

All hex value from 100% to 0% alpha: