Skip to content

Instantly share code, notes, and snippets.

View rmanalan's full-sized avatar
:octocat:

Rich Manalang rmanalan

:octocat:
View GitHub Profile
@defunkt
defunkt / browser
Created March 1, 2010 10:01
pipe html to a browser
#!/bin/sh -e
#
# Usage: browser
# pipe html to a browser
# e.g.
# $ echo '<h1>hi mom!</h1>' | browser
# $ ron -5 man/rip.5.ron | browser
if [ -t 0 ]; then
if [ -n "$1" ]; then
@ryanbriones
ryanbriones / gist:240942
Created November 23, 2009 07:03
first pass at what my sinatra-like java servlet would look like
import org.sinatraLikeServlet.*;
public class MyApplication extends SinatraLikeHTTPServlet {
@get("/")
public void index(SinatraLikeHTTPServletRequest req
SinatraLikeHTTPServletResponse resp) {
MyResource[] resources = MyResource.findAll();
req.setAttribute("resources", resources);
}