Skip to content

Instantly share code, notes, and snippets.

💭
Available for Hire

Houston McClung hmcclungiii

💭
Available for Hire
Block or report user

Report or block hmcclungiii

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View eventpattern.cs
namespace eventpattern {
public delegate void AllPropertiesDetailsParsedEventHandler(object sender, AllPropertiesDetailsParsedEventArgs e);
public class AllPropertiesDetailsParsedEventArgs : EventArgs
{
}
public partial class Controller
{
public event AllPropertiesDetailsParsedEventHandler AllPropertiesDetailsParsed;
@hmcclungiii
hmcclungiii / gist:9924148
Created Apr 1, 2014
Remove any non-numeric characters from a string.
View gist:9924148
string newValue = System.Text.RegularExpressions.Regex.Replace(oldValue, "[^.0-9]", "");
@hmcclungiii
hmcclungiii / FileHandler.cs
Last active Aug 29, 2015
Code template/model for (de)serializing an object to/from an XML file.
View FileHandler.cs
using System;
using System.ComponentModel;
using System.Xml.Schema;
using System.Xml.Serialization;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
namespace XmlFile
{
@hmcclungiii
hmcclungiii / clean.bat
Created Mar 12, 2014
Simple little batch file that I use to delete unneeded files that are generated at compile time.
View clean.bat
@echo off
FOR /D /R %%X IN (debug,release,bin,obj,ipch) DO RD /S /Q "%%X"
del /S /F /AH *.suo
del /S /F *.user
del /S /F *.ncb
del /S /F *.sbr
del /S /F *.log
@hmcclungiii
hmcclungiii / browserwrapper.cs
Last active Mar 28, 2019
C# Webbrowser Wrapper Control, used to be able to wait until a page completely loads prior to taking action on it. For web automation projects.
View browserwrapper.cs
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.Drawing;
using System.Windows.Forms;
public partial class browserwrapper : System.Windows.Forms.WebBrowser
{
You can’t perform that action at this time.