Skip to content

Instantly share code, notes, and snippets.

View jpdillingham's full-sized avatar
🍕
NO VEGGIES

JP Dillingham jpdillingham

🍕
NO VEGGIES
  • Quad Cities, IL
  • 01:23 (UTC -05:00)
View GitHub Profile
2016-05-19 21:23:36.9926 [INFO] [Symbiote.Core.Program]: ┌─────────── ─ ───────────────────────── ─────────────────────────────────────────────────────────────────── ─────── ─ ─ ─
2016-05-19 21:23:36.9966 [INFO] [Symbiote.Core.Program]: │ ▄████████ ▄██ ▄ ▄▄▄▄███▄▄▄▄ ▀█████████▄ ▄█ ▄██████▄ ███ ▄████████ ▄██████▄ ██████████ ▄██████▄ ▄██████▄
2016-05-19 21:23:36.9966 [INFO] [Symbiote.Core.Program]: │ ███ ███ ███ ██▄ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███ ███ ███ ███
2016-05-19 21:23:36.9966 [INFO] [Symbiote.Core.Program]: │ ███ █▀ ███▄▄▄███ ███ ███ ███ ███ ███ ███▌ ███ ███ ▀███▀▀██ ███ █▀ ███ ███ ███ ███ ███ ███ ███
2016-05-19 21:23:36.9966 [INFO] [Symbiote.Core.Program]: │ ███ ▀▀▀▀▀▀███ ███ ███ ███ ▄███▄▄▄██▀ ███▌ ███ ███ ███ ▀ ▄███▄▄▄ ███ ▄█ ███ ▀
2016-06-16 22:57:45.1067 [INFO] [Symbiote.Core.Program]: ┌─────────── ─ ───────────────────────── ─────────────────────────────────────────────────────────────────── ─────── ─ ─ ─
2016-06-16 22:57:45.1067 [INFO] [Symbiote.Core.Program]: │ ▄████████ ▄██ ▄ ▄▄▄▄███▄▄▄▄ ▀█████████▄ ▄█ ▄██████▄ ███ ▄████████ ▄██████▄ ██████████ ▄██████▄ ▄██████▄
2016-06-16 22:57:45.1067 [INFO] [Symbiote.Core.Program]: │ ███ ███ ███ ██▄ ▄██▀▀▀███▀▀▀██▄ ███ ███ ███ ███ ███ ▀█████████▄ ███ ███ ███ ███ ███ ███ ███ ███ ███
2016-06-16 22:57:45.1067 [INFO] [Symbiote.Core.Program]: │ ███ █▀ ███▄▄▄███ ███ ███ ███ ███ ███ ███▌ ███ ███ ▀███▀▀██ ███ █▀ ███ ███ ███ ███ ███ ███ ███
2016-06-16 22:57:45.1067 [INFO] [Symbiote.Core.Program]: │ ███ ▀▀▀▀▀▀███ ███ ███ ███ ▄███▄▄▄██▀ ███▌ ███ ███ ███ ▀ ▄███▄▄▄ ███ ▄█ ███ ▀
This file has been truncated, but you can view the full file.
2016-07-30 20:49:36.8655 [TRACE] [Symbiote.Core.Program]: ┌─────────── ─ ───────────────────────── ─────────────────────────────────────────────────────────────────── ─────── ─ ─ ─
2016-07-30 20:49:36.8980 [TRACE] [Symbiote.Core.Program]: │ ──► Entering method: Void Main(String[] args) (Program.cs:line 154)
2016-07-30 20:49:37.2160 [TRACE] [Symbiote.Core.Program]: │ └┄┈ args: []
2016-07-30 20:49:37.2440 [TRACE] [Symbiote.Core.Program]: └──────────────────── ─────────────────────────────── ─ ─ ─ ─ ─ ─ ─
2016-07-30 20:49:37.3030 [ INFO] [Symbiote.Core.Program]: ┌─────────── ─ ───────────────────────── ─────────────────────────────────────────────────────────────────── ─────── ─ ─ ─
2016-07-30 20:49:37.3210 [ INFO] [Symbiote.Core.Program]: │ ▄████████ ▄██ ▄ ▄▄▄▄███▄▄▄▄ ▀█████████▄ ▄█ ▄██████▄ ███ ▄████████ ▄██████▄ ██████████ ▄██████▄ ▄██████▄
2016-07-30 20:49:37.3290 [ INFO] [Symbiote.Core.Program]: │ ███ ███ ███
/// <summary>
/// Serializes the specified object to json and writes the resulting text to the specified file.
/// If the destination file exists, it is overwritten if the overwrite flag is set to true.
/// </summary>
/// <param name="obj">The object to serialize.</param>
/// <param name="fileName">The file to write.</param>
/// <param name="overwrite">True if the specified file is to be overwritten if it exists, false otherwise.</param>
/// <returns>True if the operation succeeded.</returns>
/// <exception cref="FileLoadException">Thrown if the specified file exists and the overwrite flag is false.</exception>
/// <exception cref="JsonException">Thrown if an exception is encountered while serializing the specified object.</exception>
/// <summary>
/// Returns the specified assembly attribute of the specified assembly.
/// </summary>
/// <typeparam name="T">The assembly attribute to return.</typeparam>
/// <param name="assembly">The assembly from which to retrieve the attribute.</param>
/// <returns>The retrieved attribute.</returns>
public static T GetAssemblyAttribute<T>(this System.Reflection.Assembly assembly) where T : Attribute
{
object[] attributes = assembly.GetCustomAttributes(typeof(T), false);
Dim Tags as TagGroup
Dim TagsInError as StringList
Dim Result as boolean
Dim ReadReasult as Integer
Dim Timeout as Long
' set timeout limit to now + 15 seconds
Timeout = Timer + 15
Set Tags = CreateTagGroup(Me.AreaName)
/// <summary>
/// Returns a value indicating whether <see cref="Type"/> of the specified object instance contains the specified <see cref="Attribute"/>.
/// </summary>
/// <typeparam name="T">The <see cref="Attribute"/> for which to check.</typeparam>
/// <param name="instance">The object instance to check.</param>
/// <returns>A value indicating whether the specified Type contains the specified Attribute.</returns>
public static bool HasCustomAttribute<T>(this object instance) where T : Attribute
{
return Attribute.GetCustomAttribute(instance.GetType(), typeof(T)) != default(Attribute);
}
<?xml version="1.0" encoding="UTF-8"?>
<KPIDefinition xsi:schemaLocation="http://www.mesa.org/xml/KPI-ML-V01 KPI-ML-V01.xsd" xmlns="http://www.mesa.org/xml/KPI-ML-V01" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<ID>OEE</ID>
<Description>
The OEE Index represents the availability of a work unit, the effectiveness of the work unit, and the quality ratio KPIs integrated in a single indicator.
</Description>
<Name>Overall Equipment Effectiveness Index</Name>
<Scope>Work Unit</Scope>
<Scope>Product</Scope>
<Scope>Time Period</Scope>

Keybase proof

I hereby claim:

  • I am jpdillingham on github.
  • I am jpdillingham (https://keybase.io/jpdillingham) on keybase.
  • I have a public key whose fingerprint is E486 7F27 6964 5892 BD6D 4D6A BCF7 8BB6 E8E1 2090

To claim this, I am signing this object:

/// <summary>
/// Computes and returns the SHA512 hash of the specified string.
/// </summary>
/// <param name="content">The string for which the SHA512 hash is to be computed.</param>
/// <returns>The SHA512 hash of the specified string.</returns>
public static string ComputeSHA512Hash(string content)
{
return ComputeSHA512Hash(Encoding.ASCII.GetBytes(content));
}