Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mimoo's full-sized avatar
🦀
求同存异

David Wong mimoo

🦀
求同存异
View GitHub Profile
@mimoo
mimoo / smol.md
Last active November 16, 2023 13:51
Smol's introduction blogpost
@mimoo
mimoo / ocaml_parser.py
Created March 14, 2023 17:18
Parse crazy OCaml compiler errors
import sys
import os
import itertools
from rich.console import Console
from rich.syntax import Syntax
from rich.style import Style
from rich.progress_bar import ProgressBar
from rich.panel import Panel
from rich.console import Group
@mimoo
mimoo / hanoi.md
Created December 7, 2022 22:18
What to eat in Hanoi

Haven't been in a very long time, so I wouldn't be able to recommend specific places, but I can recommend specific dish.

image

Turmeric fish (Chả Cá Lã Vọng). This is a specialty and you can find places that only do that. There's a pan in front of you with some oil, and you put fish and dill and tumeric and cook it yourself.

image

DIY Fruit smoothies (Hoa Qua Dam). You can find that in the streets. They give you these cups with fruits and ice and condensed milk and you're supposed to blend everything yourself by hammering the content with your spoon. So good!

@mimoo
mimoo / dune
Last active November 18, 2022 21:41
An explainer on state monads in OCaml
(executable
(name state_monad)
(modules state_monad)
(libraries base stdio)
(preprocess
(pps ppx_let)))
@mimoo
mimoo / mexico_city.md
Created November 12, 2022 18:44
Mexico City!

Places to stay at

  • Roma Norte
  • Condesa

Restaurants

  • taqueria gabriel (omg, everything is good there, get the "jugo de carne" as well!)
  • "paramo" and "el parnita", one is upstairs and has amazing food and cocktails and atmosphere, the other one is downstairs and has great food.
  • taqueria orinoco (omg, same, it's more like a fast food chain but it's like THE chain of tacos)
@mimoo
mimoo / lyon.md
Last active September 18, 2022 19:20
Lyon.md

Lyon's restaurant and things to do

Restaurants

Note:

  • for a number of restaurants here you might have to book a long time in advance. You've been warned.
  • many restaurants in France offer a different menu for lunch and dinner

OK here's the list:

(library
(name ocaml_bug)
(inline_tests)
(preprocess
(pps ppx_inline_test)))
@mimoo
mimoo / dune
Last active March 6, 2022 19:34
OCaml bug: you might think that deriving {hash, eq} is enough to use a custom record in a hashtable. Think again!
(library
(name ocaml_bug)
(inline_tests)
(preprocess
(pps ppx_inline_test ppx_deriving.eq ppx_deriving_hash)))
@mimoo
mimoo / the_list.md
Created October 20, 2021 00:25
THE LIST
  • 12 Monkeys * 
  • 2001 A Space Odyssey ( o ) 
  • American Psycho *
  • Being John Malkovich * 
  • Cypher 
  • Donnie Darko * 
  • Eternal Sunshine Of The Spotless Mind **
  • eXistenZ ** 
  • Fight Club **
  • Frailty
@mimoo
mimoo / forbidden.ipynb
Last active August 24, 2021 20:51
Forbidden values in recursive scalar multiplications
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.