I hereby claim:
- I am matthewking on github.
- I am mking (https://keybase.io/mking) on keybase.
- I have a public key ASBwtMSceGTkj0I8hd1O8ABiNdXgp9v86HO7ZQEzjRIy6go
To claim this, I am signing this object:
Set-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\CurrentVersion\Search" -Name "BingSearchEnabled" -Type DWord -Value 0 |
[root] = true | |
[*] | |
indent_style = space | |
insert_final_newline = true | |
trim_trailing_whitespace = true | |
[*.{csproj,props}] | |
indent_size = 2 |
I hereby claim:
To claim this, I am signing this object:
// Adapted from Greg Beech's blog post: | |
// http://gregbee.ch/blog/natural-sort-order-of-strings-and-file | |
// Distributed under the Creative Commons Zero (CC0) license. | |
using System.Collections.Generic; | |
using System.Runtime.InteropServices; | |
using System.Security; | |
/// <summary> | |
/// A string comparer that uses the StrCmpLogicalW function for natural string comparisons. |
using System; | |
using System.Threading.Tasks; | |
using System.Windows.Forms; | |
/// <summary> | |
/// Extension methods for System.Windows.Forms.Form. | |
/// </summary> | |
static class FormExtensions | |
{ | |
/// <summary> |
function Get-ApplicationReference([string] $deploymentManifestPath) { | |
[xml]$content = Get-Content $deploymentManifestPath | |
$identity = $content.assembly.assemblyIdentity | |
$codebase = $content.assembly.deployment.deploymentProvider.codebase | |
$appref = '{0}#{1}, Culture={2}, PublicKeyToken={3}, processorArchitecture={4}' -f $codebase, $identity.name, 'neutral', $identity.publicKeyToken, $identity.processorArchitecture | |
return $appref | |
} |
using System; | |
using System.Device.Location; | |
/// <summary> | |
/// Supplies location data that is based on latitude and longitude coordinates. | |
/// </summary> | |
/// <remarks> | |
/// Fixes the dodgy miswired events in Microsoft's base GeoCoordinateWatcher implementation. | |
/// </remarks> | |
class GeoCoordinateWatcherFixed : GeoCoordinateWatcher, IGeoPositionWatcher<GeoCoordinate> |
/// <summary> | |
/// A System.Windows.Forms.CreateParams that contains the required creation parameters | |
/// when the handle to the control is created. | |
/// </summary> | |
protected override CreateParams CreateParams | |
{ | |
get | |
{ | |
CreateParams cp = base.CreateParams; | |
cp.ExStyle |= 0x02000000; // WS_EX_COMPOSITED |
// Copyright Matthew King 2014. | |
// Licensed under the Boost Software License, Version 1.0. | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
/// <summary> | |
/// Extends the System.Windows.Forms.ListView class, removing the focus indicators. | |
/// </summary> |
using System; | |
using System.Runtime.InteropServices; | |
using System.Windows.Forms; | |
/// <summary> | |
/// A Windows text box control with a cue banner. | |
/// </summary> | |
public class CueTextBox : TextBox | |
{ | |
/// <summary> |