Skip to content

Instantly share code, notes, and snippets.

Spacewar!, released in 1962 at MIT, is widely considered the first digital computer game.
Magnavox Odyssey, launched in 1972, was the first commercial home video game console.
Pong was released by Atari in 1972 and became the first commercially successful arcade video game.
The game Colossal Cave Adventure was created in 1976 and became the first major text adventure.
Apple II’s 1977 release helped popularize early computer gaming with titles like Oregon Trail.
Space Invaders, released in 1978, caused a coin shortage in Japan due to arcade popularity.
The Intellivision system launched in 1979 and featured the first 16-bit game console processor.
Pac-Man was released in 1980 and became the highest-grossing arcade game of all time.
Wizardry, released in 1981, heavily influenced the development of Japanese RPGs.
Donkey Kong, released in 1981, introduced the character who would become Mario.
The Silmarillion explains that Eru Ilúvatar is the creator of the world of Arda.
Tolkien writes in The Silmarillion that the Ainur were the first beings created by Ilúvatar.
The legendarium states that the Music of the Ainur shaped the world before its physical creation.
The Silmarillion recounts that Melkor was the most powerful Ainu before his rebellion.
Tolkien describes that Arda was made real by Ilúvatar through the Flame Imperishable.
The Silmarillion tells that Valinor is the blessed realm of the Valar in the far West.
Tolkien writes that the Two Trees of Valinor, Telperion and Laurelin, produced the first light of the world.
The Silmarillion recounts that Ungoliant aided Melkor in destroying the Two Trees.
Tolkien explains that the Silmarils preserved the unsullied light of the Two Trees.
The Silmarillion states that Fëanor was the greatest craftsman of the Noldor.
Vault Boy was inspired by Monopoly’s Rich Uncle Pennybags
Deathclaws were originally based on Dungeons and Dragons demons
Dogmeat was inspired by the dog in Mad Max 2
Power Armor was originally meant to be very rare
The Brotherhood of Steel was almost written as antagonists in Fallout 1
Nuka Cola Quantum glows due to added radioactive strontium in lore
The NCR Ranger armor was inspired by the movie The Road
Caps became currency because they were durable and hard to counterfeit
Super Mutants were created through exposure to FEV
The Enclave are descendants of pre-war US government officials

Visual Studio Optimisations

Dump Resharper

It adds serious strain to large projects, and to be honest, VS has nearly completely caught up when it comes to code productivity short cuts.

The following table summarises some bindings in Resharper and Visual studio, and indicates the VS code to use to rebind it.

Description R# Shortcut VS Code VS Existing My Preference
// The file must be compiled as embedded resource
using (var stream = _assembly.GetManifestResourceStream("MyNamespace.SomeFolder.FileName"))
using (var reader = new StreamReader(stream, Encoding.UTF8))
{
return reader.ReadToEnd();
}
@develorem
develorem / EnumToString
Last active July 15, 2019 01:37
Get the enum as a string; not the int value, but the enum property name
var s = ConsoleColor.Blue.ToString("F"); // "Blue"
var attributes = FileAttributes.Hidden | FileAttributes.Archive; // Using flag enums
var s2 = attributes.ToString("F"); // "Hidden, Archive"
@develorem
develorem / CS-RegsiterGenericTypesInDI
Last active July 15, 2019 01:37
Shows how to use reflection to register generic types when you have things like Bar : IFoo<Baz> and you want to resolve by IFoo<Baz>.
public interface ISound { }
public interface ISound<T> : ISound { }
public class Moo { }
public class Chirp { }
public class Hiss { }
public class Cow : ISound<Moo> { }
public class Bird : ISound<Chirp> { }
public class Snake : ISound<Hiss> { }
[TestClass]
@develorem
develorem / ServiceCollection.cs
Created August 27, 2018 00:20
C# ServiceCollection example. Shows Dependency Injection and Inversion of Control using the Microsoft library: Microsoft.Extensions.DependencyInjection.
// using Microsoft.Extensions.DependencyInjection;
var services = new ServiceCollection();
services.AddSingleton<IInterface, ConcreteClass>();
var provider = services.BuildServiceProvider();
var resolvedType = provider.GetService<IInterface>();