Skip to content

Instantly share code, notes, and snippets.

View Paturages's full-sized avatar

Christian Ingouff Paturages

View GitHub Profile
@Paturages
Paturages / main.py
Last active June 22, 2022 15:04
osu!mania foo.bar
# Notes are represented by a bitmap:
# [column1, column2, column3, column4]
# [1 , 2 , 4 , 8 ]
# e.g. a [13] chord has 1+4 = 5 as a value
##### #####
# A pattern is vibruh if
# * All jack notes are 1 index apart
# * There are >= 4 notes in the same column one after another
@Paturages
Paturages / 01.groups.md
Last active June 15, 2020 07:54
MBS2 Mappool Feedback

MBS2 Group Stage

Overall word

Overall I think this mappool is good because it properly fills many niches, as it should. However, they may not be filled for the reasons one may think, e.g. a speed and sv pick being better ratio picks than the acc picks, an acc pick being more of a hybrid... It can push players' strategies beyond the sv/ln/acc/speed/tech/hybrid mold and meta and can make some matches genuinely interesting, even if they may not be representative of players' proficiencies in respective categories.

I've noticed the balance between harder and easier picks, which I think gives a proper chance to the lower seeds of groups while still providing higher seeds something to chew on, but the fact that categories can cross between each other kinda disturbs that meta.

I think it made for some really interesting upsets and matches, and I really had fun picking and counterpicking in my matches. It's undeniably a good pool.

@Paturages
Paturages / conf.d~auth.conf
Created October 12, 2019 09:15
Discord OAuth protected endpoints with only nginx
js_include conf.d/oauth2.js;
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
location / {
auth_request /_auth_init;
}

Keybase proof

I hereby claim:

  • I am paturages on github.
  • I am paturages (https://keybase.io/paturages) on keybase.
  • I have a public key ASANatV05M-6qrSRj--y4pha9dREdYvIhYC1dT3aheIVSwo

To claim this, I am signing this object:

@Paturages
Paturages / rot13.js
Last active June 27, 2017 23:24
JavaScript ROT13 (code golf)
// 105 chars: Common characters only
m=>String.fromCharCode(...[].map.call(m,x=>x.charCodeAt()).map(x=>x<65?x:x<110?x<78|x>95?x+13:x-13:x-13))
// 123 chars: Full character support
m=>String.fromCharCode(...[].map.call(m,x=>x.charCodeAt()).map(x=>x<65|x>122|(x>90&x<97)?x:x<110?x<78|x>95?x+13:x-13:x-13))