This file contains 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
"""Produces a command/shell script to convert PNG to Geo-referenced TIFF. | |
It also produces a command to call out gdal_merge.py which will take the TIFFs | |
and create a single TIFF from it and if there are too many TIFFs it will write | |
a file containing the list. | |
TODO: | |
Improve this so it doesn't have to create the TIFF from the PNG so instead | |
create a VRT to associate the bounds/coordinate system with the PNGsand treat | |
it as a single file already. |
This file contains 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
#pragma MIME application/vnd.quantized-mesh | |
// This a hex pattern match for ImHex: https://github.com/WerWolv/ImHex | |
// Format: https://github.com/CesiumGS/quantized-mesh | |
struct QuantizedMeshHeader | |
{ | |
// The center of the tile in Earth-centered Fixed coordinates. | |
double CenterX; | |
double CenterY; |
This file contains 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
$ python lvx_reader.py HorizonSample.lvx | |
Container: | |
public_header_block = Container: | |
signature = b'livox_tech\x00\x00\x00\x00\x00\x00' (total 16) | |
version = ListContainer: | |
1 | |
1 | |
0 | |
0 | |
magic_code = 2886641511 |
This file contains 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
"""Generate monthly usage graphs for Internet usage. | |
Usage is classified as metered and unmetered. | |
Known issues | |
- There is excess padding before the first bar and after the last bar. | |
TODO | |
- Support quarterly and yearly graphs |
This file contains 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
"""GNAF is the Geocoded National Address File. | |
The G-NAF is Australia's authoritative, geocoded address file. | |
It is produced by PSMA Australia (psma.com.au) but is freely | |
available. | |
The data for this script is available from: | |
https://data.gov.au/dataset/geocoded-national-address-file-g-naf | |
Detail of the file format: |
This file contains 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
"""Parses the entwine output to determine which files weren't completed at | |
the time of a crash. | |
There are two lines from the output that this script is interested in. The | |
lines with 'Adding' and 'Done'. | |
Output Example: | |
Adding 0 - E:/data/Volcano/LAZ/E262N1546_LAZ_PL1.laz | |
Adding 1 - E:/data/Volcano/LAZ/E262N1547_LAZ_PL1.laz | |
Adding 2 - E:/data/Volcano/LAZ/E262N1548_LAZ_PL1.laz |
This file contains 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
"""An implementation of the old classic game, Minesweeper. | |
The objective is to pick cells in a grid where you don't believe there is a | |
mine (bomb). If you pick incorrectly you loose the game because the mine goes | |
off (it explodes). | |
TODO | |
- No way to flag a cell. | |
- Add a clock/timer? | |
- Add handling for intergrating a user interface. |
This file contains 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
"""Downloads and extract the Visual C++ Redistributables. | |
This is useful when working with minidump files as the user may be running | |
with a new different version of the runtime. This script aims to maintain | |
a copy of the various versions. | |
Versions are normally added once I encounter them, in November 2022, I added | |
a rather large back catalogue of versions. | |
This requires dark.exe from Wix (http://wixtoolset.org/releases/) and |
This file contains 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 python | |
"""A prototype server developed as a proof-of-concept for a new mapping system | |
for foxhunting and balloon chases. | |
This requires Flask, which is a microframework for Python. | |
See http://flask.pocoo.org/ | |
""" | |
import database | |
import flask |
This file contains 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
//===----------------------------------------------------------------------===// | |
// | |
// NAME : FibonacciGenerator | |
// VERSION : 0.2 | |
// NAMESPACE : Global namespace. | |
// PURPOSE : Provided a way to iterate over the Fibonacci sequence. | |
// COPYRIGHT : (c) 2012 Sean Donnellan. All Rights Reserved. | |
// AUTHORS : Sean Donnellan ([email protected]) | |
// DESCRIPTION : Provided a way to iterate over the Fibonacci sequence. | |
// |
NewerOlder