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
<?xml version="1.0"?> | |
<xsl:stylesheet | |
version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:ex="http://exslt.org/dates-and-times" | |
extension-element-prefixes="ex"> | |
<xsl:output | |
method="xml" |
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 PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8" /> | |
<title>Pixarea XHTML Transitional boilerplate</title> | |
<meta name="title" content="" /> | |
<meta name="description" content="" /> | |
<meta name="keywords" content="" /> | |
<meta name="author" content="" /> |
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
@mixin two-columns($prop1, $prop2, $col1 = '.main', $col2 = '.sub'){ | |
$totalwidth : $prop1 + $prop2; | |
#{$col1} { | |
@include column(ceil($blueprint-grid-columns * $prop1 / $totalwidth )); | |
} | |
#{$col2} { | |
@include column(floor( $blueprint-grid-columns * (1 - $prop1/($prop1 + $prop2))), true); | |
} | |
} |
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
# General Apache options | |
AddHandler fcgid-script .fcgi | |
AddHandler cgi-script .cgi | |
Options +FollowSymLinks +ExecCGI | |
# If you don't want Rails to look in certain directories, | |
# use the following rewrite rules so that Apache won't rewrite certain requests | |
# | |
# Example: | |
# RewriteCond %{REQUEST_URI} ^/notrails.* |
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
# in controller: | |
def update | |
# (.....) | |
@categories = Category.all | |
checked_categories = [] | |
checked_params = params[:category_list] || [] |
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
# source: http://tech.patientslikeme.com/2010/05/12/manage-your-css3-tricks-with-sass-mixins/ | |
# complete mixin: | |
=box_gradient(!top,!bottom) | |
background-image = “-moz-linear-gradient(top, #{!top}, #{!bottom})” | |
background-image = “-webkit-gradient(linear,left top,left bottom,color-stop(0, #{!top}),color-stop(1, #{!bottom}))” | |
-ms-filter = “progid:DXImageTransform.Microsoft.gradient(startColorStr=’#{!top}’, EndColorStr=’#{!bottom}’)” | |
# isolated: | |
=box_gradient_ie67(!top,!bottom) |
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
div { | |
-moz-box-shadow: black 1px 1px 15px 0; | |
-webkit-box-shadow: black 1px 1px 15px 0; | |
-o-box-shadow: black 1px 1px 15px 0; | |
box-shadow: black 1px 1px 15px 0; | |
} | |
div { | |
-moz-border-radius: 10px; |
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> |
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
ActiveRecord::Schema.define(:version => 20101119175732) do | |
create_table "categories", :force => true do |t| | |
t.string "name" | |
t.string "shortname" | |
t.datetime "created_at" | |
t.datetime "updated_at" | |
end | |
create_table "categories_posts", :id => false, :force => true do |t| |
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 ToHaml | |
def initialize(path) | |
@path = path | |
end | |
def convert! | |
Dir["#{@path}/**/*.erb"].each do |file| | |
`html2haml -rx #{file} #{file.gsub(/\.erb$/, '.haml')}` | |
end | |
end |
OlderNewer