Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SinSnip – A simple code snippet manager

Overview

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…

It uses the Sequel ORM with the CodeRay syntax highlighter.

Dependencies


  $ sudo gem install sinatra
  $ sudo gem install haml
  $ sudo gem install sequel
  $ sudo gem install coderay

Setup

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.

TODO

  • 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

About

Written by Jared Giles

Based off of NavySnip

Screenshots: http://epid.github.com/sinsnip/sinsnip.png

About

SinSnip - A simple code snippet manager

Resources

Stars

6 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages