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 Strict//EN" | |
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | |
<html> | |
<head> | |
<title>Test for iPhone Events</title> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<meta id="viewport" name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=0;" /> | |
<style type="text/css" media="screen"> | |
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
require 'net/https' | |
class GoogleContactsConnector | |
GOOGLE_AUTH_HOST = 'www.google.com' | |
GOOGLE_AUTH_PORT = 443 | |
GOOGLE_AUTH_PATH = '/accounts/ClientLogin' | |
CONTACTS_BASE_FEED = 'http://www.google.com/m8/feeds/contacts/default/full' | |
CONTACT_GROUPS_BASE_FEED = 'http://www.google.com/m8/feeds/groups/default/full' |
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 Test Page for CSS Style Guide | |
================================== | |
Originally posted on: | |
http://www.sitefromscratch.com/content/html-xhtml-css-testing | |
--> | |
<!-- Sample Content to Plugin to Template --> |
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
################################################################################ | |
# FormStyleHelper | |
# Adds helpful class names to HTML form elements | |
################################################################################ | |
# Overrides commonly-used Rails form methods in order to add descriptive | |
# class names for use in CSS. | |
# | |
# This code is released under the terms of the MIT License | |
# | |
# Author: Kenn Wilson |
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
# A technique borrowed from http://www.igvita.com/2007/03/15/block-helpers-and-dry-views-in-rails/ | |
# Only need this helper once, it will provide an interface to convert a block into a partial. | |
# 1. Capture is a Rails helper which will 'capture' the output of a block into a variable | |
# 2. Merge the 'body' variable into our options hash | |
# 3. Render the partial with the given options hash. Just like calling the partial directly. | |
# | |
def block_to_partial(partial_name, options = {}, &block) | |
options.merge!(:body => capture(&block)) | |
concat(render(:partial => partial_name, :locals => options)) | |
end |
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
/* | |
* SlideMenu | |
* ~~~~~~~~~ | |
* | |
* Version: 1.0.0 | |
* Datum: 29.12.2005 | |
* Autor: Tobias Adam | |
* | |
* Getestet auf: Win IE 6.0 | |
* Win IE 5.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
class Box | |
def parse(title, &block) | |
puts "<box>" | |
puts "<title>#{title}</title>" | |
block.call(Column.new).parse | |
puts "<box>" | |
end | |
end | |
class Column |
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
.box | |
%h2= title | |
.body= block |
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
// Visible for IE <= 7 | |
=ie7-hack($property, $ie7-value) | |
##{$property}: #{$ie7-value} | |
// Visible for IE <= 6 | |
=ie6-hack($property, $ie6-value) | |
_#{$property}: #{$ie6-value} |
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
-# Ist es so im Quelltext? | |
%a(href="/") Selbermachen - Das Heimwerkerlexikon | |
%ul | |
%li | |
Hefte | |
%li | |
Abonnement | |
%li | |
CD-Roms |
OlderNewer