Skip to content
View gregmulvihill's full-sized avatar

Block or report gregmulvihill

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Content in all repositories owned by your account will be closed.
Maximum 250 characters. Please don’t include any personal information such as legal names or email addresses. This note will only be visible to you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. Maintain aspect ratio when resizing. Maintain aspect ratio when resizing.
    1
    		public static (double Width, double Height) Resize(double srcWidth, double srcHeight, double maxWidth, double maxHeight)
    2
    		{
    3
    			// https://stackoverflow.com/a/14731922/640326
    4
    			//Conserve aspect ratio of the original region. Useful when shrinking/enlarging images to fit into a certain area.
    5
    			var ratio = Math.Min(maxWidth / srcWidth, maxHeight / srcHeight);
  2. BiasFunction BiasFunction
    1
    	public class BiasFunction
    2
    	{
    3
    		/// <summary>
    4
    		/// 
    5
    		/// </summary>
  3. Inversion Of Control Inversion Of Control
    1
    //using LightInject;
    2
    using System;
    3
    using System.Collections.Generic;
    4
    using System.ComponentModel.Design;
    5
    using System.Linq;
  4. Count up then down, repeat Count up then down, repeat
    1
    using System;
    2
    using System.Linq;
    3
    using System.Collections.Generic;
    4
    
                  
    5
    public static class Program
  5. Screens in WPF without WinForms Screens in WPF without WinForms
    1
    using System;
    2
    using System.Collections.Generic;
    3
    using System.Linq;
    4
    using System.Runtime.InteropServices;
    5
    using System.Text;
  6. Mime types filterable by extension, ... Mime types filterable by extension, perceived type, and content type.
    1
    using System.Collections.Generic;
    2
    using System.Linq;
    3
    
                  
    4
    namespace Toolset
    5
    {