Skip to content

Instantly share code, notes, and snippets.

View kawa-xxx's full-sized avatar

kawa kawa-xxx

  • Sansan, Inc.
  • Japan
View GitHub Profile
@kawa-xxx
kawa-xxx / ExcelSummarizer.cs
Last active July 17, 2016 14:44
ClosedXML のサンプル
static void Main(string[] args)
{
var path = ConfigurationManager.AppSettings["InputPath"];
var outPath = ConfigurationManager.AppSettings["OutputPath"];
var files = Directory.GetFiles(path);
var allRows = new List<AlertModel>();
foreach (var file in files)
{
using (var book = new XLWorkbook(file, XLEventTracking.Disabled))
@kawa-xxx
kawa-xxx / linqpad-unittest-sample.cs
Created April 13, 2016 10:13
LinqPad UnitTest サンプル
void Main(string[] args)
{
new AutoRun().Execute(new[]{"--noheader","--noresult"});
}
[TestFixture]
public class TestFixture
{
int GetPageNumber(int limit, int offset)
{
@kawa-xxx
kawa-xxx / yield-sample.cs
Created January 11, 2016 05:06
yield サンプル
void Main()
{
var hoge = GetName();
hoge.Dump();
}
IEnumerable<string> GetName()
{
yield return "hoge";
yield return "huga";
@kawa-xxx
kawa-xxx / gist:9874611
Created March 30, 2014 15:42
Explicit Interface Implementation
namespace ConsoleApplication
{
class Program
{
static void Main(string[] args)
{
var hogeFuga = new HogeFuga();
var hoge = (IHoge) hogeFuga;
var fuga = (IFuga) hogeFuga;
Console.WriteLine(hoge.Do());