This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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); |
OlderNewer