Skip to content

Instantly share code, notes, and snippets.

View JanPokorny's full-sized avatar

Jan Pokorný JanPokorny

  • https://www.brainsoft.eu/
  • Brno, Czech Republic
  • LinkedIn in/jan-pokorny
View GitHub Profile
"""
Generates a self-referential test. There are 18 question-statements, answer to each being 1 (truth) or 0 (false).
Answer to the whole test is thus a 18-digit binary number.
"""
import random
questions_count = 18
convergence = 0.7
@JanPokorny
JanPokorny / is-fix-assignment.user.js
Created February 26, 2018 14:31
IS MU Fix disabled assignment button
// ==UserScript==
// @name IS course assignment
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Fix disabled button for course assignment
// @author Jan Pokorný
// @match https://is.muni.cz/auth/student/*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_xmlhttpRequest
@JanPokorny
JanPokorny / dark-is.user.css
Last active September 26, 2018 10:01
Dark Stylish style for IS MU
/* ==UserStyle==
@name Dark IS MU
@namespace github.com/JanPokorny
@version 1.0.1
==/UserStyle== */
@-moz-document domain("is.muni.cz") {
#sticky_panel.bgr {
/** CSS style to make Microsoft To-Do narrower **/
/** Made by Puf https://popcorn.vivaldi.net **/
#sidebar:not(:hover) {
width: 55px;
}
#sidebar {
transition: width 0.3s;
}
/** CSS style to make Skype Web narrower **/
/** Made by Puf https://popcorn.vivaldi.net **/
#footer, .ContactsPage-hint {
display: none;
}

Keybase proof

I hereby claim:

  • I am JanPokorny on github.
  • I am janpokorny (https://keybase.io/janpokorny) on keybase.
  • I have a public key whose fingerprint is E683 07D4 75D3 0465 805C D47C 60D0 13A9 B303 9FF7

To claim this, I am signing this object:

@JanPokorny
JanPokorny / ebay-bullshit.user.js
Last active November 13, 2022 10:29
UserScript to be used with Tampermonkey (Chrome) or Greasemonkey (Firefox). When searching for buy-it-now items on eBay, shows the actual price instead of the bogus item price that some shitty sellers add.
// ==UserScript==
// @name eBay quit your bullshit
// @namespace Puf
// @version 0.1
// @description When searching for buy-it-now items on eBay, shows the actual price instead of the bogus item price that some shitty sellers add
// @author Puf
// @match http://www.ebay.com/sch/*
// @grant GM_xmlhttpRequest
// ==/UserScript==
/** CSS style to make FB Messenger narrower **/
/** Made by Puf https://popcorn.vivaldi.net **/
/* Width fix */
body > div:first-child > div:first-child > div:first-child, ._4sp8 {
min-width: 0!important;
}
/* New message overflow fix */
[aria-label="New message"] > div:first-child > div:first-child {
@JanPokorny
JanPokorny / rutranslit.user.js
Created October 11, 2016 13:24
Transliterates azbuka to latin
// ==UserScript==
// @name RuTranslit
// @namespace RuTranslit
// @description Azbuka -> Latin
// @include *
// @version 1
// @grant none
// ==/UserScript==
function textNodesUnder(node) {
@JanPokorny
JanPokorny / neomacro.user.js
Last active January 1, 2016 13:19
TagPro Neomacro UserScript by Popcorn. Description in a comment in the code below ↓
/*
* TagPro Neomacro | UserScript by Popcorn.
* ========================================
* Are you tired of overly complex chat macro systems? Have you forgotten whether you bound "Yes" to I or U?
* This is Neomacro -- TagPro macro system that uses arrow keys, ctrl and 0 (zero) (you use WASD to control
* the game, don't you?) to create powerful and easy-to-remember macro codes.
*
* 1.0 update: Redesigned some macros, be sure to take a look.
* 1.1 update: Simplified code, added more comments
* 1.2 update: Goodbye, backspace and ctrl+something!