Skip to content

Instantly share code, notes, and snippets.

View dterracino's full-sized avatar
🐢
I may be slow to respond…

David Terracino dterracino

🐢
I may be slow to respond…
View GitHub Profile
The name Wendy was made up for the book 'Peter Pan.'
Barbie's full name is Barbara Millicent Roberts.
Every time you lick a stamp, you consume 1/10 of a calorie.
The average person falls asleep in seven minutes.
Studies show that if a cat falls off the seventh floor of a building it has about thirty percent less chance of surviving than a cat that falls off the twentieth floor. It supposedly takes about eight floors for the cat to realize what is occurring, relax and correct itself.
Your stomach has to produce a new layer of mucus every 2 weeks otherwise it will digest itself.
The citrus soda 7-UP was created in 1929; '7' was selected after the original 7-ounce containers and 'UP' for the direction of the bubbles.
101 Dalmatians, Peter Pan, Lady and the Tramp, and Mulan are the only Disney cartoons where both parents are present and don't die throughout the movie.
A pig's orgasm lasts for 30 minutes.
'Stewardesses' is the longest word that is typed with only the left hand.
@AdamWhiteHat
AdamWhiteHat / INotifyPropertyChangedEx.cs
Created March 20, 2022 01:00
INotifyPropertyChangedEx
namespace ComponentModelEx
{
public delegate void PropertyChangedExEventHandler(object sender, PropertyChangedExEventArgs e);
public interface INotifyPropertyChangedEx
{
event PropertyChangedExEventHandler PropertyChangedEx;
}
}
// ==UserScript==
// @name Extended Steam Guide Tools
// @namespace http://tampermonkey.net/
// @version 0.1.3
// @description Adds extra functionalities to Steam Guides.
// @author lylat
// @match https://steamcommunity.com/sharedfiles/editguidesubsection/?*
// @icon https://cdn.discordapp.com/avatars/749437490883985499/7c4053deed909ec48be2656da4b12b76.png
// @grant none
// ==/UserScript==
// ==UserScript==
// @name Download Achievement Images
// @namespace http://tampermonkey.net/
// @version 0.1.4
// @description Button to mass download achievement images
// @author lylat
// @match https://steamcommunity.com/stats/*/achievements*
// @icon https://cdn.discordapp.com/avatars/749437490883985499/7c4053deed909ec48be2656da4b12b76.png
// @require https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.5/jszip.min.js
// @require https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/2.0.0/FileSaver.min.js
@DougBarry
DougBarry / timespan-to-human-readable-string.cs
Created November 2, 2021 16:04
C# Timespan to human readable string extension method
# Based on https://stackoverflow.com/a/41966914
public static class ExtensionMethods
{
public static string ToHumanReadable(this TimeSpan timeSpan)
{
Func<Tuple<int, string>, string> tupleFormatter = t => $"{t.Item1} {t.Item2}{(t.Item1 == 1 ? string.Empty : "s")}";
var components = new List<Tuple<int, string>>
{
Tuple.Create((int) timeSpan.TotalDays, "day"),
@ncurran02
ncurran02 / animalfacts.txt
Last active May 22, 2024 18:03
Animal Facts
Gorillas can catch human colds and other illnesses.
A newborn Chinese water deer is so small it can almost be held in the palm of the hand.
Ostriches can run faster than horses, and the males can roar like lions.
A lion in the wild usually makes no more than twenty kills a year.
The female lion does ninety percent of the hunting.
The world's smallest dog was a Yorkshire Terrier, which weighed just four ounces.
Turtles, water snakes, crocodiles, alligators, dolphins, whales, and other water going creatures will drown if kept underwater too long.
Almost half the pigs in the world are kept by farmers in China.
On average, dogs have better eyesight than humans, although not as colorful.
Deer have no gall bladders.
@twobob
twobob / Whatever.cs
Created August 20, 2021 18:29
Stylise a string by doing multiple replacements at once and using extenstion methods. Unity3D
using UnityEngine;
using System.Collections;
using System.Linq;
namespace ExtensionMethods
{
static class ElevenStringHelpers
{
// called as shown below
@AdamWhiteHat
AdamWhiteHat / BigIntegerExtensionMethods.cs
Last active April 27, 2022 13:03
BigInteger ExtensionMethods
public static class BigIntegerExtensionMethods
{
public static BigInteger Sum(this IEnumerable<BigInteger> source)
{
return source.Aggregate((accumulator, current) => accumulator + current);
}
public static BigInteger Product(this IEnumerable<BigInteger> source)
{
return source.Aggregate((accumulator, current) => accumulator * current);