- This is a list item 1.1. This should be a nested list item
- This is a list item
- This is a list item
- This is a nested list item
- This is a list item
Warning: Read through everything before starting! Some parts have a long lead time and you do not want open holes in your wall while you wait for delivery!
These are the vent covers we replaced the existing ones with. They are delivered from China so take a few weeks to get here. Read on for more details.
namespace Foo | |
{ | |
/// <summary> | |
/// A class showing the bolierplate code for a singleton | |
/// </summary> | |
public sealed class BoilerplateSingleton // sealed to prevent derivatives adding non-singleton copies | |
{ | |
// this class is a singleton, this field holds the single instatiated | |
// object. It is instantiated lazily, only being created when a | |
// reference to the object is requested via the Instance property |
// The System.Uri class can convert paths to URIs using new Uri(pathString).AbsoluteUri; | |
// However, that does not work if the path contains some characters, e.g. the percent | |
// sign or spaces. This method corrects that, it is taken from, explained and MIT | |
// licensed, here: https://stackoverflow.com/a/35734486/1292918 | |
public static string FilePathToFileUrl(string filePath) | |
{ | |
StringBuilder uri = new StringBuilder(); | |
foreach (char v in filePath) | |
{ |
Option Strict On | |
Option Explicit On | |
Imports System.Text | |
Imports System.Runtime.CompilerServices | |
Module PaddedVersionToString | |
''' <summary> | |
''' Converts the value of the current Version object to its equivalent | |
''' String representation. Specified counts indicate the number of |
using System; | |
using System.ComponentModel; // For INotifyPropertyChanged interface | |
using System.Runtime.CompilerServices; // For CallerMemberName, could use nameof() otherwise | |
namespace FooProgram | |
{ | |
public class BoilerplateNotify : INotifyPropertyChanged | |
{ | |
public event PropertyChangedEventHandler PropertyChanged; | |
Toby is grouchy. Toby wonders why you think you need so many damn tabs open at the same time anyway.
By finishing stuff (and with coffee). Then I can close some of those tabs.
Hello magazine says that people that like to be in control of everything all of the time (like browser tabs) might be using Toby.
#include <stdio.h> | |
int main (int argc, char *argv[]) | |
{ | |
// Get the compiler name and version, where easily obtained, for a more | |
// informative output | |
char *compilerName; | |
char *compilerVersion; | |
#if defined(__clang__) | |
compilerName = "Clang/LLVM"; |
using System.Reflection | |
public class Gists | |
{ | |
public Dictionary<string, object> GetDictionaryOfProperties(o As Object) | |
{ | |
Dictionary<string,string> Properties; | |
Properties = (from x in o.GetType().GetProperties() select x).ToDictionary | |
( x => x.Name, x => x.GetGetMethod().Invoke (o, null)); |
Option Strict On | |
Option Explicit On | |
Imports System.Reflection | |
Module Gists | |
Public Function GetDictionaryOfProperties(ByRef o As Object) As Dictionary(Of String, Object) | |
Dim Properties As Dictionary(Of String, Object) = New Dictionary(Of String, Object) | |
#If Not USE_LOOP |