Skip to content

Instantly share code, notes, and snippets.

View abe33's full-sized avatar

Cédric Néhémie abe33

  • Clermont-Ferrand, France
View GitHub Profile
@abe33
abe33 / power-level.md
Last active February 22, 2018 17:01
Splatoon Power Level

Power Level and Rank Skip

Let's get this out of the way real quick: We don't really know what accounts for a player's power level. Most likely this is a combination of rank power levels (as described in https://splatoonwiki.org/wiki/Splatfest_Power) with an Elo-based score evolution (as seen in splatfest and leagues) plus another factor that I'll detail later which is more linked to the team-based nature of Splatoon.

The problem here has several faces to it. We need to explain the following elements we can observe daily:

  • How one skips ranks even with cracks when one doesn't with no losses?
  • How the gauge increases differently for apparently random reasons?
  • How one gets cracks instantly and sometimes only after 3 games?

The starting point of my reasoning comes from what we could all see when splatoon was released or, more recently, when clam blitz came out.

@abe33
abe33 / cool_map_list.py
Last active July 21, 2018 12:03
cool_map_list.py
from random import shuffle
# First thing first, using global should be avoided at all costs, I won't
# explain all the reasons, there's a lot of litterature on that topic.
# So, let's start by removing these globals everywhere and look for
# a way to replace them
# These lists really look like externalities to me, this should problably
# be passed as arguments to the program, or with some other kind of setup,
# but as is, Ill just past them as constant to make it explicit that we won't
function camelize(str) {
return noDiacritics(str)
.toLowerCase()
.split(/[^a-z]+/g)
.reduce(function(memo, s, i) {
return i === 0 ? s : memo + capitalize(s)
}, '');
}
/* Met en majuscule le premier caractère de la chaîne. */
@abe33
abe33 / remove-twitch-chat-header.js
Created August 10, 2020 12:55
Remove Twitch chat header
function addGlobalStyle(css) {
const style = document.createElement('style');
style.innerHTML = css;
document.head.appendChild(style);
}
addGlobalStyle('.stream-chat .stream-chat-header { display: none !important; }');