Skip to content

Instantly share code, notes, and snippets.

View junoatwork's full-sized avatar

juno suárez junoatwork

View GitHub Profile
@junoatwork
junoatwork / machine.js
Last active February 9, 2021 04:49
Generated by XState Viz: https://xstate.js.org/viz
/* eslint-disable no-undef */
// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
@junoatwork
junoatwork / github.com.css
Created December 9, 2020 23:51
stylus user style for github darkmode
@-moz-document domain("github.com") {
[type=checkbox], [type=radio] {
opacity: .8; /** so damn bright normally! */
}
}
class A<out T>(val value: T)
class B<T>(val value: T)
fun <T> doA(a: A<T>, t: T): T = t
fun <T> doB(b: B<T>, t: T): T = t
fun <T> doA2(a: A<T>) = fun (t: T): T = t
init {
// this compiles, because T is inferred to be "Any", because A specifies that T is covariant ("out")