Develop using HTML, CSS and Javascript.
For better into development release cycle I'm sending you a Git repository tree. You can follow by log:
class Product < ActiveRecord::Base | |
# Associations | |
has_many :order_items | |
# Attachment | |
AttachmentSizes = { | |
:thumb => [64, 64], | |
:product => [240, 240], | |
:large => [600, 600] | |
} |
<%= form_for(@event) do |f| %> | |
<div class="field"> | |
<%= f.label :show_me_as %><br /> | |
<%= f.radio_button :show_me_as, "available" %> | |
<%= f.radio_button :show_me_as, "busy" %> | |
</div> |
case title | |
when 'War And Peace' | |
puts 'Tolstoy' | |
when 'Romeo And Juliet' | |
puts 'Shakespeare' | |
else | |
puts "Don't know" end | |
author = case title |
def factorial(n) | |
(1..n).reduce(:*) | |
end |
#!/bin/bash | |
# playdeb builds a debian package of the play framework. playdeb downloads | |
# the playframework by itself. You run it by | |
# playdeb.sh <version> <maintainer> | |
# Example: | |
# playdeb.sh 1.2.3 "Denny Colt <d.colt@eisner.qcg>" | |
# | |
# The script has been tested with version 1.2.3. | |
if [ -z $1 ] |
$ -> | |
$('.close').live 'click', (e) -> | |
e.preventDefault() | |
$(this).parent().hide() | |
$('.devise form div i').each -> | |
$this = $(this) | |
text = $this.text() | |
sibling = $this.prev('label') | |
a = $("<a>").text("*").attr('title', text) | |
a.prependTo(sibling) |
/** | |
* | |
* | |
* Copyright 2011 Aaron K. Saunders, Clearly Innovative Inc | |
* | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* <a href="http://www.apache.org/licenses/LICENSE-2.0">http://www.apache.org/licenses/LICENSE-2.0</a> |
import dispatch._ | |
import Http._ | |
import scala.xml._ | |
var http = new Http() | |
var tweets = XML.loadString(http("http://twitter.com/statuses/user_timeline.xml?screen_name=tommorris" as_str)) | |
(tweets \\ "status" \ "text").toList.foreach(x => println(x.text)) |
#!/usr/bin/env ruby | |
# Aside from removing Ruby on Rails specific code this is taken verbatim from | |
# mislav's git-deploy (http://github.com/mislav/git-deploy) and it's awesome | |
# - Ryan Florence (http://ryanflorence.com) | |
# | |
# Install this hook to a remote repository with a working tree, when you push | |
# to it, this hook will reset the head so the files are updated | |
if ENV['GIT_DIR'] == '.' |