aliquote.org

Latest micro-posts

You can also also view the full archives of micro-posts. Longer blog posts are available in the Articles section.

2019-10-03 11:34 #

Akku.scm: Package management made easy. #scheme

2019-10-03 11:33 #
2019-10-03 11:26 #

Streamlit: The fastest way to build custom ML tools. #python

2019-10-03 10:10 #

  Banks, Goddess.

2019-10-03 09:54 #
2019-10-03 08:07 #

Oh I guess my remark became totally useless since lintr 2.0.0 came out on CRAN recently. I should note that old options are still valid, though, so I can keep the following in my init.el file:

(flycheck-lintr-linters
   "with_defaults(assignment_linter=NULL, camel_case_linter=NULL, commented_code_linter=NULL,
                  absolute_paths_linter=NULL, line_length_linter(120))")

Not that I am a big fan of camel case, but Bioconductor folks are apparently. #rstats #emacs

2019-10-02 20:47 #

Il écrit de la main droite. Dans le toorent, il a laissé pendre la gauche, massée et alanguie d’eau froide. Il est vigilant comme un pêcheur qui surveille son bouchon. Il veut tenter de rendre, de la pointe de la plume, les baisers de l’eau renouvelée qui lave elle-même son baiser. — Régine Detambel, Petit éloge de la peau

2019-10-02 20:43 #

I’m using ox-pandoc as my main engine to export Org documents to HTML or PDF. This is mostly because I know Pandoc better than the basic (Lua)Latex + Minted/lstlistings that I haven’t used in years. Funny enough, the #+ATTR_LATEX is not recognized by Pandoc, but part of #+ATTR_HTML settings (e.g., :width 75% to resize image) are honored during the export. However, neither of the HTML or PDF output include the #+CAPTION: legend! #emacs #org

2019-10-02 20:39 #

I believe this the canonical way to filter in a Pandas data frame, say d, rows that contain or better, match exactly, the word “gene”:

d[d["type"].str.match("gene", na=False)]

(The na=False option is just because there are some NaN values.)

Now I understand why I prefer functional languages, and more specifically why I prefer to write and chain together simple functions in Python rather than implementing complex class with shadowed methods, setters and getters. #python