Skip to content

Instantly share code, notes, and snippets.

View mmdts's full-sized avatar

mmdts mmdts

  • Self Employed
View GitHub Profile
@mmdts
mmdts / output
Created September 2, 2021 09:12
Forced utime correction
delta_stat_nsec: 539651628212000
delta_stat_nsec: 90000
delta_stat_nsec: 19000
delta_stat_nsec: 16000
delta_stat_nsec: 16000
delta_stat_nsec: 16000
delta_stat_nsec: 16000
delta_stat_nsec: 16000
delta_stat_nsec: 15000
delta_stat_nsec: 16000
@mmdts
mmdts / output
Last active September 2, 2021 04:20
OS Cycleはタイマーの制度を変化する証明
delta_stat_nsec: 6886112047640834662
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
delta_stat_nsec: 0
@mmdts
mmdts / README.md
Last active February 13, 2021 05:46
Betting system analysis and rework for custom hero clash dota custom game.

Old system

Betting currently has the following aspects:

Expected winner = W > L
Underdog = L > W

Winner gain (Gw_aspects):
1. The winner could win at least half the total pot if the algorithm did work --> Discourages
// This is duels using selection from a pool of biased non-binary weighted randoms.
// This makes it so that all players HAVE A TENDENCY duel in a random order before any player duels twice.
// 1) It DOES incentivize players with less duels to being picked in duels.
// 2) It HAS SOMETHING preventing two players from duelling twice in a row.
// 3) It has nothing to prevent 2 duels in a row when only 2 players are left.
const ITERATIONS = 1000;
const PLAYER_COUNT = 10; // The number of players, or in duo mode, the number of teams.
const ELIMINATION_CHANCE_INCREMENT = 0.005; // There is a 4% chance that a player loses on any given round. For simulation purposes.
const FULL = 100;
@mmdts
mmdts / malimages.css
Last active February 13, 2021 05:17
MAL Images
.list-table .list-table-data .data.image a[href="/anime/1/Cowboy_Bebop"] { background-image: url('https://myanimelist.cdn-dena.com/images/anime/4/19644.jpg'); }
.list-table .list-table-data .data.image a[href="/anime/10012/Carnival_Phantasm"] { background-image: url('https://myanimelist.cdn-dena.com/images/anime/10/64283.jpg'); }
.list-table .list-table-data .data.image a[href="/anime/10020/Ore_no_Imouto_ga_Konnani_Kawaii_Wake_ga_Nai_Specials"] { background-image: url('https://myanimelist.cdn-dena.com/images/anime/8/29734.jpg'); }
.list-table .list-table-data .data.image a[href="/anime/10030/Bakuman_2nd_Season"] { background-image: url('https://myanimelist.cdn-dena.com/images/anime/3/34923.jpg'); }
.list-table .list-table-data .data.image a[href="/anime/10080/Kami_nomi_zo_Shiru_Sekai_II"] { background-image: url('https://myanimelist.cdn-dena.com/images/anime/11/30030.jpg'); }
.list-table .list-table-data .data.image a[href="/anime/10087/Fate_Zero"] { background-image: url('https://myanimelist.cdn-dena.com/ima
@mmdts
mmdts / HideDoneAchievements.js
Last active April 10, 2017 21:48
Hide the Achievements that have been completed.
// ==UserScript==
// @name HideDoneAchievements
// @author mmdts
// @description Hide the Achievements that have been completed.
// @include https://animebytes.tv/user.php?action=achievements*
// @version 1.1
// @grant none
// @icon http://animebytes.tv/favicon.ico
// ==/UserScript==