This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
section.three-column-grid { | |
clear: both; | |
width: 960px; | |
@include clearfix; | |
> section { | |
float: left; | |
padding: 0 10px; | |
width: 300px; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# The project root directory | |
$root = ::File.dirname(__FILE__) | |
# Common Rack Middleware | |
use Rack::ShowStatus # Nice looking 404s and other messages | |
use Rack::ShowExceptions # Nice looking errors | |
# | |
# From Rack::DirectoryIndex: | |
# https://github.com/craigmarksmith/rack-directory-index/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class HelloWorld | |
def call(env) | |
[200, {"Content-Type" => "text/plain"}, ["Hello world!"]] | |
end | |
end | |
run HelloWorld.new |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8" /> | |
<title></title> | |
<link rel="stylesheet" href="/stylesheets/rainbow.css" /> | |
</head> | |
<body> | |
<div class="rainbow"></div> | |
<div class="rainbow"></div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#\ -p 4000 | |
gem 'activesupport' | |
gem 'serve' | |
require 'serve' | |
require 'serve/rack' | |
# The project root directory | |
root = ::File.dirname(__FILE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=two-column($width, $gutter) | |
$colwidth: ($width - $gutter) / 2 | |
+clearfix | |
margin-left: -($gutter / 2) | |
margin-right: -($gutter / 2) | |
.column_1, .column_2 | |
float: left | |
padding-left: $gutter / 2 | |
padding-right: $gutter / 2 | |
width: $colwidth |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
=style-link($link-color: blue, $visited-color: purple, $hover-color: red) | |
&:link | |
color: $link-color | |
text-decoration: underline | |
&:visited | |
color: $visited-color | |
&:hover | |
color: $hover-color | |
text-decoration: none |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#\ -p 4000 | |
PublicDir = File.join(Dir.pwd, 'public') | |
module Rack | |
# Route directory URI's to index file. | |
class DirectoryIndex | |
def initialize(app, index='index.html') | |
@app = app | |
@index = [index].flatten |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<p> | |
<a href="/signup/" class="multiline_button blue" style="width: 245px"> | |
<big>Start Free Trial</big> | |
<small>30-days free! Signup in 60 seconds</small> | |
</a> | |
</p> | |
<p> | |
<a href="/signup/" class="multiline_button brown" style="width: 245px"> | |
<big>Start Free Trial</big> |