Skip to content

Instantly share code, notes, and snippets.

Erik Schierboom ErikSchierboom

View GitHub Profile
@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 */
@ErikSchierboom
ErikSchierboom / MvcHelper.cs
Created Aug 9, 2014
ASP.NET MVC test helper
View MvcHelper.cs
public static class MvcHelper
{
public const string AppPathModifier = "/$(SESSION)";
public static HtmlHelper<object> GetHtmlHelper()
{
HttpContextBase httpcontext = GetHttpContext("/app/", null, null);
RouteCollection rt = new RouteCollection();
rt.Add(new Route("{controller}/{action}/{id}", null) { Defaults = new RouteValueDictionary(new { id = "defaultid" }) });
rt.Add("namedroute", new Route("named/{controller}/{action}/{id}", null) { Defaults = new RouteValueDictionary(new { id = "defaultid" }) });
View gist:99cbec38a537d6e65c32
namespace MonoColorMatrix
{
using System.Drawing;
using System.Drawing.Imaging;
public class Program
{
public static void Main()
{
var brightnessFactor = -0.05f;
You can’t perform that action at this time.