Keyboard Shortcut Template – PSD

Just a quick post, I’ve created a PSD template for keyboard short cuts, (unfortunately for us Brit’s it’s in an American keyboard format).    

Get classes of interface c#

Get classes of interface c# var inte = typeof(iController); var x = Assembly.GetExecutingAssembly() .GetTypes() .Where(type => inte.IsAssignableFrom(type)) .Where(type => !type.IsAbstract && !type.IsGenericType ) .Where(type => type.Name.ToLower() == name.ToLower()) .Select(o => Activator.CreateInstance(o)).FirstOrDefault();

Chatgpt one foot in the grave

Victor: angrily I can’t believe you did this, Margaret. I can’t believe you stole all that money from the charity. Margaret: defensively I didn’t steal anything, Victor. I was just…misplacing it for a little while. Victor: sarcastically Oh, I see. So you were just “misplacing” tens of thousands of pounds. That makes perfect sense. Margaret: Chatgpt one foot in the grave

Easiest way to vertically centre an element in CSS

I’ve used many different ways to centre an element in CSS, this is the best way I’ve found so far (with bootstrap also). The above applied to the containing element centres itself and is responsive.