Skip to content

Instantly share code, notes, and snippets.

View jbollacke's full-sized avatar

Jan Bollacke jbollacke

  • Ibbenbueren, Germany
View GitHub Profile
@jbollacke
jbollacke / ZBarCharsetDetectionFixer.java
Created October 20, 2014 07:31
Tries to workaround ZBars unreliable charset detection for qr codes.
public class ZBarCharsetDetectionFixer {
private static final CharsetDecoder latin1CharsetDecoder = Charset.forName("ISO-8859-1").newDecoder();
private static final CharsetEncoder sjisCharsetEncoder = Charset.forName("SJIS").newEncoder();
/**
* Tries to workaround ZBars unreliable charset detection for qr codes.
*
* What it does:
* Encodes String to Shift-JS, decodes the resulting bytes to ISO-8859-1.
*
@awjuliani
awjuliani / Deep-Recurrent-Q-Network.ipynb
Last active July 18, 2023 19:18
An implementation of a Deep Recurrent Q-Network in Tensorflow.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@kbabioch
kbabioch / wireguard
Last active March 12, 2024 14:35
LSBInitScript for Wireguard: This is a leightweight init script for Wireguard. While Wireguard itself requires only minimal overhead to setup and start, it still requires some script invocations (e.g. during boot).
#! /bin/bash
# Copyright (c) 2021 Karol Babioch <karol@babioch.de>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,