Skip to content

Instantly share code, notes, and snippets.

Peter Johnson delphidabbler

Block or report user

Report or block delphidabbler

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@delphidabbler
delphidabbler / .gitignore
Created Mar 8, 2014
General .gitignore file that I use for Delphi 7 to XE
View .gitignore
# General .gitignore file suitable for Delphi 7 to XE
*.ddp
*.exe
*.dll
*.bpl
*.bpi
*.dcp
*.so
*.apk
View SplClassLoader.php
<?php
/*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
@delphidabbler
delphidabbler / SF Blog RSS Bug Workaround.php
Last active Oct 12, 2015
Work-around for bug in SourceForge blog RSS feeds. This code reads the SF feed, transforms it to fix the bug and emits the revised code as a fresh XML document. Fully described at http://delphidabbler.blogspot.co.uk/2014/02/ive-just-been-setting-up-new-blog-for.html
View SF Blog RSS Bug Workaround.php
<?php
/*
Fix for SF RSS feed bug: https://sourceforge.net/p/allura/tickets/6687/
Reads RSS source code from SourceForge and re-renders it, adding an
isPermaLink=false attribute to every <guid> tag.
*/
mb_internal_encoding('UTF-8');
mb_http_output('UTF-8');
mb_language('uni');
@delphidabbler
delphidabbler / UEnvVars.pas
Last active May 21, 2018
A collection of Delphi environment variable routines presented in the article "How to access environment variables" at http://delphidabbler.com/articles?article=6
View UEnvVars.pas
unit UEnvVars;
interface
uses
// Delphi
Classes;
@delphidabbler
delphidabbler / UBox.pas
Created Apr 7, 2014
A generic Delphi class that can wrap any type in an object. Designed for use in wrapping value types and strings in objects. Extracted from my CodeSnip project (http://codesnip.delphidabbler.com/)
View UBox.pas
unit UBox;
interface
type
/// <summary>Generic class that wraps a type in an object.</summary>
/// <remarks>Although this type can be used to wrap any type it is aimed at
/// wrapping value types and strings.</remarks>
You can’t perform that action at this time.