Basic range slider for MAUI. As there's no RangeSlider as on Xamarin: https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/rangeslider
Tested on Android / iOS real device.
# 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 |
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 | |
/// |
Basic range slider for MAUI. As there's no RangeSlider as on Xamarin: https://learn.microsoft.com/en-us/xamarin/community-toolkit/views/rangeslider
Tested on Android / iOS real device.
# -*- coding: utf-8 -*- | |
import arcpy | |
from os.path import join | |
class Toolbox(object): | |
def __init__(self): | |
"""Sample file toolbox""" | |
self.label = "Sample file toolbox" | |
self.alias = "File toolbox" |
#!/usr/bin/env python3 | |
from http.server import HTTPServer, SimpleHTTPRequestHandler | |
import ssl | |
import sys | |
class CORSRequestHandler (SimpleHTTPRequestHandler): | |
def end_headers (self): | |
self.send_header('Access-Control-Allow-Origin', '*') | |
SimpleHTTPRequestHandler.end_headers(self) |
import SwiftUI | |
import PlaygroundSupport | |
struct ContentView: View { | |
var body: some View { | |
Bars() | |
} | |
} | |
struct Bars:View { |
This file lists usefull libraries for Xamarin forms
Library | Goal | Link |
---|---|---|
Xamarin.Forms.InputKit | UI Controls | https://github.com/enisn/Xamarin.Forms.InputKit |
xamarin-bluetooth-le | Bluetooth | https://github.com/xabre/xamarin-bluetooth-le |
MultilingualPlugin | i18n (prefer Xamarin built in solution now) |
# -*- coding: utf-8 -*- | |
# Created by Marc_Alx | |
# | |
# pip install winrt | |
# Documentation here : https://github.com/Microsoft/xlang/tree/master/src/package/pywinrt/projection | |
# NB Only works with version of Windows that supports 'windows.ui.notifications' | |
# | |
# Requirements | |
# Windows 10, October 2018 Update or later. | |
# Python for Windows, version 3.7 or later |
/* | |
* This script produces a .png image from an Unity scene. | |
* | |
* Result image looks like this : https://fr.wikipedia.org/wiki/Fichier:Paris_s%27éveille_equirectangular_panorama.jpg | |
* | |
* inspired from : https://docs.unity3d.com/ScriptReference/RenderTexture.ConvertToEquirect.html | |
* and https://docs.unity3d.com/ScriptReference/Camera.RenderToCubemap.html | |
* | |
* To use it add this script to your scene then run | |
*/ |
/// <summary> | |
/// Random Number Generator based on Mersenne-Twister algorithm | |
/// | |
/// Usage : | |
/// RandomNumberGenerator.Instance.Generate()); | |
/// RandomNumberGenerator.Instance.Generate(1.1,2.2); | |
/// RandomNumberGenerator.Instance.Generate(1,100) | |
/// | |
/// inspired from : http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/VERSIONS/C-LANG/980409/mt19937-2.c | |
/// </summary> |