You are here |
www.trollaxor.com | ||
| | | |
blog.tst.sh
|
|
| | | | A little while ago I stumbled upon a golf challenge where you had to do run length encoding (RLE) on an arbitrary string, for example given the input string: 10+[>+>3+>7+>10+4<-]3>2+.>+.7+2.3+.2<2+.>15+.>.3+.6-.8-.2<+.<. it must be converted to: ++++++++++[>+>+++>+++++++>++++++++++<<<<-]>>>++.>+.+++++++..+++.<<++.>+++++++++++++++.>.+++.------. | |
| | | |
atilaoncode.blog
|
|
| | | | I've often heard it said that DSLs make a codebase harder to understand, because programmers familiar with the language the codebase is written in now have to learn the DSL as well. Here's my problem with that argument: every codebase is written in an embedded DSL. More often than not that DSL is ad-hoc, informally... | |
| | | |
takeonrules.com
|
|
| | | | Last month I wrote Creating an Emacs Command to Rename Files per Denote File Naming Schema. Ive been using it in a one-off situation. And yesterday I wrote a wrapping function to call in dired. The source code for jf/dired-rename-files-to-denote-schema. (defun jf/dired-rename-files-to-denote-schema () "Rename marked files in `dired-mode'." (interactive) (when (seq-find (lambda (file) (member (file-name-nondirectory file) '("." ".."))) (dired-get-marked-files)) (user-error "Can't rename "." or ".." files"... | |
| | | |
reperiendi.wordpress.com
|
|
| | They have six legs! https://www.youtube.com/watch?v=qU7hmwzuQ1k They bark! https://www.youtube.com/watch?v=hRluB6eyN3c |