Skip to content

Instantly share code, notes, and snippets.

@tagomoris
tagomoris / jruby_dies.rb
Created December 24, 2015 12:07
Both of jruby-1.7.x and jruby-9.x die with this script
require 'openssl'
cert = OpenSSL::X509::Certificate.new
puts cert.to_text
exit 0
@voluntas
voluntas / erlang_maps.rst
Last active December 5, 2016 01:54
Erlang/OTP Map コトハジメ
@markbates
markbates / script.md
Created December 21, 2012 18:21
Getting Started with Sinatra

In an earlier video we took a look at Rack to build incredibly lightweight web applications with Ruby. Rack's toolkit allowed us to quickly throw to get a working application, but we did have to put a little effort into it once we wanted to build something a little more complex.

Sometimes you want a fast and simple framework for building a simple web application. Perhaps you only need to respond to a handful of routes, or you want the response time for a small part of a bigger application to be lighting fast. The Sinatra framework is made for just these moments.

Today let's take a quick look at this framework and see how quickly we can build lightweight web applications.

To get started we first need to install the Sinatra gem:

gem install sinatra