Skip to content

Instantly share code, notes, and snippets.

View little-arhat's full-sized avatar
🕵️‍♂️
What I had was a coat, a hat and a gun...

Roma Sokolov little-arhat

🕵️‍♂️
What I had was a coat, a hat and a gun...
View GitHub Profile
@jordwalke
jordwalke / myComponent.ml
Last active December 13, 2021 17:32
React OCaml API
open ReactDOM
module MyComponent = struct
(* Component Properties *)
type props = {count: int}
(* Hey, state can be any type! *)
type state = string
(* Initializer *)
@jvns
jvns / examples.md
Last active June 12, 2022 11:10
Rust examples

Strings

The std::str documentation is also quite good.

// Create a string from a literal
let hello: &'static str = "Hello!";
let hello2: &str = "Hello!";