Ben Chuanlong Du's Blog

It is never too late to learn.

Use SnakeYaml in Scala

SnakeYAML

moultingyaml: Scala wrapper for SnakeYAML

Comment

If the input YAML doc has multiple formats, you can first load it as an Object and then use Object.isInstanceOf to check its type and use Object.asInstanceOf[SomeType] to cast it to the right type.

Hands on Full-text Search in SQLite3

FTS5 (Full-text Search) in SQLite3

  1. If tokens in the search phrase are separated by either spaces or plus signs, then they are matched in order by tokens in the text. To match tokens orderless, you can separate tokens in the search phrase with the keyword AND.

Tips on Jupyter Binder

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. By default a Jupyter notebook server is shown. You can manually switch to the JupyterLab server by changin tree to lab? in the URL. For more details, please refer to binder-examples …