I hereby claim:
- I am miklund on github.
- I am mikaellundin (https://keybase.io/mikaellundin) on keybase.
- I have a public key whose fingerprint is 1C4F AD00 2906 BD13 EA40 2BD2 8520 5442 15D9 FD5E
To claim this, I am signing this object:
// wide depth lft rgt | |
// depth: the length of result lists | |
// lft: the left list (default []) | |
// rgt: the right list (default items we want to permute) | |
// | |
// example: wide 2 [] [1; 2; 3] | |
// -> [[1; 2]; [1; 3]; [2; 1]; [2; 3]; [3; 2]; [3; 1]] | |
let rec wide depth lft = function | |
| [] -> [] | |
| hd :: tl -> (deep hd (depth, (lft @ tl))) @ (wide depth (hd :: lft) tl) |
let fslex = @"packages\FSPowerPack.Community.2.1.3.1\Tools\fslex.exe" | |
let parserDir = @".\LiteMedia.Dsl\" | |
// FsParse | |
Target "FsYacc" (fun _ -> | |
let result = | |
ExecProcess (fun info -> | |
info.FileName <- fsyacc | |
info.Arguments <- parserDir + "parser.fsy --module Parser" | |
) (System.TimeSpan.FromMinutes 1.) |
module PE31 | |
let solution n = | |
let filter_less_than n = List.filter (fun c -> c <= n) | |
let rec _solution values = function | |
| 200 -> 1 // success | |
| n when n > 200 -> 0 | |
| n -> List.sum (List.map (fun coin -> _solution (values |> filter_less_than coin) (n + coin)) values) | |
_solution [200; 100; 50; 20; 10; 5; 2; 1] n |
namespace LiteMedia.Cache | |
{ | |
public static class CacheArg<T> | |
{ | |
public static readonly T Any = default(T); | |
} | |
} |
namespace Test | |
{ | |
using System.ComponentModel.Composition; | |
using System.ComponentModel.Composition.Hosting; | |
using System.Linq; | |
using NUnit.Framework; | |
[Export] | |
public class Class0 | |
{ |
I hereby claim:
To claim this, I am signing this object:
// Brains game implementation in javascript | |
// new Brains(el) | |
// initialize Brains on a preferably empty div | |
function Brains (el) { | |
// --- START: Board --- | |
var Board = function (boardEl) { | |
var board = [[]]; | |
var width = 0; |
# Backup database in a rails docker setup | |
# http://blog.mikaellundin.name/2015/12/12/backup-database-in-a-rails-docker-setup.html |
# Deploying legacy Rails application on Raspberry Pi 2 with Docker | |
# Mikael Lundin | |
# http://blog.mikaellundin.name/2015/12/11/deploying-legacy-rails-application-on-raspberry-pi-2-with-docker.html |
# Property-Based Testing with F# | |
# Author: Mikael Lundin | |
# Link: http://blog.mikaellundin.name/2015/06/04/property-based-testing-with-fsharp.html |