Skip to content

Instantly share code, notes, and snippets.

View malte-j's full-sized avatar
❤️
🍍🍕

Malte Janßen malte-j

❤️
🍍🍕
View GitHub Profile
@malte-j
malte-j / hpi_moodle_autologin.js
Created April 26, 2023 10:16
Automatically clicks the SSO login button in moodle.
// ==UserScript==
// @name HPI Moodle Autologin
// @namespace https://malts.me/
// @version 1.0
// @description Automatically clicks the SSO login button in moodle.
// @author Malte Janßen ([email protected])
// @match https://moodle.hpi.de/login/index.php
// @icon https://moodle.hpi.de/theme/image.php/boost/theme/1678719034/favicon
// @grant none
// ==/UserScript==
@malte-j
malte-j / ts.dart
Created December 4, 2023 10:35
dart thompson sampling
import 'dart:math';
class ThompsonSampling {
final List<double> means;
final List<double> variances;
ThompsonSampling(List<double> initialMeans, List<double> initialVariances)
: means = List.from(initialMeans),
variances = List.from(initialVariances);