First create a Ubuntu 13.04 x64 droplet on DigitalOcean Control Panel
Then ssh with root account, run this in termianl:
$ wget -qO- https://raw.github.com/progrium/dokku/master/bootstrap.sh | sudo bash
<!doctype html> | |
<html> | |
<head> | |
<style> | |
@-webkit-keyframes relocate { | |
0% { top:16px; } | |
50% { top: 64px; } | |
100% { top: 16px; } | |
} | |
video{ |
require 'rubygems' | |
require 'mechanize' | |
FIRST_NAME = 'FIRST_NAME' | |
LAST_NAME = 'LAST_NAME' | |
PHONE = 'PHONE' | |
EMAIL = '[email protected]' | |
PARTY_SIZE = 2 | |
SCHEDULE_RANGE = { :start_time => '19:00', :end_time => '20:30' } |
Copyright (c) 2016, Tom May
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTH
Build a middleman app
http://middlemanapp.com/getting-started/welcome
Add rack-contrib to your Gemfile
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
#################### | |
# from | |
# https://github.com/johnray/Indigo-Nest-Thermostat-Plugin | |
# Copyright (c) 2012, Perceptive Automation, LLC. All rights reserved. | |
# http://www.perceptiveautomation.com | |
import os | |
import sys |
module ApplicationHelper | |
# Display alert box with message or optional block | |
def alert_box(alert_type = :info) | |
haml_tag :div, :class => 'row-fluid' do | |
haml_tag :div, :class => "span9 alert alert-#{alert_type}" do | |
haml_tag :a, '×', :class => 'close', :'data-dismiss' => 'alert' | |
block_given? ? yield : msg | |
end | |
end |
#... | |
module MyProject | |
class Application < Rails::Application | |
config.assets.precompile += %w( ie6.css ie6_portion2.css ie7.css ie7_portion2.css ie8.css ie8_portion2.css ie9.css ie9_portion2.css) | |
#... | |