Add nuts.rb, translated from ycad.