Skip to content

Instantly share code, notes, and snippets.

View andrewmurray's full-sized avatar

Andrew Murray andrewmurray

View GitHub Profile
@andrewmurray
andrewmurray / gist:b63b7592386cb67124d1
Last active February 14, 2024 12:17
Convert an Epplus ExcelPackage to a CSV file, returning the byte[] array of this new CSV file. Taking the code provided by "Brad" at http://codejournal.blogspot.co.uk/2012/03/using-epplus-library-to-convert-xlsx-to.html and creating an extension method from it which can be called on Epplus' ExcelPackage. Just call excelPackageObject.ConvertToCsv();
using OfficeOpenXml;
using System.Collections.Generic;
using System.IO;
using System.Text;
namespace WebUI.Infrastructure
{
public static class StringUtils
{
private static string DuplicateTicksForSql(this string s)
@andrewmurray
andrewmurray / _.md
Created March 18, 2014 15:48
redditImgStats