Skip to content

Instantly share code, notes, and snippets.

View UniqueName12345's full-sized avatar

AAAAAAAAAA UniqueName12345

View GitHub Profile
@UniqueName12345
UniqueName12345 / debskyer.js
Created October 28, 2024 07:32
takes the handle and redirects to it. most of the time, it just redirects back to bsky anyway but sometimes it can lead you to their website in case it's never directly linked
const url = new URL(window.location.href);
const isBskyUrl = url.hostname === "bsky.app"
if (isBskyUrl) {
const handle = url.pathname.split("/")[2];
window.location.href = `${handle}`;
}
@UniqueName12345
UniqueName12345 / lenofstring.py
Created December 23, 2023 07:05
Gets and prints out the length of a given string
string2 = """content of string here"""
length = len(string2)
print(length)