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 / 48in24.md
Last active January 4, 2024 10:33
48in24.md
@ErikSchierboom
ErikSchierboom / Program.cs
Created May 3, 2017 08:32
Bulk insert MySQL using EF Core
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 / functional-february.md
Last active January 26, 2023 11:28
Functional february (C# vs F#)

Functional first

let createAddFunction amount =
    let addFunction = fun x -> amount + x
    addFunction

let applyFunction func x =
    func x
@ErikSchierboom
ErikSchierboom / exercise
Last active January 17, 2023 08:16
Script to submit exercism exercise
#!/usr/bin/env bash
exercise=$(echo $PWD | awk -F/ '{print $(NF)}')
track=$(echo $PWD | awk -F/ '{print $(NF-1)}')
if [[ $(git ls-files --error-unmatch README.md 2> /dev/null) ]]; then
type="iteration"
else
type="solution"
fi
@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 / WeighingMachinePossibleSolution.cs
Last active September 28, 2021 09:50 — forked from 18-F-cali/WeighingMachinePossibleSolution.cs
Weighing machine possible solution
using System;
class WeighingMachine
{
private int _weight;
public WeighingMachine(int precision)
{
Precision = precision;
}
@ErikSchierboom
ErikSchierboom / active-maintainers.txt
Last active May 28, 2021 17:42
Active Exercism maintainers
Track: 05ab1e
0 current maintainers
0 active maintainers
0 inactive maintainers
Track: ada
0 current maintainers
0 active maintainers
0 inactive maintainers
@ErikSchierboom
ErikSchierboom / open-issues.md
Last active May 21, 2021 18:07
Open issues on Exercism per 2021-05-21
track status # issues
exercism/05ab1e OPEN 18
exercism/05ab1e CLOSED 1
exercism/ada OPEN 19
exercism/ada CLOSED 1
exercism/analyzer-builder OPEN 1
exercism/analyzer-orchestrator OPEN 1
exercism/analyzer-pipeline OPEN 1
exercism/arkov CLOSED 2
@ErikSchierboom
ErikSchierboom / practice-exercise-migration.md
Created February 5, 2021 13:58
Practice Exercise migration

We've made some changes to the v3 spec this week, most notably we've defined what the file structure looks like for Practice Exercises. See the spec for more information.

This PR applies changes to the track to conform to the latest spec. Each change is made as a separate commit, to help with reviewing. When merging this PR, I would suggest to not squash this to preserve the individual commits.

As having this PR merged is essential to prepare this track for Exercism v3, we'll automatically merge this PR one week after it was opened (if it hasn't been merged already).

Here are the changes made:

Add practices field to Practice Exercises

@ErikSchierboom
ErikSchierboom / tags.md
Last active January 19, 2021 13:25
Exercism v3 tags

Paradigm

  • Declarative
  • Functional
  • Imperative
  • Logic
  • Object-oriented
  • Procedural

Typing