Skip to content

Instantly share code, notes, and snippets.

View ErikSchierboom's full-sized avatar
💭
I only respond on Tuesdays & Fridays

Erik Schierboom ErikSchierboom

💭
I only respond on Tuesdays & Fridays
View GitHub Profile
@ErikSchierboom
ErikSchierboom / gist:5047101
Created February 27, 2013 10:56
Autofac 3.0.1 does not work under Mono. The console application below has four assembly references: Autofac, Autofac.Configuration, System and System.Core
namespace ConsoleApplication1
{
using System;
using Autofac;
internal class Program
{
private static void Main(string[] args)
{
@ErikSchierboom
ErikSchierboom / gist:8253705
Created January 4, 2014 10:01
EF6 - TPH foreign key mapping in derived classes not working
namespace ConsoleApplication1
{
using System.Data.Entity;
class Program
{
static void Main()
{
using (var db = new Context())
{
namespace MonoColorMatrix
{
using System.Drawing;
using System.Drawing.Imaging;
public class Program
{
public static void Main()
{
var brightnessFactor = -0.05f;
@ErikSchierboom
ErikSchierboom / MvcHelper.cs
Created August 9, 2014 08:34
ASP.NET MVC test helper
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" }) });
@ErikSchierboom
ErikSchierboom / index.html
Created April 12, 2015 10:37
Knockout pre-rendered: textInit // source http://jsbin.com/jazeke
<!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 / index.html
Created April 12, 2015 10:37
Knockout pre-rendered: valueInit // source http://jsbin.com/xuluye
<!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 April 12, 2015 10:37
Knockout pre-rendered: foreachInit // source http://jsbin.com/nocaro
<!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 April 12, 2015 10:37
Knockout pre-rendered: init // source http://jsbin.com/wikaji
<!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 / app.html
Created October 7, 2016 13:41 — forked from ZoolWay/app.html
Aurelia Child
<template>
<h1>${message}</h1>
<div>Div Content</div>
</template>
source https://www.nuget.org/api/v2
nuget FSharp.Data
nuget xplot.googlecharts