Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am vinsentru on github.
  • I am vinsentru (https://keybase.io/vinsentru) on keybase.
  • I have a public key ASCSImMytLkI2KBi_M5sP6W8L3fesE9rYOWH-DkC1_sm-Qo

To claim this, I am signing this object:

@vinsentru
vinsentru / split_batch_flack.sh
Created April 2, 2018 18:53
Split a deep folders structure (like discography) containing *.cue and *.flack
find . -type f -iname "*.cue" | while read dir; do dirname=$(dirname "$dir"); echo $dirname; pushd "$dirname"; split2flac -cue *.cue *.flac; popd; done
-module(sexy_primes).
% Simple benchmark based on
% http://stackoverflow.com/questions/11641098/interpreting-a-benchmark-in-c-clojure-python-ruby-scala-and-others
-compile(export_all).
isprime(X) ->
lists:all(fun(A) -> (X rem A) > 0 end,lists:seq(2,X-1)).