Skip to content

Instantly share code, notes, and snippets.

View x4d3's full-sized avatar

Xavier Delamotte x4d3

View GitHub Profile
@x4d3
x4d3 / generate_unicode.rb
Last active April 7, 2024 11:40
Unicode
# Define the file path to save the output
output_file = "unicode_characters.txt"
# Open the file in write mode
File.open(output_file, "w") do |file|
# Define Unicode script ranges
script_ranges = {
"Basic Latin" => (0x0000..0x007F),
"Latin-1 Supplement" => (0x0080..0x00FF),
"Latin Extended-A" => (0x0100..0x017F),
@x4d3
x4d3 / add_aliases.sh
Last active February 26, 2024 08:27
Git Last Branches
git config --global alias.lb "for-each-ref --count=30 --sort=-committerdate refs/heads/ --format='%(refname:short)'"
C:\Users\xdelamotte\.jdks\temurin-11.0.21\bin\java.exe -Dmaven.multiModuleProjectDirectory=C:\Users\xdelamotte\repo\stats-flink -Djansi.passthrough=true "-Dmaven.home=C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3" "-Dclassworlds.conf=C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\bin\m2.conf" "-Dmaven.ext.class.path=C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven-event-listener.jar" "-javaagent:C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\lib\idea_rt.jar=63670:C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\bin" -Dfile.encoding=UTF-8 -classpath "C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\boot\plexus-classworlds-2.7.0.jar;C:\Users\xdelamotte\AppData\Local\Programs\IntelliJ IDEA Ultimate\plugins\maven\lib\maven3\boot\plexus-classworlds.license" org.codehaus.classworlds.Launcher -Didea.version=2023
@x4d3
x4d3 / example.md
Last active December 11, 2023 13:28
Example Markdown
@x4d3
x4d3 / process_links.rb
Created July 16, 2023 14:08
Process Links to follow redirection
@x4d3
x4d3 / Bohemian.cs
Created November 15, 2022 18:17
Bohemian Rhapsody in C#
try
{
Assert(Life.Real);
Assert(Life.Fantasy);
}
catch (LandSlideException ex)
{
#region Reality
while (true)
{
<!DOCTYPE html>
<html lang="en">
<title>htm Demo</title>
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<script type="module">
import {html, Component, render} from 'https://unpkg.com/htm/preact/standalone.module.js';
class App extends Component {
addTodo() {