Skip to content

Instantly share code, notes, and snippets.

View oskopek's full-sized avatar

Ondrej Skopek oskopek

View GitHub Profile
@oskopek
oskopek / kdialog.pl
Last active May 10, 2021 16:10
Irssi notification script for KDE using kdialog
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '0.1.2';
%IRSSI = (
authors => 'Ondrej Skopek',
contact => 'skopekondrej@gmail.com',
name => 'kdialog',
description => 'A KDialog PassivePopup show\'s who is talking to you, on what IRC channel.',
@oskopek
oskopek / Game.java
Last active August 29, 2015 14:06
MKovar Game
package priklad;
import java.awt.*;
import java.awt.event.KeyAdapter;
import java.awt.event.KeyEvent;
import java.awt.event.MouseEvent;
import java.awt.event.MouseMotionAdapter;
import java.util.*;
public class Game extends GameEngine {
@oskopek
oskopek / keybase.md
Created October 7, 2014 14:10
keybase.md

Keybase proof

I hereby claim:

  • I am oskopek on github.
  • I am oskopek (https://keybase.io/oskopek) on keybase.
  • I have a public key whose fingerprint is 441A F1CB 21AB ED0F 3828 5CC7 0D75 12A1 6E94 4B7F

To claim this, I am signing this object:

@oskopek
oskopek / away_reloaded.py
Last active May 19, 2019 09:35
Xchat away script reloaded
#
# Away module for XChat.
#
# Author: Michal Prochowski <michal@prochowski.pl>
# Author: Ondrej Skopek <oskopek@oskopek.com>
# URL: http://github.com/mablo/xchat-scripts
#
# Copyright(c) 2012 Michal Prochowski
# Copyright(c) 2015 Ondrej Skopek
# License: MIT
@oskopek
oskopek / checkstyle-timer.sh
Last active August 29, 2015 14:26
maven-checkstyle-plugin benchmark
#!/bin/bash
# Author: Ondrej Skopek (oskopek)
# Licensed under the MIT License (MIT): http://opensource.org/licenses/MIT
# Configuration
runs=5
newpom=newpom.xml
oldpom=oldpom.xml
internal_log=internal.log
@oskopek
oskopek / optaplanner_design_questions.adoc
Last active September 1, 2015 07:37
OptaPlanner design questions
@oskopek
oskopek / statistical_benchmarking_ideas.adoc
Last active September 3, 2015 13:17
Statistical benchmarking

Statistical benchmarking

  • Goal: Rank solvers agnostic of PCs, JVMs, processes, OSs, runs, …​ (as much as possible), depending only on the Solver. ✓

  • Means: Run each single benchmark multiple (N) times (on different JVMs) and evaluate the results statistically. ✓

    • How big should N be? (calculate statistically) (Bloch: 30+) X

      • Student’s t-test ✓ (on the fly? + append another run) X

  • Statistics - results

    • Have to be modular ✓

      • f.e.: avg, min, max, median, geom. mean, std. dev ✓

    • Discussion with Jirka: evaluate against a function (1 hard ~ 300 soft) X

Asciidoctor cheatsheet

  • Strikethrough: Strike me!

@oskopek
oskopek / MANUAL_FIXES_AFTER_CONVERSION.txt
Last active September 30, 2015 09:03
Converting OptaPlanner's UpgradeRecipe from .txt -> .adoc
upgradeRecipe6.0.adoc
* line 850
upgradeRecipe6.1.adoc
* line 19
upgradeRecipe6.2.adoc
@oskopek
oskopek / National Geographic Picture-Of-The-Day Wallpaper Script
Last active December 12, 2015 10:40 — forked from bjarkevad/National Geographic Picture-Of-The-Day Wallpaper Script
Updated National Geographic Picture-Of-The-Day Wallpaper Script for Gnome 3.*
#!/bin/bash
# Copyright (c) 2011 Josh Schreuder
# http://www.postteenageliving.com
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
# furnished to do so, subject to the following conditions: