- Creating a widget consist in adding a json config inside app (current experience) config.
- Widget config must exist in a layout, thus layout must exist inside a the layout of the wished page.
- This can't be done from
settings.tsx, must be done from your widget code.settings.tsxcode doesn't see the same app config as widget code.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # -*- 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 file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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 | |
| */ |
NewerOlder
