Skip to content

Instantly share code, notes, and snippets.

@Lenochxd
Lenochxd / minesweeper-top-percent.user.js
Created July 28, 2025 12:40
Display top % next to rank on Minesweeper Online PvP page
// ==UserScript==
// @name Minesweeper Online Top % Rank
// @namespace https://minesweeper.online/
// @version 1.0
// @description Display top % next to rank on Minesweeper Online PvP page
// @author You
// @match https://minesweeper.online/*
// @grant none
// ==/UserScript==
@Lenochxd
Lenochxd / isaac-wiki-redirect.user.js
Created July 23, 2025 12:05
Automatically redirects any page on the old fandom.com Isaac wiki to the new wiki.gg domain while preserving the path and anchor
// ==UserScript==
// @name Isaac Wiki Redirector
// @version 1.0
// @description Redirects from fandom.com Isaac wiki to wiki.gg
// @match https://bindingofisaacrebirth.fandom.com/*
// @run-at document-start
// @grant none
// ==/UserScript==
(function() {
@Lenochxd
Lenochxd / ShowMeBoosters.py
Created July 6, 2025 00:09
Get the boosters list of a discord server
import nextcord
from nextcord.ext import commands
intents = nextcord.Intents.default()
intents.members = True # Enable member intents
bot = commands.Bot(command_prefix='!', intents=intents)
@bot.event
async def on_ready():
print(f'Bot is ready as {bot.user.name}')
@Lenochxd
Lenochxd / t9-to-text.py
Last active June 23, 2025 18:41
T9 string to text and vice versa
t9_mapping = {
'2': 'abc',
'3': 'def',
'4': 'ghi',
'5': 'jkl',
'6': 'mno',
'7': 'pqrs',
'8': 'tuv',
'9': 'wxyz',
'0': ' '
@Lenochxd
Lenochxd / parse_price.py
Created March 25, 2025 13:57
Convert a price string into a float, handling different formatting styles.
import re
def parse_price(price: str) -> float:
"""
Convert a price string into a float, handling different formatting styles.
- Supports "1,123.23" (English format) -> 1123.23
- Supports "1123,23" (European format) -> 1123.23
- Supports "1.123,23" (European thousand separator) -> 1123.23
- Supports "1,123" (English thousand separator) -> 1123.0
import pyperclip
import os
IGNORE = ['lib', 'dist', 'build', 'venv', '__pycache__', '.logs', '.git', '.github']
EXTENSIONS_ONLY_DIRS = ['img', 'icons']
output = ''
def print_and_log(t):
@Lenochxd
Lenochxd / wakatime-browser-whitelist.txt
Last active September 9, 2024 18:50
Whitelist configuration for the WakaTime browser extension to ensure accurate time tracking by only counting time spent on specific, work-related websites. By using this whitelist, you can prevent WakaTime from tracking non-work-related activities, such as watching YouTube or browsing social media.
http://localhost*
http://192.168.*
http://127.*
*stackoverflow.com/*
*bitbucket.org/*
*developer.mozilla.org/*
*w3schools.com/*
*dev.to/*
*medium.com/*
*hashnode.com/*
@Lenochxd
Lenochxd / colors_db.json
Created May 28, 2024 19:37
List of color names with hex codes
[
{
"name": "Black",
"hex_code": "#000000"
},
{
"name": "Night",
"hex_code": "#0C090A"
},
{
@Lenochxd
Lenochxd / cuneiform.py
Created April 23, 2024 17:40
convert alphabet to cuneiform or vice versa using python
alphabet = 'abcdefghijklmnopqrstufwxyz'
cuneiform = '𒋻𒁀𐏓𒁓𒀼𐎣𒋝𒀂𒐕𒑟𒐞𒁇𐎠𒐖𒆸𒇬𒌒𒇲𒔼𒈦𒑚𐎏𒉼𒉽𒌨𒑣'
print("a: from alphabet to cuneiform.")
print("c: from cuneiform to normal text")
choice = input("Enter your choice (a/c): ").replace(' ', '')
if choice == 'a' or choice == '':
text = input("Enter text to convert to cuneiform: ")
converted_text = ""

Politique de confidentialité de Bishokus, Mars 2022

Informations que Bishokus reçoit et collecte

  • Messages supprimés si la fonction "sniper" est activée
  • Identifiant des salons/serveurs dont une option sera activée ou désactivée
  • Identifiant des utilisateurs ayant désactivés le reçu des messages privés via !dm, !anondm

Rappel : l'ID est un élément non confidentiel qui est accessible par tous, par n'importe quel utilisateur de Discord.