Skip to content

Instantly share code, notes, and snippets.

**TODO: make gem for this**
This was tested using Rails 3.2 and Rails 4.0 on Ruby 2.0.0.
# Bower
1. Set the install directory for Bower components:
```js
// .bowerrc
@justonefixxxx
justonefixxxx / library.xsl
Created January 14, 2013 10:27
2013-01-14
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="html" />
<xsl:template match="/">
<html>
<body>
<header id="header">
<h1>library</h1>
</header>
<section id="middle">
<div id="container">
@justonefixxxx
justonefixxxx / library.xsd
Created January 14, 2013 10:27
2013-01-14
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="library" type="libraryType" />
<xs:complexType name="libraryType">
<xs:sequence>
<xs:element name="book" type="bookType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
@justonefixxxx
justonefixxxx / library.xml
Created January 14, 2013 10:26
2013-01-14
<?xml version="1.0" encoding="utf-8"?>
<library xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="library.xsd">
<book id="1">
<author>Martin Robinson</author>
<title>The Art of Dead Space</title>
<description>The Art of Dead Space is the ultimate gallery of the Dead Space universe, with over 300 images including sketches and concept art by acclaimed artists from breathtaking spacescapes to terrifying necromorphs, character designs to creating a religion, plus commentary from the artists themselves.
Includes art from Dead Space, Dead Space: Extraction, Dead Space: Ignition, and Dead Space 2.</description>
<release>2013-02-05</release>
</book>
@justonefixxxx
justonefixxxx / style.css
Created January 14, 2013 10:25
2013-11-14
* {
margin: 0;
padding: 0;
}
header, nav, section, article, aside, footer {
display: block;
}
body {
font-size: 12px;
font-family: sans-serif;
@justonefixxxx
justonefixxxx / index.html
Created January 14, 2013 10:25
2013-11-14
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header id="header">
<h1>library</h1>
</header>
@justonefixxxx
justonefixxxx / library.xml
Created January 11, 2013 10:28
2013-01-11
<?xml version="1.0" encoding="utf-8"?>
<library xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="library.xsd">
<book id="1">
<author>Martin Robinson</author>
<title>The Art of Dead Space</title>
<description>The Art of Dead Space is the ultimate gallery of the Dead Space universe, with over 300 images including sketches and concept art by acclaimed artists from breathtaking spacescapes to terrifying necromorphs, character designs to creating a religion, plus commentary from the artists themselves.
Includes art from Dead Space, Dead Space: Extraction, Dead Space: Ignition, and Dead Space 2.</description>
<release>2013-02-05</release>
</book>
@justonefixxxx
justonefixxxx / library.xsd
Created January 11, 2013 10:27
2013-01-11
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="library" type="libraryType" />
<xs:complexType name="libraryType">
<xs:sequence>
<xs:element name="book" type="bookType" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<?xml version="1.1" encoding="utf-8"?>
<!DOCTYPE library SYSTEM "library.dtd">
<library>
<book id="1">
<author>Martin Robinson</author>
<title>The Art of Dead Space</title>
<description>The Art of Dead Space is the ultimate gallery of the Dead Space universe, with over 300 images including sketches and concept art by acclaimed artists from breathtaking spacescapes to terrifying necromorphs, character designs to creating a religion, plus commentary from the artists themselves. Includes art from Dead Space, Dead Space: Extraction, Dead Space: Ignition, and Dead Space 2.</description>
<release>February 5, 2013</release>
</book>
<?xml version="1.1" encoding="utf-8"?>
<!ELEMENT library (book)*>
<!ELEMENT book (author|title|description|release)*>
<!ATTLIST book
id CDATA #REQUIRED>
<!ELEMENT author (#PCDATA)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT description (#PCDATA)>
<!ELEMENT release (#PCDATA)>