This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Globalization; | |
using System.Text.RegularExpressions; | |
namespace Utilities | |
{ | |
/// <summary> | |
/// Provides intelligent capitalization methods. | |
/// </summary> | |
public static class CapitalizationHelper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Newtonsoft.Json; | |
namespace JsonConverters | |
{ | |
/// <summary> | |
/// Handles converting JSON string values into a C# boolean data type. | |
/// </summary> | |
public class BooleanJsonConverter : JsonConverter | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
param($installPath, $toolsPath, $package, $project) | |
# open splash page on package install | |
# don't open if it is installed as a dependency | |
# attribution: Modified from: https://github.com/JamesNK/Newtonsoft.Json/blob/master/Build/install.ps1 | |
try | |
{ | |
$url = "http://randyburden.com/Slapper.AutoMapper/" | |
$packageName = "slapper.automapper" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Data; | |
using System.Linq; | |
using System.Reflection; | |
using NUnit.Framework; | |
namespace Atcs.Core.Tests | |
{ | |
[TestFixture] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Text; | |
namespace Helpers | |
{ | |
public static class TimeSpanHelper | |
{ | |
/// <summary> | |
/// Gets a formatted string of the given <see cref="TimeSpan"/>. Supports up to microsecond resolution. | |
/// |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
using System.Text; | |
using NUnit.Framework; | |
namespace TestHelper | |
{ | |
[TestFixture] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>CurlyBraceWrappedText Demo</title> | |
<style type="text/css"> | |
.CodeMirror {border: 1px solid black;} | |
.cm-CurlyBraceWrappedText {color: #CC0000; font-weight: bold;} | |
</style> | |
<link rel="stylesheet" href="css/codemirror.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Owin Request extensions. | |
/// </summary> | |
public static class OwinRequestExtensions | |
{ | |
/// <summary> | |
/// Gets the combined request parameters from the form body, query string, and request headers. | |
/// </summary> | |
/// <param name="request">Owin request.</param> | |
/// <returns>Dictionary of combined form body, query string, and request headers.</returns> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Paper Weight Chart | |
------------------ | |
16 lb bond - 60 g/m2 | |
17 lb bond - 64 g/m2 | |
18 lb bond - 64 g/m2 or 67.7 g/m2 or 69 g/m2 | |
19 lb bond - 71 g/m2 or 74 g/m2 or 75 g/m2 | |
20 lb bond - 74 g/m2 or 75 g/m2 or 75.2 g/m2 or 80 g/m2 | |
24 lb bond - 90 g/m2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
namespace PDFMerger.Utilities | |
{ | |
/// <summary> | |
/// Provides extension methods for PdfSharp objects. | |
/// </summary> | |
public static class PdfSharpExtensions | |
{ | |
/// <summary> | |
/// Adds a 2D DataMatrix barcode to the PdfPage. | |
/// </summary> |