Source

snip /

Filename Size Date modified Message
deps
1.1 KB
646 B
run
216 B
7.2 KB
-*- markdown -*-

# Snip #

Snip is a simple pastebin. It was written as the example for an article on [How To Node](http://howtonode.org).

## Prerequisites ##

* [node](http://github.com/ry/node)
* [Redis](http://code.google.com/p/redis)
* [Pygments](http://pygments.org)

It also uses the following, but they are included in the source:

* [redis-node-client](http://github.com/fictorial/redis-node-client)
* [nerve](http://github.com/gjritter/nerve)
* [underscore.js](http://github.com/documentcloud/underscore)

## Running ##

Start Redis on default port and localhost, do:

    ./run snip.js

Visit http://localhost:8000 and add snippets.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.