There is an in-app text editor where you can write the rules. Alternatively, you could write the code on a computer and copy it over.
Reply on news.ycombinator.com