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
/* | |
Copyright (c) 2010, The Mineserver Project | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without | |
modification, are permitted provided that the following conditions are met: | |
* Redistributions of source code must retain the above copyright | |
notice, this list of conditions and the following disclaimer. | |
* Redistributions in binary form must reproduce the above copyright | |
notice, this list of conditions and the following disclaimer in the |
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
// Log debug infomation to terminal | |
void Logger::log(std::string msg, std::string file, int line) | |
{ | |
Mineserver::get()->screen()->log("[" + file + "@" + dtos(line) + "]: " + msg); | |
} | |
// Log messages | |
void Logger::log(LogType type, const std::string& channel, const std::string& message) | |
{ | |
// This should be expanded eventaully to support saving to file and if config option is enabled saving a channel per a file |
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. | |
// |
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
"""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
"""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
"""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
"""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
"""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
$ 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 |
OlderNewer