Skip to content

Instantly share code, notes, and snippets.

View Nikolaj-K's full-sized avatar
💭
I'm combinating Why's.

Nikolaj Kuntner Nikolaj-K

💭
I'm combinating Why's.
  • DLR Germany, IST Austria, Infineon, ...
  • Vienna
View GitHub Profile
@Nikolaj-K
Nikolaj-K / yapper_api_data_250717.py
Created July 17, 2025 21:32
Yapper API dicts of about 500 Somnia yappers.
DCT = {
"aixbt@aixbt_agent": {
"user_id": "1852674305517342720",
"username": "aixbt_agent",
"yaps_all": 29726.45,
"yaps_l24h": 15.09,
"yaps_l48h": 39.52,
"yaps_l7d": 172.28,
"yaps_l30d": 1933.83,
"yaps_l3m": 4468.66,
@Nikolaj-K
Nikolaj-K / autocorr_of_chain.py
Last active July 12, 2025 16:14
Computing the autocorrelation, its spectrum and the power spectrum for a set of simple Markov chains
"""
Code described in the video
https://youtu.be/yyHd7BGGVp8
Note: A day after recording, I refactored the script to use a more continuous
random variable (no jump at full circle). I find this gives a nicer to read plot.
Secondly, I've also added a tiny `class State`, abstracting away the state indices
and conversions using string.ascii_uppercase.index.
"""
@Nikolaj-K
Nikolaj-K / plot_peoples_lifespans.py
Last active July 9, 2025 00:12
Plot people's overlapping lifespan with bars
import matplotlib.pyplot as plt
IMAGE_DIRPATH = r"your/path/to/lifespans.png"
PEOPLE = [
("Voltaire", 1694, 1778, "Philosopher"),
("Hume", 1711, 1776, "Philosopher"),
("Rousseau", 1712, 1778, "Philosopher"),
("Kant", 1724, 1804, "Philosopher"),
("Fichte", 1762, 1814, "Philosopher"),
@Nikolaj-K
Nikolaj-K / plot_ranks_log_log.py
Last active July 7, 2025 18:27
Create a log log plot of Somnia user rank data
"""
To use this script, the variable starting with 'ps_docstring_' needs to be
the 4000 line long string holding the 1000 points data.
To get it, just go to https://quest.somnia.network/ and copy the 1000 rows.
"""
import matplotlib.pyplot as plt
from matplotlib.ticker import ScalarFormatter
import itertools
@Nikolaj-K
Nikolaj-K / somnia_7day_streaks_250503.hs
Created May 3, 2025 15:03
Somnia 7-day streaks (250503)
skaucat7 , days survived: 43, streaks: [43]
quan_eth , days survived: 42, streaks: [22, 20]
HumzyTrades , days survived: 42, streaks: [30, 12]
lovaniceth , days survived: 41, streaks: [22, 19]
rcethomas37 , days survived: 39, streaks: [21, 18]
choogio , days survived: 39, streaks: [20, 2, 17]
0xHaileyy , days survived: 39, streaks: [10, 7, 22]
defaeze , days survived: 39, streaks: [27, 12]
BnvNaz65175 , days survived: 38, streaks: [38]
i_am_michaelson , days survived: 37, streaks: [11, 7, 7, 12]
@Nikolaj-K
Nikolaj-K / overlapping_somnia_yapper_names.txt
Last active April 30, 2025 18:29
Searching for the closest names among yappers on the Somnia 7-day (on 250430)
KrenCrypto <=> KearneyCrypto (overlap score = 0.9565)
Danvicotech <=> lovaniceth (overlap score = 0.9048)
pedrocrypt1 <=> deecrrypt (overlap score = 0.9)
ironsidecrypto <=> interestedboys (overlap score = 0.8929)
isnotberlin <=> interestedboys (overlap score = 0.88)
blockgems_ib <=> bobbie_smile (overlap score = 0.875)
tonychilla_eth <=> lovaniceth (overlap score = 0.875)
systems_boi <=> bobbie_smile (overlap score = 0.8696)
PranisRihards <=> ParmisaRad (overlap score = 0.8696)
reynacrypto1 <=> pedrocrypt1 (overlap score = 0.8696)
@Nikolaj-K
Nikolaj-K / num_day_on_somnia_30day.java
Created April 29, 2025 21:34
How many days each Somnia yapper was ranked on the 30-day
39 days: Ravstar.plena ꧁IP꧂ (Ø,G)@Ravstar11 `
39 days: B. Balage@BodnrBalazs
39 days: cho_cho ☁️@choogio
39 days: vyre@0xvyre
39 days: NazBNV@BnvNaz65175
39 days: skaucat 🐙@skaucat7
39 days: silverwave@silverwave1000
39 days: Miss Flo@MissFlo_N
39 days: Lovanic@lovaniceth
39 days: rcethomas@rcethomas37
@Nikolaj-K
Nikolaj-K / num_day_on_somnia_7day.java
Created April 29, 2025 15:48
How many days each Somnia yapper was ranked on the 7-day
39 days: skaucat 🐙@skaucat7 `
38 days: HumzyTrades@HumzyTrades `
38 days: NazBNV@BnvNaz65175
38 days: Quan@quan_eth
37 days: Lovanic@lovaniceth `
37 days: rcethomas@rcethomas37
35 days: 0xfae@defaeze `
35 days: Haileyy!@0xHaileyy
35 days: cho_cho ☁️@choogio
33 days: PaulO@the1_PaulO `
@Nikolaj-K
Nikolaj-K / somnia_7_day_accumulated.java
Created April 16, 2025 18:45
Somnia 7-day accumulated ranking (250416)
rank 1 (2172 pts): skaucat 🐻@skaucat7
rank 2 (2046 pts): rcethomas@rcethomas37
rank 3 (1927 pts): NazBNV@BnvNaz65175
rank 4 (1875 pts): Datweb3guy | (Ø,G)@Datweb3guy
rank 5 (1868 pts): vyre@0xvyre
rank 6 (1863 pts): MICHAELSON Ⓜ️@i_am_michaelson
rank 7 (1792 pts): Quan@quan_eth
rank 8 (1674 pts): Ravstar.plena ꧁IP꧂ (Ø,G)@Ravstar11
rank 9 (1652 pts): HumzyTrades@HumzyTrades
rank 10 (1608 pts): Ahmed Haq@Ahmedhaq01
@Nikolaj-K
Nikolaj-K / somnia_yapper_data_250407.json
Created April 7, 2025 09:07
Yapper data from API calls to Kaito from 330 Somnia yappers from 250407
{
"aixbt@aixbt_agent": {
"user_id": "1852674305517342720",
"username": "aixbt_agent",
"yaps_all": 24515.98,
"yaps_l24h": 64.35,
"yaps_l48h": 107.54,
"yaps_l7d": 363.15,
"yaps_l30d": 1701.74,
"yaps_l3m": 8689.35,