This file contains hidden or 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
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
VERSION="20200421.1" | |
_usage() { | |
cat << __EOF | |
$0 usage: |
This file contains hidden or 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
public static class CSV | |
{ | |
public static string ToCSV(this DataTable table) | |
{ | |
var columnHeaders = (from DataColumn x in table.Columns | |
select x.ColumnName).ToArray(); | |
StringBuilder builder = new StringBuilder(String.Join(",", columnHeaders)); | |
builder.Append("\n"); | |
foreach (DataRow row in table.Rows) |
This file contains hidden or 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
// Written by Michael Carter ([email protected]) | |
// Copyright (c) 2012. All rights reserved. | |
// | |
// Redistribution and use of this code WITHOUT MODIFICATIONS are permitted provided that | |
// the following conditions are met: | |
// 1. Redistributions must retain the above copyright notice, this list of conditions | |
// and the following disclaimer. | |
// 2. Neither the name of an author nor the names of the contributors may be used | |
// to endorse or promote products derived from this software without specific | |
// prior written permission. |
This file contains hidden or 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.Linq.Expressions; | |
namespace Foundation.Specifications | |
{ | |
/// <summary> | |
/// Defines an abstract class from which to create conditional specifications. | |
/// </summary> | |
/// <typeparam name="T">The type of entity used in the specification.</typeparam> | |
/// <seealso href="http://ubik.com.au/article/named/implementing_the_specification_pattern_with_linq" /> |
NewerOlder