You can specify the minimum and maximum value, the selected range ([min: number, max: number]), and an optional rangeMin
distance between the two.
A playground is available in [Flems](https://flems.io/#0=N4IgzgpgNhDGAuEAmIBcIB0sxhAGhADMBLGXVAbVADsBDAWwjUwAt56p8RYB7axfsxABfPDQZN0GeLgK9+EQegD0ygATF6ABx4AneGvp41wNQDFaCPQE8Awj219F8YwEF48XcQBGAV0RgasJqhLoOagDk9MTwLF5QEQDcADrUqRAAHjr6avDWWhBqALLE1EW0GWoAvGoU0dSoatS+9N4Qusb0FY3Nre0Auilp1JnZBqWIuoSWhQAiPL7eMABKtNQA5hAAylDESO3unoGZAkiBh15+ASapamrKAFQPxaWaLWoAbrRQvoUPyrdDKUei02rohndHs9yhk3vRPt9fmp-oCuhkQX1wYCoWottA4IgkGpdGtNsiAdQ7iSNhAAPyNEplCoQ+5PXGILRqMDEABeEGMAAF9tNfFADABGcmAsAc+lNUHtFk4xlwhE-QpteAAdwgii5+IQyCB1FVayJaLhxggGHWGFyPDUtA+PD2uRYhV8kF0+pgCFK60dxNJhR4hDUAFYALThwXC2iiiVSylBmmMuW9MFKtkAeWosBYwbUBeoSBg3pRyb4+eDcoAFNTNgzSjCAJTVAB8nxdSCGwlS6SyegM8hlanmixWwZ2e3ajQsVl0dgcOhG-AAPOOlhBVjTp-tdBcwJ2arW21VO8BATADA2IABRGCMfiNAASABUigAZLZaNYPiBPvALLXsaO6bAAktQWj+K+H6fpB0HwP+gHARABhomBEAITBajvl+2FIY+zioehpQAGqIlhUE4Xh8HUYRAHEVeaGGBU
Creates a simple donut chart in mithril (v2.2.2) using TypeScript, including a legend and tooltips. A playground is provided in [flems](https://flems.io/#0=N4IgtglgJlA2CmIBcAWAbAOgMwEYA0IAzvAgMYAu8UyIG5hIBAZhAg0gNqgB2AhmIiS0AFuTCxGIUgHtulOTRABfPD36Da9STLnwFQgPQGABBDAAHaQCdyxsHmPBjAMV4VrATwDC0i7L22SsZMVr7GAOSQ5MJWrOEA3AA63MkQulZMbvDGACKyAK7kXsK8NgDKsBCk2cDJxvXGsLwARiRIxoTksdwA5kncDcYAbryw+fDt3PlgrVb9gzKw1u2d3X3JSsmp6ZnVuQVFJTYAguRdhI51DVC85LzteVOHpeQVVfAcALrzDWnc8FYAEq8KAQfKESbTWY-erSQoA4Gg8GQmYA-qbFLcHSdfZPYovdqudxWby+Sz-OQAHkehXxJzOVkIAD5jABeS4DBpDCDwADu7QAFE5budjEoAJRslm1TmDerY2xOG53Bx-BEgsGEBxwyhAjXgsVs4wixn9K5y4xGYxeUakfJNSjGcjSO6wYajcbmuUKp0u0YANQ92XZyt4GCsVHy1QFArcpAchEq1UlrJZceMAGoOkn4BgRmN4A4AAzis2yuVWm2wO0O7K8XpsL2DBC2TovY4N4PGIswuUt4x6KAdnoII09psNH2lUgQxzGKArLppHoOFiwWCLtYOJqtDcdJe9Bz58Yo2YOO1ge23CBDeCBgungFir5Gr69wahjBMawAUTcwgFRN3ilDkLQtKdOyNQCczzINLV9V173GSUACpjCwNBx3LMCB24IdIPZNsTkgrN6xHeAyxwhZZBxIjyGHBBESguiGOyABaYwAE4S2MNCAFlbmEDAAAUAEl4JwAAOLCqMnGjbEHVimPZAVFM
'Change the language of your PowerPoint | |
'In newer PowerPoint version, you need to first save your PowerPoint with macros enabled. | |
'Go to the VIEW tab, select MACROS (at the right), enter a name, e.g. toEnglish, and press create to enter below text. | |
'Now you can run the macro from the same menu. | |
'Alternatively, but less complete, go to the VIEW tab, select OUTLINE, select all slides (using CTRL-A). | |
'Now go to the REVIEW tab, select Language, and change the proofing language. | |
'Also make sure that you set the WINDOWS Language (taskbar, bottom right) to the preferred language, otherwise all new text | |
'will have the same problem (Press CTRL + WINDOWS + SPACE to switch the Keyboard input language). | |
Option Explicit | |
Sub toEnglish() |
export interface IObject { | |
[key: string]: any; | |
} | |
/* | |
This work is licensed under Creative Commons GNU LGPL License. | |
License: http://creativecommons.org/licenses/LGPL/2.1/ | |
Version: 0.9 | |
Author: Stefan Goessner/2006, | |
Conversion: Erik Vullings/2021 converted to TypeScript |
/** | |
* Deep copy function for TypeScript. | |
* @param T Generic type of target/copied value. | |
* @param target Target value to be copied. | |
* @see Source project, ts-deepcopy https://github.com/ykdr2017/ts-deepcopy | |
* @see Code pen https://codepen.io/erikvullings/pen/ejyBYg | |
*/ | |
export const deepCopy = <T>(target: T): T => { | |
if (target === null) { | |
return target; |
My camera photos on my phone all end up in one big folder. I wanted to sort them by date taken in a simple format year-month format, YYYY-MM. I tried the application PhotoMove, but unfortunately, this simple requirement is only available with the PRO version, so instead, I've asked ChatGPT to create a PowerShell script for me.
- Download the Windows version from exif tool and unzip it into a folder. Make sure that the name is
exiftool.exe
(in my case, it had a weird nameexiftool(-k).exe
so rename it if that's the case). - Save the PowerShell script you can find below in the same folder.
- Open a PowerShell window (WIN+R and enter
powershell
) - Run the script
./sort.ps1
POSTGRESQL_PASSWORD="PASSWORD" | |
POSTGRESQL_POSTGRES_PASSWORD="PASSWORD" | |
KEYCLOAK_ADMIN_PWD="PASSWORD" | |
HOST="LOCALHOST" | |
EMAIL="YOUR.EMAIL" |
--- | |
version: "3.3" | |
networks: | |
icem-net: | |
driver: overlay | |
attachable: true | |
services: | |
reverse-proxy: |
When moving from a local development environment to the cloud, e.g. Docker swarm or Kubernetes, you often need a way to access local files. However, in the cloud your local file system cannot be accessed anymore, so you need a way to copy your local files to a volume and mount that instead. This is the purpose of the script. You supply it with the volume name (e.g. schemas
) and the local folder containing the schemas, e.g. ../../schemas
, and a schemas
volume is created, containing all data that is copied into the container.
./create_volume.sh schemas ../../schemas