Skip to content

Instantly share code, notes, and snippets.

View StellarStoic's full-sized avatar
:octocat:
Interested in everything interesting

StellarStoic StellarStoic

:octocat:
Interested in everything interesting
View GitHub Profile
@StellarStoic
StellarStoic / The AI generated notes about my nostr note1 & nevent decoder
Last active March 13, 2025 18:03
Nostr Nip-19 note1 and nevent playground in JavaScript. I needed a note1 & nevent1 decoder like the fiatjaf's NAK tool. There's not many how-to's about encoding, decoding bech32-encoded entities
Workflow Notes
1. Objective
Goal:
Build a converter that can transform Nostr event identifiers between three formats:
HEX: A 64‑character hexadecimal string (32 bytes).
note1: A human‑friendly display format using standard bech32 encoding.
nevent: A format using bech32m that includes TLV (type–length–value) metadata (such as relay URIs, public key, and event kind).
2. Challenges and Struggles
Different Encoding Schemes:
npub1qqqqqqz7nhdqz3uuwmzlflxt46lyu7zkuqhcapddhgz66c4ddynswreecw
SELECT
?airportName ?pageBanner ?logo ?icao ?iata ?faa ?website ?operator ?opening ?status ?elevation ?elevationUnitLabel ?image
?runway ?runwayLabel ?lengthValue ?lengthUnitLabel ?widthValue ?widthUnitLabel ?materialLabel
WHERE {
BIND(wd:Q8685 AS ?airport) # JFK International Airport's Wikidata ID
# Fetching general airport information
OPTIONAL { ?airport wdt:P373 ?airportName. }
OPTIONAL { ?airport wdt:P948 ?pageBanner. }
OPTIONAL { ?airport wdt:P154 ?logo. }
import requests
from bs4 import BeautifulSoup
from datetime import datetime, timedelta
import pytz
import re
# the URL of the page you want to scrape
url = "https://www.sloveniacontrol.si/Strani/Summary-C.aspx"
# send a GET request to the URL
@StellarStoic
StellarStoic / keybase.md
Last active December 4, 2022 14:10
Keybase~GitHub Verification

Keybase proof

I hereby claim:

  • I am stellarstoic on github.
  • I am stellarstoic (https://keybase.io/stellarstoic) on keybase.
  • I have a public key ASCcRT7m7FiMKqzA8UnOxGDCTel_HrWFsyYoDnKJYEGefQo

To claim this, I am signing this object:

@StellarStoic
StellarStoic / media-query.css
Created November 24, 2018 19:52 — forked from gokulkrishh/media-query.css
CSS Media Queries for Desktop, Tablet, Mobile.
/*
##Device = Desktops
##Screen = 1281px to higher resolution desktops
*/
@media (min-width: 1281px) {
//CSS
@StellarStoic
StellarStoic / index.html
Last active January 2, 2018 21:43
Naloga Frizerski-Salon
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>FS-Hairstyler</title>
@StellarStoic
StellarStoic / index.html
Last active December 26, 2017 15:24
dOOgle.html
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="header">
@StellarStoic
StellarStoic / index.html
Last active December 17, 2017 09:46
Smart Ninja Students project FakeBook
<!DOCTYPE html>
<html>
<head>
<title>FakeBook</title>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css">
</head>
<body>
@StellarStoic
StellarStoic / MyFirst-index.html
Last active December 16, 2017 23:47
My first webpage
<!DOCTYPE html>
<html>
<head>
<title>FaKeBooK</title>
<meta charset="utf-8" />
<!--Ali je META charset pravilno zaključen z poševnico kot mi jo je zaključil
sam autoclose-html?
Na W3Schol, te poševnice ni.
NA stackoverflow pravijo da poševnica ni potrebna ampak če je že nič ne škodi-->
</head>