Skip to content

Instantly share code, notes, and snippets.

View MarcAlx's full-sized avatar
🌱

MarcAlx MarcAlx

🌱
View GitHub Profile
@MarcAlx
MarcAlx / README.md
Last active October 30, 2025 08:30
MAUI RangeSlider
@MarcAlx
MarcAlx / DateTimePicker.cs
Last active July 12, 2024 15:02
DateTime Picker MAUI
using System.Windows.Input;
using Microsoft.Maui.Controls;
namespace SO.Commons.MultiPlatform.Views.Controls;
/// <summary>
/// Wrapper arround a DatePicker and a TimePicker to create a DateTimePicker
///
/// Design is mean't to be overrided via ControlTemplate see: https://learn.microsoft.com/en-us/dotnet/maui/fundamentals/controltemplate
///
@MarcAlx
MarcAlx / anonymize.py
Last active October 2, 2025 08:12
ArcPy Feature Class anonymizer
# script to anonymize attributes and geometry of a feature class
#
# /!\ String anonymization is light and based on MD5, use only for visual hidding not for security!
# /!\ assumes SR are in meters like 102110/2154
#
# To run:
# & 'C:\Program Files\ArcGIS\Pro\bin\Python\envs\arcgispro-py3\python.exe' .\arcgis-anonymizer.py
import arcpy
@MarcAlx
MarcAlx / NOTE.md
Created October 17, 2025 12:55
ArcGIS Experience Builder Developer Edition : Instantiate/Create widget from custom widget code

Notes

  1. Creating a widget consist in adding a json config inside app (current experience) config.
  2. Widget config must exist in a layout, thus layout must exist inside a the layout of the wished page.
  3. This can't be done from settings.tsx, must be done from your widget code. settings.tsx code doesn't see the same app config as widget code.
@MarcAlx
MarcAlx / santa.py
Created December 9, 2025 08:59
Secret Santa
# Simple algorithm to generate secret santa gifting, with no redundancy
import random;
# participants
ppl = ["A", "B", "C", "D", "E", "F"];
# shuffle them
random.shuffle(ppl);