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
FOLLOW THESE TUTORIALS: | |
SET UP UBUNTU | |
1. http://articles.slicehost.com/2008/11/28/ubuntu-intrepid-setup-page-1 | |
2. http://articles.slicehost.com/2008/11/28/ubuntu-intrepid-setup-page-2 | |
SET UP RUBY / RAILS | |
3. http://articles.slicehost.com/2009/1/6/ubuntu-intrepid-ruby-on-rails | |
SET UP APACHE |
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
<input type="text" class="text_field placeholder_content" | |
value="Default value" | |
onfocus=" | |
if (this.className == 'text_field placeholder_content') { | |
if (! this.getAttribute('default_value')) { | |
this.setAttribute('default_value', this.value); | |
} | |
this.value = ''; | |
this.className = 'text_field'; | |
} |
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
background: #999; /* for non-css3 browsers */ | |
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#cccccc', endColorstr='#000000'); /* for IE */ | |
background: -webkit-gradient(linear, left top, left bottom, from(#ccc), to(#000)); /* for webkit browsers */ | |
background: -moz-linear-gradient(top, #ccc, #000); /* for firefox 3.6+ */ | |
/* from http://www.webdesignerwall.com/tutorials/cross-browser-css-gradient/ */ |
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
/* Embossed Text Effect Using CSS */ | |
/* Light Text on a Dark Background */ | |
text-shadow: 0px -1px 0px rgba(0, 0, 0, 0.5); | |
/* Dark Text on a Light Background */ | |
text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.5); |
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
/* Eric Meyer's Reset (http://meyerweb.com/eric/tools/css/reset/) */ | |
/* v1.0 | 20080212 */ | |
/* minified and alphabetized by Charlie Park (http://charliepark.org) */ | |
a, abbr, acronym, address, applet, b, big, blockquote, body, caption, center, cite, code, dd, del, dfn, div, dl, dt, em, fieldset, form, font, h1, h2, h3, h4, h5, h6, html, i, iframe, img, ins, kbd, label, legend, li, object, ol, p, pre, q, s, samp, small, span, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, var{background:transparent;border:0;font-size:100%;margin:0;outline:0;padding:0;vertical-align:baseline} | |
body{line-height:1} | |
ol, ul{list-style:none} | |
blockquote, q {quotes:none} | |
blockquote:before, blockquote:after, q:before, q:after{content: '';content: 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
/* the "dif" and "dif0" and "dif2" are just alternately-shaped examples, using translucent colors so you can see what's going on */ | |
div.qanda p{background:#e3e3e3;border-radius:10px;-moz-border-radius:10px;font-size:13px;line-height:17px;margin-left:240px;padding:10px;position:relative} | |
div.qanda p:before{border-top:25px solid #e3e3e3;border-left:50px solid transparent;content:'';display:block;height:0;position:absolute;bottom:-25px;right:-5px;width:0px;z-index:1} | |
div.qanda p:after{background:#bbb;border-radius:0 0 0 25px;-moz-border-radius:0 0 0 25px;content:'';display:block;height:25px;position:absolute;bottom:-25px;right:-5px;width:25px;z-index:2} | |
div.qanda p.dif:before{border-top:25px solid rgba(255,0,255,0.5);border-left:50px solid transparent;content:'';display:block;height:0;position:absolute;bottom:-25px;right:-5px;width:0px;z-index:1} | |
div.qanda p.dif:after{background:rgba(0,255,255,0.5);border-radius:0 0 0 25px;-moz-border-radius:0 0 0 25px;content:'';display:block;height:25px;position:a |
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
<html> | |
<body> | |
<div style="position:absolute;background:red;padding:40px;top:0;left:0;display:none"> | |
<div style="background:#fff;width:1px;height:20px;position:relative"> | |
<div style="background:#000;height:1px;width:1px;position:absolute;bottom:0;"></div> | |
</div> | |
</div> | |
</body> | |
</html> |
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
# NOTE: This is from an older version of Rails / Ruby. The code should still work, but you'll probably find that Date is much faster than Time now. | |
require 'benchmark' | |
def bmd | |
Benchmark.ms { 1000.times { puts Date.today } } | |
end | |
def bmt | |
Benchmark.ms { 1000.times { puts Time.now } } |
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> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Title</title> | |
<style type="text/css" media="screen"> | |
/* from Eric Meyer: v2.0b1 | 201101 */ | |
a, abbr, acronym, address, applet, article, aside, audio, b, big, blockquote, body, canvas, caption, center, cite, code, dd, del, details, dfn, div, dl, dt, em, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, html, i, iframe, img, ins, kbd, label, legend, li, mark, menu, nav, object, ol, p, pre, q, s, samp, section, small, span, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, time, tr, tt, u, ul, var, video{border:0;font:inherit;font-size:100%;margin:0;outline:0;padding:0;vertical-align:baseline} | |
/* HTML5 display-role reset for older browsers */ | |
article, aside, details, figcaption, figure, |
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
module Jekyll | |
class TagIndex < Page | |
def initialize(site, base, dir, tag) | |
@site = site | |
@base = base | |
@dir = dir | |
@name = 'index.html' | |
self.process(@name) |