It's not that easy.
His program is written is Processing, which is basically Java simplified with turtle.
To embed this in Snap, you would have to use Processing.js and create a canvas/modify one with the attribute data-processing-source="Main.pde"
and link the raw files.