Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
requires Rails libraries. could be rewritten to just use core Ruby libs, but I'm too lazy right now and I use this entirely in my Rails apps.
0
2246
posted 16 years ago by mepatterson
I recently had to remove some files from a svn repo.
should work pretty much out of the box, just fill in blatantly exampleish text and read the comments
0
1960
posted 16 years ago by spreelanka
For some reason, Snipplr has decided not to HTML-encode <code><</code> and <code>></code> signs (i.e., replacing them with `<` and `>`) that a user inputs into a comment box, and instead strips anything that looks like a tag from the comm...
0
2105
posted 16 years ago by wizard04
This code appends a class of external to all all outbound links
It includes a fix for Safari which does not recognise internal links that use a different port
1
2316
posted 16 years ago by flicity
Ruby provides a platform independent way of displaying file paths. Here are a few common ways to show absolute and relative paths.
0
2027
posted 16 years ago by chrisaiv
This javascript greets visitors to your website depending on where they come from. There are messages for visitors coming from Entrecard, Twitter, and search engines. It should be easy to adapt the code to include other referral sites as well.
In...
0
1718
posted 16 years ago by benjamin