Skip to content

Instantly share code, notes, and snippets.

View X-Raym's full-sized avatar

Raymond Radet X-Raym

View GitHub Profile
@X-Raym
X-Raym / script.ps1
Created November 3, 2026 10:48
List all extensions in a directory and subdirecory with occurences count
powershell -Command "Get-ChildItem -Recurse -File | Group-Object Extension | Select-Object Name, Count | Sort-Object Name"
Name Count
---- -----
.db 1
.eel 93
.ini 9
.lua 590
.md 1
.png 161
This file has been truncated, but you can view the full file.
{"01400":{"L'Abergement-Clémenciat":[46.1499375,4.9232165],"Chanoz-Châtenay":[46.183709,5.031068],"Châtillon-sur-Chalaronne":[46.119171,4.957637],"Condeissiat":[46.157543,5.079588],"Dompierre-sur-Chalaronne":[46.141956,4.900247],"Neuville-les-Dames":[46.162127,5.004882],"Romans":[46.120487,5.022608],"Saint-Georges-sur-Renon":[46.1056675,5.030874],"Sandrans":[46.061933,4.9804705],"Sulignat":[46.176084,4.9628725]},"01640":{"L'Abergement-de-Varey":[46.0068595,5.4240035],"Boyeux-Saint-Jérôme":[46.030326,5.457222],"Jujurieux":[46.041037,5.410793],"Saint-Jean-le-Vieux":[46.030732,5.389763]},"01500":{"Ambérieu-en-Bugey":[45.959309,5.355596],"Ambronay":[46.004903,5.359527],"Ambutrix":[45.939072,5.338763],"Bettant":[45.9432765,5.363674],"Château-Gaillard":[45.9658635,5.3062745],"Douvres":[45.9891625,5.3727105],"Saint-Denis-en-Bugey":[45.950067,5.327666],"Saint-Maurice-de-Rémens":[45.957843,5.274461]},"01330":{"Ambérieux-en-Dombes":[45.996563,4.903831],"Birieux":[45.954227,5.040303],"Bouligneux":[46.018146,5.004864],"L
@X-Raym
X-Raym / main.lua
Last active October 27, 2026 00:03
Binding of Isaac - Controller Restart is Rewind Mod: Prevent Restart a run if Right Stick and Right Trigger are pressed for too long
-- Binding of Isaac Mod: Controller Restart is Rewind
-- Description: Prevent Restart a run if Right Stick and Right Trigger are pressed for too long
-- Author: X-Raym
-- Version: 1.0.0
-- Link: https://gist.github.com/X-Raym/ada281b76bbbc3a5cde4fc8d7f3ee605/edit
-- License: GPL v3
local fart = true
local game = Game()
local mod = RegisterMod("Controller Restart is Rewind", 1)
@X-Raym
X-Raym / Wiimote to Arrows Keys.md
Last active June 1, 2026 08:22
WiiMote to Arrows Keys è Useful for Slideshow / powerpoint / canva / slides presentation with Chataigne

Wiimote to PC Arrows Keys (for Slideshow Presentation)

This project is about linking a Wiimote to PC, via Chataigne, to be able to control a slideshow remotely. It is a simple mapping of Wiimote keys toward keyboard Arrows keys.

Connect Wiimote to PC

A PIN code is asked for connecting to the Wiimote if the regular Blutooth button is used. Here is how to skip it:

Windows 10

<REAPER_PROJECT 0.1 "7.42/win64" 1753519046
RIPPLE 0 0
GROUPOVERRIDE 0 0 0
AUTOXFADE 129
ENVATTACH 0
POOLEDENVATTACH 0
MIXERUIFLAGS 11 48
PEAKGAIN 1
FEEDBACK 0
PANLAW 1
9:57:56 OSC /a : 0
9:57:56 OSC /a : 0.00134286
9:57:56 OSC /a : 0.00268571
9:57:56 OSC /a : 0.00396753
9:57:56 OSC /a : 0.00402857
9:57:56 OSC /a : 0.00531038
9:57:56 OSC /a : 0.00665324
9:57:56 OSC /a : 0.00799609
9:57:56 OSC /a : 0.00933895
9:57:56 OSC /a : 0.0106818
<REAPER_PROJECT 0.1 "7.27/win64" 1731943708
RIPPLE 0
GROUPOVERRIDE 0 0 0
AUTOXFADE 129
ENVATTACH 0
POOLEDENVATTACH 0
MIXERUIFLAGS 11 49
PEAKGAIN 1
FEEDBACK 0
PANLAW 1
@X-Raym
X-Raym / StrToUniqueCharactersArr.js
Created November 8, 2024 08:38
String to array of unique characters JavaScript
function StrToUniqueCharactersArr(str) {
str = str.split("") // Array of chars from str
let set = new Set(str) // Set of unique values from array
return [...set] // Convert set to array
}
@X-Raym
X-Raym / script.js
Created November 7, 2024 10:21
Javascript match all substring instances via regex and return array
const htmlString = "Normal normal <u>souligné</u> normal normal <u>souligné</u>";
const regex = /<u>(.+?)<\/u>/g;
let matches;
const results = [];
while ((matches = regex.exec(htmlString)) !== null) {
results.push({
match: matches[1],
index: matches.index
});
@X-Raym
X-Raym / python regex.py
Created October 21, 2024 18:20
Python regex match to list / array
import re
str = "ab-ab"
regex = r"(\w+)\-(\w+)"
matches = re.search( regex, str )
print( list(matches.groups()) )
## ['ab', 'ab']