Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View 0xLeon's full-sized avatar

Stefan 0xLeon

  • Siemens AG
  • Berlin, Germany
View GitHub Profile
@0xLeon
0xLeon / BCChromeFullscreenFix.user.js
Created May 17, 2018 18:23
Fixes a BisaChat fullscreen bug in Chrome
// ==UserScript==
// @name BisaChat Chrome Fullscreen Fix
// @namespace http://projects.0xleon.com/userscripts/bc-chrome-full-fix
// @version 1.0.0
// @description Fixes a BisaChat fullscreen bug in Chrome.
// @author Stefan Hahn
// @copyright 2018, Stefan Hahn
// @match https://bisachat.bisafans.de/index.php?room/*/
// @grant unswafeWindow
// @run-at document-body
@0xLeon
0xLeon / PointCloudDensity.py
Created June 28, 2018 11:00
Point Cloud Density Calculation
"""
Provides methods for calculating point cloud densities.
All methods can handle instances of PLYObject or list or ndarray instances of lists of vertices.
"""
import numpy as np
import scipy.spatial
def getRealDensityFromPlane(ply, planeParams):
"""
@0xLeon
0xLeon / BCPlus.user.js
Created October 10, 2018 19:46
Bare version of »new« BCPlus (actually just a now playing function for BisaChat)
// ==UserScript==
// @name BisaChat Plus
// @namespace http://projects.0xleon.com/userscripts/bcplus
// @version 4.0.0.dev1
// @description Make BisaChat Great Again
// @author Stefan Hahn
// @match https://bisachat.bisafans.de/index.php?room/*
// @grant none
// @run-at document-end
// ==/UserScript==
@0xLeon
0xLeon / FlipRowsColumns.bas
Created June 15, 2020 10:24
Excel - Flip Rows / Columns
Sub FlipRows()
Dim vTop As Variant
Dim vEnd As Variant
Dim iStart As Integer
Dim iEnd As Integer
Application.ScreenUpdating = False
Application.Calculation = xlCalculationManual
iStart = 1
@0xLeon
0xLeon / FileSize.js
Created September 13, 2020 07:14
Calculate Server Index File Size
[...$$('html > body > pre')[0].textContent.matchAll(/\d+$/gm)].map((a) => parseInt(a[0])).reduce((acc, val) => acc + val) / Math.pow(1024, 3)
@0xLeon
0xLeon / Records.txt
Last active October 14, 2022 20:07
Vinyl Records
A Day to Remember - Bad Vibrations
A Day to Remember - What Separates Me from You
A Day to Remember - You're Welcome
As I Lay Dying - An Ocean Between Us
As I Lay Dying - Frail World Collapse
As I Lay Dying - Shaped by Fire
As I Lay Dying - The Powerless Rise
blink-182 - California
blink-182 - Nine
Heaven Shall Burn - Antigone
@0xLeon
0xLeon / BCPlus.js
Last active February 13, 2021 16:39
BisaChat Plus 4
// ==UserScript==
// @name BisaChat Plus
// @namespace http://projects.0xleon.com/userscripts/bcplus
// @version 4.0.0.dev1
// @description Make BisaChat Great Again
// @author Stefan Hahn
// @match https://bisachat.bisafans.de/index.php?room/*
// @grant none
// @run-at document-end
// ==/UserScript==
@0xLeon
0xLeon / mrliar.py
Last active November 28, 2021 20:21
Miller Rabin Notorious Liar Identification
import multiprocessing
import multiprocessing.pool
import time
class TimeMeasurement(object):
def __init__(self, operation, printStd=True):
self._t0 = 0
self._t1 = 0
self._operation = operation