SinSnip – A simple code snippet manager
This is my implementation of NavySnip, a personal source code snippet repository.
I decided to reimplement the tool in Sinatra since it doesn’t require the overhead of Rails and I want it to be fast.
I also used this project as an experiment with HAML and SASS. Plain CSS is used for the syntax highlighter…
$ sudo gem install sinatra $ sudo gem install haml $ sudo gem install sequel $ sudo gem install coderay
All you have to do is run the server, the database is automatically created for you.
$ ruby sinsnip.rb
Open your web broswer and visit http://localhost:4567 and click the “New Snippet” button to get started.
- Click anywhere on the snippet preview to open the full view
- Implement a simple pagination layout (I think sequel has some support for this already)
- Implement a simple REST API for command line submission of content
Written by Jared Giles
Based off of NavySnip