This is my notepad where i collect the useful snippets of OpenSCAD code that i use over and over. Some better curated than others, some formatted for clarity some for efficiency.
echo(choose(17,13)); function choose(n, k)= k == 0? 1 : (n * choose(n - 1, k - 1)) / k;