Skip to content

Instantly share code, notes, and snippets.

View casperOne's full-sized avatar
👑
Probably working on One Frame Link.

Nicholas Paldino casperOne

👑
Probably working on One Frame Link.
View GitHub Profile
private async Task<List<Customer>> GetCustomerDataParallel()
{
// Kick off all of these in parallel
var customerTask = service.GetCustomersAsync();
var detailsTask = service.GetExtraCustomerDataFromService();
var moreDetailsTask = service.GetmoreExternalCustomerDataFromService();
// Wait for everything to complete.
await Task.WhenAll(customerTask, detailsTask, moreDetailsTask)
.ConfigureAwait(false);
@casperOne
casperOne / 2018-10-15 - CPT 2018 Perfect Storm Scenario - Player Placings.csv
Last active October 16, 2018 13:55
2018-10-15 - CPT 2018 Perfect Storm Scenario
Player Region OriginalPlace Place OriginalPoints Points Event Type StartDate EndDate RegionLock Place PointsWon
ATLAS BEAR|IamChuan Asia 34 13 420 1300 JAM Festival 2018 Ranking 10/19/2018 0:00 10/21/2018 0:00 5 10
ATLAS BEAR|IamChuan Asia 34 13 420 1300 Canada Cup 2018 Premier 10/26/2018 0:00 10/28/2018 0:00 7 100
ATLAS BEAR|IamChuan Asia 34 13 420 1300 LATAM Regional Finals 2018 Premier 11/2/2018 0:00 11/4/2018 0:00 1 700
ATLAS BEAR|IamChuan Asia 34 13 420 1300 North American Regional Finals at Red Bull Conquest Premier 11/17/2018 0:00 11/18/2018 0:00 9 70
Brolynho Latin America 32 14 430 1290 East Coast Throwdown 2018 Ranking 10/20/2018 0:00 10/21/2018 0:00 4 20
Brolynho Latin America 32 14 430 1290 Canada Cup 2018 Premier 10/26/2018 0:00 10/28/2018 0:00 9 70
Brolynho Latin America 32 14 430 1290 LATAM Regional Finals 2018 Premier 11/2/2018 0:00 11/4/2018 0:00 9 70
Brolynho Latin America 32 14 430 1290 North American Regional Finals at Red Bull Conquest Premier 11/17/2018 0:00 11/18/2018 0:00 1 700
@casperOne
casperOne / Tests.cs
Created May 22, 2018 13:21
CsvHelper 7.1.0 - CsvWriter NullReferenceException on multiple Dispose calls
using System;
using System.IO;
using CsvHelper;
using Xunit;
namespace CsvHelperDisposeTests
{
public class Tests
{
[Fact]
select
stuff((
select
',
CONSTRAINT [' +
fk.name +
'] FOREIGN KEY (' +
stuff((
select
', ' + tc.escapedColumnName as [text()]