Skip to content

Instantly share code, notes, and snippets.

Erik Schierboom ErikSchierboom

Block or report user

Report or block ErikSchierboom

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ErikSchierboom
ErikSchierboom / Program.cs
Last active Jun 11, 2019
Inject dependencies into hosted service
View Program.cs
using System;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.DependencyInjection.Extensions;
using Microsoft.Extensions.Hosting;
using WebApiPlayground.Services;
namespace WebApiPlayground
@ErikSchierboom
ErikSchierboom / Program.cs
Created Jun 10, 2019
SimpleInjector + ASP.NET Core
View Program.cs
using Microsoft.AspNetCore;
using Microsoft.AspNetCore.Hosting;
namespace WebApplication1
{
public class Program
{
public static void Main(string[] args) =>
CreateWebHostBuilder(args).Build().Run();
@ErikSchierboom
ErikSchierboom / Program.cs
Created May 3, 2017
Bulk insert MySQL using EF Core
View Program.cs
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
namespace DbBulkPerformance
{
public class Program
{
public class MySqlContext : DbContext
@ErikSchierboom
ErikSchierboom / ScalaDifficulties.fsx
Created Mar 3, 2017
Exercism Scala track with difficulties mapped from F# track
View ScalaDifficulties.fsx
#r "../packages/FSharp.Data.2.3.2/lib/net40/FSharp.Data.dll"
open FSharp.Data
type configJson = JsonProvider<"https://raw.githubusercontent.com/exercism/xscala/master/config.json">
let scalaConfigJson = configJson.Load("https://raw.githubusercontent.com/exercism/xscala/master/config.json")
let fsharpConfigJson = configJson.Load("https://raw.githubusercontent.com/exercism/xfsharp/master/config.json")
let fsharpExerciseDifficulties =
View paket.dependencies
source https://www.nuget.org/api/v2
nuget FSharp.Data
nuget xplot.googlecharts
@ErikSchierboom
ErikSchierboom / app.html
Created Oct 7, 2016 — forked from ZoolWay/app.html
Aurelia Child
View app.html
<template>
<h1>${message}</h1>
<div>Div Content</div>
</template>
@ErikSchierboom
ErikSchierboom / index.html
Created Apr 12, 2015
Knockout pre-rendered: init // source http://jsbin.com/wikaji
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Knockout pre-rendered: init</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-debug.js"></script>
<script src="https://rawgit.com/ErikSchierboom/knockout-pre-rendered/master/dist/knockout-pre-rendered.js" type="text/javascript"></script>
<style id="jsbin-css">
pre {
white-space: pre-wrap; /* css-3 */
@ErikSchierboom
ErikSchierboom / index.html
Created Apr 12, 2015
Knockout pre-rendered: foreachInit // source http://jsbin.com/nocaro
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Knockout pre-rendered: foreachInit</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-debug.js"></script>
<script src="https://rawgit.com/ErikSchierboom/knockout-pre-rendered/master/dist/knockout-pre-rendered.js" type="text/javascript"></script>
<style id="jsbin-css">
pre {
white-space: pre-wrap; /* css-3 */
@ErikSchierboom
ErikSchierboom / index.html
Created Apr 12, 2015
Knockout pre-rendered: valueInit // source http://jsbin.com/xuluye
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Knockout pre-rendered: valueInit</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-debug.js"></script>
<script src="https://rawgit.com/ErikSchierboom/knockout-pre-rendered/master/dist/knockout-pre-rendered.js" type="text/javascript"></script>
<style id="jsbin-css">
pre {
white-space: pre-wrap; /* css-3 */
@ErikSchierboom
ErikSchierboom / index.html
Created Apr 12, 2015
Knockout pre-rendered: textInit // source http://jsbin.com/jazeke
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Knockout pre-rendered: textInit</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/knockout/3.2.0/knockout-debug.js"></script>
<script src="https://rawgit.com/ErikSchierboom/knockout-pre-rendered/master/dist/knockout-pre-rendered.js" type="text/javascript"></script>
<style id="jsbin-css">
pre {
white-space: pre-wrap; /* css-3 */
You can’t perform that action at this time.