Skip to content

Instantly share code, notes, and snippets.

View stuartd's full-sized avatar
🏠
Working from home

stuartd stuartd

🏠
Working from home
  • Brighton, UK
View GitHub Profile
@stuartd
stuartd / git_bits.md
Last active August 14, 2026 10:09
git bits
  1. Locally ignore files in a repo
File:
\repo\.git\info\exclude

Text:
.example/

@stuartd
stuartd / github_markdown.md
Last active July 26, 2026 19:18
GitHub Markdown Tricks

Summary and details

Click to see the details The details...
Click to hide the details The details...
[{
"headers": {},
"from": "18163125216",
"to": "447451288321",
"uuid": "709ceea014bff8ad163ceeb0fad96665",
"conversation_uuid": "CON-4025dd36-9425-46f4-be21-c8cc6f90cbed",
"status": "ringing",
"direction": "inbound",
"timestamp": "2025-01-31T21:10:10.808Z"
},
@stuartd
stuartd / vonage_test.json
Last active January 28, 2022 12:21
Gist description
[
{
"action": "stream",
"streamUrl": [
"https://telephonebanking.azurewebsites.net/calllogs/Stuart_22_01_28_12_15_07_96/call_audio.wav"
]
}
]
[MemoryDiagnoser]
public class JsonSerializeBenchmark {
private const string json = "{\"Name\":\"insert name here\",\"Addresses\":[{\"Line1\":\"Address line 1\",\"Line2\":\"Address line 2\"},{\"Line1\":\"Address line 1\",\"Line2\":\"Address line 2\"}]}";
[Benchmark]
public string Deserialize() => DeserializeJson();
[Benchmark]
public string Parse() => ParseJson();
Item Answer
AmbiguousItem.PrivatePension A private pension is a plan that people may pay into from their earnings, which then will pay back to them when they retire. This is an alternative to the State Pension.
AmbiguousItem.ChildSupport Child support is sometimes known as child maintenance. This is a regular payment made by a parent for the financial benefit of a child following the end of a significant relationship.
AmbiguousItem.Rent If you are living in a property you don’t own, you usually pay a regular payment to the owner of that property. This is your rent. {nl} If you own a property and you are renting it out, this applies to the payment you receive from any tenants living in your property.
Housing.Mortgage A mortgage is a type of loan that a bank or building society lends to you to help you buy a property. It is secured against your home, which means that you may lose your home if you can’t keep up with the repayments.
Housing.SecuredLoan A secured loan is a loan, other than you
var name = "directory name";
var path = @"c:\temp\dirtest";
for (int i = 0; i < 12; i++)
{
CreateDirectory(name, path);
}
void CreateDirectory(string directoryName, string filePath)
{
using System;
using System.Data.SQLite;
using System.Diagnostics;
using System.IO;
using System.Linq;
namespace ClipboardDiff {
class Program {
static void Main(string[] args) {
string text1 = null;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using iTunesLib;
namespace ConsoleApp1
{
class Program
{
public enum DistanceType {
Miles = 1,
Kilometers,
Feet,
Meter
}
public static class DistanceCalculator {
private const double radianCalculator = Math.PI / 180;