Skip to content

Instantly share code, notes, and snippets.

View vmarcosp's full-sized avatar
No action can be virtuous unless it is freely chosen

Marcos Oliveira vmarcosp

No action can be virtuous unless it is freely chosen
View GitHub Profile
open Belt;
let person = Js.Nullable.return({ "name": "marcos"})->Js.Nullable.toOption;
person
->Option.map(person => person##name)
-> Option.getWithDefault("");
let (>=) = (maybe, func) => maybe->Option.map(func);
let (>?) = (maybe, defaultValue) => maybe->Option.getWithDefault(defaultValue);
We couldn’t find that file to show.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
module FramerMotion = {
type animateValue
type controlStatus = [#visible | #hidden]
type controls = {start: (. controlStatus) => unit}
type animate = [#controlled(controls) | #visible | #hidden]
@deriving(abstract)
type transition = {