Skip to content

Instantly share code, notes, and snippets.

require_relative 'helper'
class MyApp
def half_close(request)
[200, { 'content-type' => 'text/plan' }, 'Hello HTTP 2.0! GET request']
end
def promise(request)
[200, { 'content-type' => 'text/plan' }, 'A promise']
@seenmyfate
seenmyfate / Capfile
Created April 23, 2014 07:55
Capistrano v3 custom Submodule Strategy example
require 'capistrano/setup'
require 'capistrano/deploy'
require 'capistrano/scm'
require 'capistrano/git'
class Capistrano::Git < Capistrano::SCM
module SubmoduleStrategy
include DefaultStrategy
def release
@seenmyfate
seenmyfate / vimrc
Created December 29, 2011 20:07
Starting point
" http://mislav.uniqpath.com/2011/12/vim-revisited/
set nocompatible " choose no compatibility with legacy vi
syntax enable
set encoding=utf-8
set showcmd " display incomplete commands
filetype plugin indent on " load file type plugins + indentation
"" Whitespace
set nowrap " don't wrap lines