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
| # | |
| # Metashape videos batch import v1.0 | |
| # Author: Garry Lai | |
| # Usage: "Tools" --> "Run script" | |
| # | |
| import Metashape | |
| doc = Metashape.app.document | |
| chunk = doc.chunk |
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
| #!/bin/bash | |
| echo "#####################" | |
| echo "# Rakit auto plot #" | |
| echo "# by GarryLai #" | |
| echo "#####################" | |
| echo "Running in background..." | |
| echo "Press Ctrl + C to exit." | |
| echo "" | |
| while true | |
| do |
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
| @echo off | |
| ::::: C O N F I G ::::: | |
| set source_path=D:\zh-tw_windows_server_2025_preview_x64_dvd_9b147dcd\sources | |
| set driver_path=D:\Software\MegaRAID_Driver | |
| set mount_path=C:\Dism_Mount | |
| ::::::::::::::::::::::: | |
| cd "%source_path%" |
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
| main classes: | |
| 10000000 - Cross Site Scripting | |
| 20000000 - Cross Site Scripting (Extended) | |
| 30000000 - SQL Injection | |
| 40000000 - SQL Injection (Extended) | |
| 50000000 - Generic Attacks | |
| 60000000 - Generic Attacks(Extended) | |
| 70000000 - Trojans | |
| 80000000 - Information Disclosure | |
| 90000000 - Known Exploits |
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
| @echo off | |
| set VHD_PATH=D:\data.vhdx | |
| set NEW_SIZE_GB=2048 | |
| set MOUNT_NAME=data | |
| set WSL_DIST=Ubuntu | |
| set /a NEW_SIZE_MB=%NEW_SIZE_GB%*1024 | |
| echo: |
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
| Windows Registry Editor Version 5.00 | |
| [HKEY_CLASSES_ROOT\.jnlp] | |
| @="jnlp_auto_file" | |
| [HKEY_CLASSES_ROOT\jnlp_auto_file\shell\open\command] | |
| @="\"C:\\Program Files\\ojdkbuild\\java-1.8.0-openjdk-1.8.0.332-1\\webstart\\javaws.exe\" \"%1\"" | |
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
| [email protected]@d |
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 struct | |
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.basemap import Basemap | |
| import cwbplot.cwb_colorbar as cwbcolor | |
| ##### C O N F I G ##### | |
| fname_x = 'PPI_20220629074850_b_x_01_00.5' | |
| fname_y = 'PPI_20220629074850_b_y_01_00.5' | |
| fname_feild = 'PPI_20220629074850_bDZ_01_00.5' |
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 numpy as np | |
| import matplotlib.pyplot as plt | |
| from mpl_toolkits.basemap import Basemap | |
| import netCDF4 as nc | |
| # Note: Using "bin_to_nc.py" convert to NETCDF format first!! | |
| ##### C O N F I G ##### | |
| ncfile = 'output.nc' | |
| ####################### |
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
| #Usage: https://cwbplot.readthedocs.io/en/dev/use_example.html#colorbar | |
| #Put this file under same folder as your program | |
| #and replace "import cwbplot.cwb_colorbar as cwbcolor" | |
| #to "import cwb_colorbar as cwbcolor". | |
| import matplotlib.colors as mcolors | |
| def lightrain(tranp=0.5): | |
| rain_light_temp = [[1. , 1. , 1. , 0.5 ], |
NewerOlder