Skip to content

Instantly share code, notes, and snippets.

View J08nY's full-sized avatar
🎓
Finishing up

Ján Jančár J08nY

🎓
Finishing up
View GitHub Profile
This file has been truncated, but you can view the full file.
SlidingWindow_w:4,recode:LTR+(a+all+pre)
ProbMap(probs={1: 1.0, 2: 0.47, 3: 1.0, 4: 0.21, 5: 1.0, 6: 0.16, 7: 1.0, 8: 0.09, 9: 1.0, 10: 0.13, 11: 1.0, 12: 0.06,
13: 1.0, 14: 0.09, 15: 1.0, 16: 0.04, 17: 0.07, 18: 0.05, 19: 0.1, 20: 0.07, 21: 0.05, 22: 0.02, 23: 0.01, 24: 0.02, 25:
0.04, 26: 0.04, 27: 0.02, 28: 0.06, 29: 0.06, 30: 0.03, 31: 0.04, 32: 0.03, 33: 0.05, 34: 0.01, 35: 0.06, 36: 0.01, 37:
0.03, 38: 0.04, 39: 0.02, 40: 0.04, 42: 0.04, 43: 0.02, 44: 0.01, 45: 0.01, 48: 0.01, 49: 0.06, 50: 0.02, 51: 0.03, 52:
0.02, 53: 0.02, 54: 0.02, 55: 0.03, 56: 0.04, 57: 0.02, 58: 0.04, 59: 0.01, 60: 0.03, 61: 0.03, 62: 0.01, 63: 0.01, 64:
0.01, 65: 0.01, 67: 0.02, 68: 0.01, 70: 0.04, 71: 0.03, 73: 0.01, 74: 0.01, 75: 0.02, 76: 0.02, 77: 0.01, 79: 0.01, 80:
0.03, 81: 0.01, 83: 0.02, 84: 0.02, 85: 0.02, 86: 0.01, 87: 0.03, 88: 0.01, 89: 0.03, 90: 0.01, 91: 0.01, 93: 0.02, 95:
0.01, 96: 0.01, 98: 0.02, 99: 0.01, 100: 0.01, 102: 0.01, 103: 0.01, 104: 0.01, 105: 0.01, 107: 0.02, 109: 0.01, 110: 0
.01, 111: 0.01,
@J08nY
J08nY / intervals_flat_skyline.js
Last active July 28, 2025 12:26
Makes the past workout skyline flat and look like the normal one.
// ==UserScript==
// @name Skyline Chart Gradient Flattener
// @namespace http://tampermonkey.net/
// @version 1.0
// @description Sets all gradient stops in #skyline-chart-gradients to constant opacity (stop-opacity: 0.8) and adds a stroke.
// @author You
// @match https://intervals.icu/*
// @grant none
// ==/UserScript==
import inspect
import tempfile
import sys
from contextlib import contextmanager
from importlib import import_module, invalidate_caches
from pathlib import Path
@contextmanager
@J08nY
J08nY / hwvault.py
Last active November 27, 2020 20:19
#!/usr/bin/env python3
from bs4 import BeautifulSoup
from matplotlib import pyplot as plt
from datetime import datetime
import click
@click.command()
@click.argument("is_folder_info", type=click.File("r"))
@click.option("-d", "--deadline", type=click.DateTime(), default=None)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
def _can_revoke(revoker, target_primary):
for self_sig in target_primary.self_signatures:
for rk in self_sig.revocation_key:
if rk.algorithm == revoker.key_algorithm and rk.fingerprint == revoker.fingerprint:
return True
return False
hash_algo = prefs.pop('hash', None)
sig_type = None
if isinstance(target, PGPUID):
======================================================================
FAIL: /home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst
----------------------------------------------------------------------
Traceback (most recent call last):
File "/usr/lib/python3.5/doctest.py", line 2190, in runTest
raise self.failureException(self.format_failure(new.getvalue()))
AssertionError: Failed doctest test for using.rst
File "/home/johny/dev/psf/mailman/mailmanclient/src/mailmanclient/docs/using.rst", line 0
----------------------------------------------------------------------

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: