Skip to content

Commit aec5d58

Browse files
author
James
committed
New Directory
0 parents  commit aec5d58

File tree

69 files changed

+1674
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+1674
-0
lines changed

.bundle/config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
BUNDLE_WITHOUT: production

Gemfile

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
source 'http://rubygems.org'
2+
3+
gem 'rails', '3.2.14'
4+
5+
# Bundle edge Rails instead:
6+
# gem 'rails', :git => 'git://github.com/rails/rails.git'
7+
8+
# for Heroku deployment - as described in Ap. A of ELLS book
9+
group :development, :test do
10+
gem 'sqlite3'
11+
gem 'debugger'
12+
end
13+
group :production do
14+
gem 'pg'
15+
end
16+
17+
# Gems used only for assets and not required
18+
# in production environments by default.
19+
group :assets do
20+
gem 'therubyracer'
21+
gem 'sass-rails'
22+
gem 'coffee-rails'
23+
gem 'uglifier'
24+
end
25+
26+
gem 'jquery-rails'
27+
28+
# Use unicorn as the web server
29+
# gem 'unicorn'
30+
31+
# Deploy with Capistrano
32+
# gem 'capistrano'
33+
34+
# To use debugger
35+
gem 'haml'

Gemfile.lock

+129
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
GEM
2+
remote: http://rubygems.org/
3+
specs:
4+
actionmailer (3.2.14)
5+
actionpack (= 3.2.14)
6+
mail (~> 2.5.4)
7+
actionpack (3.2.14)
8+
activemodel (= 3.2.14)
9+
activesupport (= 3.2.14)
10+
builder (~> 3.0.0)
11+
erubis (~> 2.7.0)
12+
journey (~> 1.0.4)
13+
rack (~> 1.4.5)
14+
rack-cache (~> 1.2)
15+
rack-test (~> 0.6.1)
16+
sprockets (~> 2.2.1)
17+
activemodel (3.2.14)
18+
activesupport (= 3.2.14)
19+
builder (~> 3.0.0)
20+
activerecord (3.2.14)
21+
activemodel (= 3.2.14)
22+
activesupport (= 3.2.14)
23+
arel (~> 3.0.2)
24+
tzinfo (~> 0.3.29)
25+
activeresource (3.2.14)
26+
activemodel (= 3.2.14)
27+
activesupport (= 3.2.14)
28+
activesupport (3.2.14)
29+
i18n (~> 0.6, >= 0.6.4)
30+
multi_json (~> 1.0)
31+
arel (3.0.2)
32+
builder (3.0.4)
33+
coffee-rails (3.2.2)
34+
coffee-script (>= 2.2.0)
35+
railties (~> 3.2.0)
36+
coffee-script (2.2.0)
37+
coffee-script-source
38+
execjs
39+
coffee-script-source (1.6.3)
40+
columnize (0.3.6)
41+
debugger (1.6.2)
42+
columnize (>= 0.3.1)
43+
debugger-linecache (~> 1.2.0)
44+
debugger-ruby_core_source (~> 1.2.3)
45+
debugger-linecache (1.2.0)
46+
debugger-ruby_core_source (1.2.3)
47+
erubis (2.7.0)
48+
execjs (2.0.2)
49+
haml (4.0.3)
50+
tilt
51+
hike (1.2.3)
52+
i18n (0.6.5)
53+
journey (1.0.4)
54+
jquery-rails (3.0.4)
55+
railties (>= 3.0, < 5.0)
56+
thor (>= 0.14, < 2.0)
57+
json (1.8.0)
58+
libv8 (3.16.14.3)
59+
mail (2.5.4)
60+
mime-types (~> 1.16)
61+
treetop (~> 1.4.8)
62+
mime-types (1.25)
63+
multi_json (1.8.0)
64+
pg (0.17.0)
65+
polyglot (0.3.3)
66+
rack (1.4.5)
67+
rack-cache (1.2)
68+
rack (>= 0.4)
69+
rack-ssl (1.3.3)
70+
rack
71+
rack-test (0.6.2)
72+
rack (>= 1.0)
73+
rails (3.2.14)
74+
actionmailer (= 3.2.14)
75+
actionpack (= 3.2.14)
76+
activerecord (= 3.2.14)
77+
activeresource (= 3.2.14)
78+
activesupport (= 3.2.14)
79+
bundler (~> 1.0)
80+
railties (= 3.2.14)
81+
railties (3.2.14)
82+
actionpack (= 3.2.14)
83+
activesupport (= 3.2.14)
84+
rack-ssl (~> 1.3.2)
85+
rake (>= 0.8.7)
86+
rdoc (~> 3.4)
87+
thor (>= 0.14.6, < 2.0)
88+
rake (10.1.0)
89+
rdoc (3.12.2)
90+
json (~> 1.4)
91+
ref (1.0.5)
92+
sass (3.2.11)
93+
sass-rails (3.2.6)
94+
railties (~> 3.2.0)
95+
sass (>= 3.1.10)
96+
tilt (~> 1.3)
97+
sprockets (2.2.2)
98+
hike (~> 1.2)
99+
multi_json (~> 1.0)
100+
rack (~> 1.0)
101+
tilt (~> 1.1, != 1.3.0)
102+
sqlite3 (1.3.8)
103+
therubyracer (0.12.0)
104+
libv8 (~> 3.16.14.0)
105+
ref
106+
thor (0.18.1)
107+
tilt (1.4.1)
108+
treetop (1.4.15)
109+
polyglot
110+
polyglot (>= 0.3.1)
111+
tzinfo (0.3.37)
112+
uglifier (2.2.1)
113+
execjs (>= 0.3.0)
114+
multi_json (~> 1.0, >= 1.0.2)
115+
116+
PLATFORMS
117+
ruby
118+
119+
DEPENDENCIES
120+
coffee-rails
121+
debugger
122+
haml
123+
jquery-rails
124+
pg
125+
rails (= 3.2.14)
126+
sass-rails
127+
sqlite3
128+
therubyracer
129+
uglifier

README.md

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Homework 2 - CS 169.1x SaaS
2+
==================
3+
4+
THIS REPOSITORY IS DEPRECATED AND WILL SOON BE DELETED. DO NOT USE IT.
5+
=======================================================================
6+
7+
Prior to September 2013, this code was used in UC Berkeley CS169 and/or
8+
BerkeleyX CS169.1x/.2x on edX.
9+
10+
Effective September 2013, we are revising, refactoring and improving the
11+
homeworks and autograders. THEREFORE:
12+
13+
* The code in this repo may not work as described in the course, or at
14+
all.
15+
16+
* We will be ignoring pull requests to this repo until it is deleted.
17+
18+
* We will not be answering ANY questions related to this repo. It is a
19+
non-repo for us. We have disowned it. It does not exist. It has never
20+
existed.
21+
22+
* We will silently ignore all inquiries related to this repo r to any
23+
forks or clones of it.
24+
25+
* You will not get any kind of partial credit in the course if your
26+
homework has errors due to differences between the code in this repo and
27+
the code used in the course. We will not help you debug homework
28+
problems arising from the use of obsolete materials such as the contents of
29+
this repo.
30+
31+
We will distribute homework "skeleton" code along with each homework
32+
that has been tested with the current autograders. That code, and ONLY
33+
that code, should be used as the basis of your homework assignments.
34+
35+
Thanks - the CS169 course authors
36+
37+
More info at https://courses.edx.org/courses/BerkeleyX/CS-169.1x/2013_Summer/courseware/Week_3x/Homework_2/

Rakefile

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/usr/bin/env rake
2+
# Add your own tasks in files placed in lib/tasks ending in .rake,
3+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
4+
5+
require File.expand_path('../config/application', __FILE__)
6+
7+
Rottenpotatoes::Application.load_tasks

app/assets/images/rails.png

6.49 KB
Loading

app/assets/javascripts/application.js

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// This is a manifest file that'll be compiled into including all the files listed below.
2+
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
3+
// be included in the compiled file accessible from http://example.com/assets/application.js
4+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
5+
// the compiled file.
6+
//
7+
//= require jquery
8+
//= require jquery_ujs
9+
//= require_tree .
+64
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
html, body {
2+
margin: 0;
3+
padding: 0;
4+
background: White;
5+
color: DarkSlateGrey;
6+
font-family: Tahoma, Verdana, sans-serif;
7+
font-size: 10pt;
8+
}
9+
div#main {
10+
margin: 0;
11+
padding: 0 20px 20px;
12+
}
13+
a {
14+
background: transparent;
15+
color: maroon;
16+
text-decoration: underline;
17+
font-weight: bold;
18+
}
19+
h1 {
20+
color: maroon;
21+
font-size: 150%;
22+
font-style: italic;
23+
display: block;
24+
width: 100%;
25+
border-bottom: 1px solid DarkSlateGrey;
26+
}
27+
h1.title {
28+
margin: 0 0 1em;
29+
padding: 10px;
30+
background-color: orange;
31+
color: white;
32+
border-bottom: 4px solid gold;
33+
font-size: 2em;
34+
font-style: normal;
35+
}
36+
table#movies {
37+
margin: 10px;
38+
border-collapse: collapse;
39+
width: 100%;
40+
border-bottom: 2px solid black;
41+
}
42+
table#movies th {
43+
border: 2px solid white;
44+
font-weight: bold;
45+
background-color: wheat;
46+
}
47+
table#movies th, table#movies td {
48+
padding: 4px;
49+
text-align: left;
50+
}
51+
table#movies th.hilite{
52+
background-color: yellow;
53+
}
54+
#notice #warning {
55+
background: rosybrown;
56+
margin: 1em 0;
57+
padding: 4px;
58+
}
59+
form label {
60+
display: block;
61+
line-height: 25px;
62+
font-weight: bold;
63+
color: maroon;
64+
}
+61
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
html, body {
2+
margin: 0;
3+
padding: 0;
4+
background: White;
5+
color: DarkSlateGrey;
6+
font-family: Tahoma, Verdana, sans-serif;
7+
font-size: 10pt;
8+
}
9+
div#main {
10+
margin: 0;
11+
padding: 0 20px 20px;
12+
}
13+
a {
14+
background: transparent;
15+
color: maroon;
16+
text-decoration: underline;
17+
font-weight: bold;
18+
}
19+
h1 {
20+
color: maroon;
21+
font-size: 150%;
22+
font-style: italic;
23+
display: block;
24+
width: 100%;
25+
border-bottom: 1px solid DarkSlateGrey;
26+
}
27+
h1.title {
28+
margin: 0 0 1em;
29+
padding: 10px;
30+
background-color: orange;
31+
color: white;
32+
border-bottom: 4px solid gold;
33+
font-size: 2em;
34+
font-style: normal;
35+
}
36+
table#movies {
37+
margin: 10px;
38+
border-collapse: collapse;
39+
width: 100%;
40+
border-bottom: 2px solid black;
41+
}
42+
table#movies th {
43+
border: 2px solid white;
44+
font-weight: bold;
45+
background-color: wheat;
46+
}
47+
table#movies th, table#movies td {
48+
padding: 4px;
49+
text-align: left;
50+
}
51+
#notice #warning {
52+
background: rosybrown;
53+
margin: 1em 0;
54+
padding: 4px;
55+
}
56+
form label {
57+
display: block;
58+
line-height: 25px;
59+
font-weight: bold;
60+
color: maroon;
61+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
class ApplicationController < ActionController::Base
2+
protect_from_forgery
3+
end

0 commit comments

Comments
 (0)