Skip to content

Instantly share code, notes, and snippets.


Erik Byström bysse

View GitHub Profile
bysse /
Last active Apr 2, 2020
Utility for comparing COVID-19 cases side by side between countries.
bysse /
Created Sep 24, 2014
A version of ANTLR4 TestRig that support packages
* [The "BSD license"]
* Copyright (c) 2012 Terence Parr
* Copyright (c) 2012 Sam Harwell
* All rights reserved.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
import sys, getopt
import Image, ImageDraw
# This is the colors of the pearls used by the original software
colors = [
(0x17, 0x20, 0x29),(0x48, 0x3f, 0x38),
(0x57, 0x3b, 0x38),(0x80, 0x1f, 0x32),
(0xb3, 0x61, 0x2f),(0xa9, 0x90, 0x7c),
bysse /
Created Sep 19, 2013
A JFreeChart layout for both the vertical and the horizontal axis. It works by specifying the width, in items, of the initial column. The column is filled with as many labels as there is room for, then a new column will be created with the same width. The arrangement works the same way for rows.…
package se.slackers.jfreechart;
import java.awt.Graphics2D;
import java.awt.geom.Rectangle2D;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.jfree.chart.block.Arrangement;
import org.jfree.chart.block.Block;
bysse / cookie_watcher.js
Created Sep 11, 2013
Watching when the Golden Cookie is about to appear and alerts you! This will only work properly in Chrome, make sure to click on the version number to grant permission for HTML5 notifications otherwise it will only notify in the JS console.
View cookie_watcher.js
View hello.js
function fc(a){var b=z("ib",lc);a.c[b.f]=b;b=z("oa");a.c[b.f]=b;sd(a);b=z("Za");a.c[b.f]=b}function lc(a){fc(a)}function Nc(a,b){var c=z("cb",yd,b);a.c[c.f]=c;Vc(a,[K(a.m,0)])}function yd(a,b){Nc(a,b);a.v=[]}function Xc(a){var b=z("Ya",xd);a.c[b.f]=b;b=z("oa");a.c[b.f]=b;sd(a)}function xd(a){Xc(a)}function sc(a,b){var c=z("Va",wd,b);a.c[c.f]=c;c=[K(a.m,0),K(a.m,1)];c=z("Ua",g,c);a.c[c.f]=c}function wd(a,b){sc(a,b);a.v=[]}function qc(a,b){var c=z("Ta",vd,b);a.c[c.f]=c;Vc(a,[K(a.m,0)])}function vd(a,b){qc(a,b);a.v=[]}function Jb(a,b){var c=z("Sa",g,b);a.c[c.f]=c}function Mb(a){var b=z("Oa",ud);a.c[b.f]=b;sd(a)}function ud(a){Mb(a)}function dc(a){var b=z("Na",td);a.c[b.f]=b;Xc(a)}function td(a){dc(a)}function sd(a){var b=z("Ma");a.c[b.f]=b}function Ib(a){var b=new od;b.i=z("Ga",pd);,a);;return b}function rd(a){;this.kb=a}function qd(){}function pd(a){var b=z("Ga",pd);a.c[b.f]=b;Yc(a)}function od(){}function Lc(){var a=new kd;a.i=z("Fa",ld);;
You can’t perform that action at this time.