It’s really easy to share your Gorilla REPL worksheets with the world using the online viewer. It free to use, and you don’t need to register. Just upload your worksheet to GitHub and then use the link:
replacing the <>s with appropriate values. The path variable is the path inside the repo to the worksheet. That’s it - your worksheet is now available online! This link is an example of a shared Gorilla worksheet.
You can also share worksheets in GitHub gists. In this case just use the link:
If the gist only has a single file in it, then you can omit the filename parameter. Example
If you’d prefer to host the content on BitBucket then can construct a URL like:
where the <>s have the same meaning as above.
Taking care of a couple of details will make it easier for others to run your worksheets:
lein-gorilla(it might not if you have installed Gorilla globally in your
profiles.cljfile). If you do this then someone who clones your project to run your worksheet will be able to simply run
lein gorillafrom the project directory and have it work.
Of course, you don’t need to follow those tips. But it’s definitely good to make it as easy as possible for people to not just view your worksheets, but to copy them and run them themselves. The more the merrier you know!