Skip to content

Instantly share code, notes, and snippets.

View evantill's full-sized avatar

Eric Vantillard evantill

View GitHub Profile
@evantill
evantill / main_critical_extendedkeyusage_timestamping.go
Last active January 1, 2022 22:23
x509 creation in go with a critical extended flag
/*
from https://golang.org/src/crypto/tls/generate_cert.go
*/
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// +build ignore
@evantill
evantill / arrow-kt-draft.kt
Last active March 8, 2018 09:40
State for comprehension sample
package draft
import arrow.*
import arrow.core.*
import arrow.data.*
import arrow.syntax.option.*
import arrow.typeclasses.*
import arrow.instances.*
typealias Stack = Option<Nel<String>>