Skip to content

Instantly share code, notes, and snippets.

View kutyel's full-sized avatar
🌊
数学者に俺は成る!

Flavio Corpa kutyel

🌊
数学者に俺は成る!
View GitHub Profile
@kutyel
kutyel / bible.json
Created August 18, 2025 11:32
JSON with the book names of the Bible and the number of chapters each has
{
"Genesis": 50,
"Exodus": 40,
"Leviticus": 27,
"Numbers": 36,
"Deuteronomy": 34,
"Joshua": 24,
"Judges": 21,
"Ruth": 4,
"1 Samuel": 31,
@kutyel
kutyel / tournaments.csv
Last active August 7, 2025 12:04
Recent results
Oponent Rating Opening Result Playing Tournament
Bianca Andre Varcagiu Nadoleanu 1446 Dubov Gambit 1 White IV IRT Sub1800 Mutxamel 2025
Fran Penalva Cuerva 1688 Sicilian Najdorf 1/2 Black IV IRT Sub1800 Mutxamel 2025
Alfonso Serrano Ruzafa 1598 Open Sicilian 0 Black IV IRT Sub1800 Mutxamel 2025
Rostyslav Bachyk 1780 Kan Sicilian 0 White IV IRT Sub1800 Mutxamel 2025
Josep Frau Roig 0 Sicilian Defence: Bowlder Attack 1 Black IV IRT Sub1800 Mutxamel 2025
Francisco Muñoz Martínez 1416 French Defence: Advanced Variation 1 White IV Peones Traviesos 2025
FM Bernat Serarols Mabras 2303 Caro Kann: Advance 1/2 White IV Peones Traviesos 2025
Guillermo Elvira Martínez 0 Sicilian Defence: Bowlder Attack 1 Black IV IRT Sub1800 Sant Joan 2025
Aurelio Martínez Córchalo 0 Italian Game 1 White IV IRT Sub1800 Sant Joan 2025
@kutyel
kutyel / bsky-comments.js
Last active November 26, 2024 12:38 — forked from LoueeD/bsky-comments.js
bluesky comments web component - inspired by emilyliu and coryzue
class BskyComments extends HTMLElement {
constructor() {
super();
this.attachShadow({ mode: "open" });
this.visibleCount = 3;
this.thread = null;
this.error = null;
}
connectedCallback() {
@kutyel
kutyel / FTN-Tupas.md
Created May 20, 2024 10:34 — forked from ykarikos/FTN-Tupas.md
FTN Test accounts and personal ID numbers for Finnish bank authentication
@kutyel
kutyel / index.js
Created August 11, 2023 09:42
Haskell style valid braces kata but in JavaScript! 🥷🏻
const validBraces = (str) => ![...str].reduceRight(collapse, []).join('')
const collapse = ([head, ...tail], val) => {
switch (val) {
case '(':
return head === ')' ? tail : [val, head, ...tail]
case '{':
return head === '}' ? tail : [val, head, ...tail]
case '[':
return head === ']' ? tail : [val, head, ...tail]
default:
@kutyel
kutyel / Autocomplete.scss
Created September 20, 2022 11:32
Elm Autocomplete
@use '_share/src/zindex' as zindex;
@use '_share/src/Platform2/colors' as P2Colors;
@use '_share/src/Platform2/Scrollbar/style' as Scrollbar;
@mixin autocomplete {
&--search-icon {
margin-left: -8px;
margin-right: -4px;
height: 32px;
}
const app = Application.currentApplication()
app.includeStandardAdditions = true
let Calendar = Application("Calendar")
const rounds = [
["Round 1", "12/26/2022 17:00"],
["Round 2", "12/27/2022 10:00"],
["Round 3", "12/27/2022 17:00"],
["Round 4", "12/28/2022 10:00"],
["Round 5", "12/28/2022 17:00"],
@kutyel
kutyel / part3.elm
Created July 13, 2022 14:10
Chapter 1 of Essential F# in Elm
module Main exposing (Customer(..), calculateTotal)
type Customer
= Eligible { id : String }
| Registered { id : String }
| Guest { id : String }
calculateTotal : Customer -> Double -> Double
@kutyel
kutyel / fix-git.sh
Created January 4, 2022 13:46
FIX git history of former work emails 🤦‍♂️
git filter-branch --env-filter '
OLD_EMAIL="[email protected]"
CORRECT_NAME="Flavio Corpa"
CORRECT_EMAIL="[email protected]"
if [ "$GIT_COMMITTER_EMAIL" = "$OLD_EMAIL" ]
then
export GIT_COMMITTER_NAME="$CORRECT_NAME"
export GIT_COMMITTER_EMAIL="$CORRECT_EMAIL"
fi
if [ "$GIT_AUTHOR_EMAIL" = "$OLD_EMAIL" ]
@kutyel
kutyel / event-emitter-copilot.js
Created July 14, 2021 09:25
Github Copilot passed the Facebook EventEmitter JavaScript test... Yikes!
/**
*
* Create an event emitter that goes like this:
*
```javascript
const emitter = new Emitter();
```
Its instance allows you to subscribe to some event by passing a callback function