Skip to content

Instantly share code, notes, and snippets.

@catlion
catlion / Build.fsx
Last active January 28, 2016 21:48
Build.fsx target fragment
#r "c:/dev/git/ContractLookup/tools/FAKE/tools/FakeLib.dll"
#r "System.Configuration.dll"
open Fake
open Fake.AssemblyInfoFile
open Fake.ReleaseNotesHelper
open Fake.ProcessHelper
open System
open System.Configuration
open System.IO
module BadukBot.Api
open BadukBot.Telegram
open System
open System.Net.Http
let private client =
let h = new HttpClientHandler()
h.AllowAutoRedirect <- true
h.MaxRequestContentBufferSize <- 1024L * 1024L
@catlion
catlion / ConstrainedTypesExamples.fsx
Created December 1, 2017 08:50 — forked from swlaschin/ConstrainedTypesExamples.fsx
Examples of creating constrained types in F#
module ConstrainedTypes =
open System
// General hints on defining types with constraints or invariants
//
// Just as in C#, use a private constructor
// and expose "factory" methods that enforce the constraints
//
// In F#, only classes can have private constructors with public members.
//
@catlion
catlion / NugetProxy.cs
Created February 26, 2019 12:48
Simple proxy service for Nuget.org
using Microsoft.AspNetCore.Http;
using System;
using System.Linq;
using System.Collections.Generic;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
namespace VTB.Portal.NugetProxy
{