DAY 1 - Part 3
A Pen by Tim Morgan on CodePen.
A Pen by Tim Morgan on CodePen.
<div id="root"></div> | |
<a id="youtube" target="_blank" href="https://youtu.be/kBT90nwUb_o"> | |
<span>Learn SVGs</span> | |
</a> | |
<div id="youtube-card"> | |
Learn SVG through 24 examples | |
</div> | |
<script> |
require_relative 'ds' | |
class Computer | |
LIMIT = 100 # if price exceeds this, the description will be flagged | |
FORMAT = "%s%s: %s ($%d)" # flag, name, info, price. | |
def initialize(computer_id, data_source) | |
@id = computer_id | |
@data_source = data_source | |
end |
diff --git a/lib/rack/chunked.rb b/lib/rack/chunked.rb | |
index 280d89d..dddf969 100644 | |
--- a/lib/rack/chunked.rb | |
+++ b/lib/rack/chunked.rb | |
@@ -19,7 +19,7 @@ module Rack | |
STATUS_WITH_NO_ENTITY_BODY.include?(status) || | |
headers['Content-Length'] || | |
headers['Transfer-Encoding'] | |
- [status, headers.to_hash, body] |
# Gemfile | |
source :gemcutter | |
gem 'rails', '3.0.0.beta3' |
## Create a hosted hobo app on heroku ... | |
## This 'rails template' replicates the 'hobo' command, and then | |
## prepares the app for the heroku server. | |
## It completes by pushing the app to heroku. | |
## Issues: | |
## I package up the hobo gems in my vendor/gems tree, so heroku gets them | |
## not using heroku '.gem' file | |
## But then, the path in 'Rakefile' for 'hobo/rails/tasks' is not found | |
## so I move those tasks into the app's 'lib/tasks' directory. |
#!/usr/bin/env ruby | |
require 'config/environment' | |
puts <<-__MIGRATE | |
ActiveRecord::Schema.define do | |
__MIGRATE | |
join_tables = Hash.new | |
Dir.glob( './app/models/**/*' ).map { |f| # file name |
### This is a template file for generating the GVMP rails-application | |
# ================ | |
log '== PATCH ' | |
# ================ | |
FileUtils.rm 'public/index.html' rescue nil | |
gsub_file 'app/controllers/application_controller.rb', /#\s*(filter_parameter_logging :password)/, '\1' | |
# layout, with the active_scaffold included. |
## This is the template to generate HOBO app | |
# you can change the name of this model | |
user_model = "user" | |
# ================ | |
log '== PATCH ' | |
# ================ | |
FileUtils.rm 'public/index.html' rescue nil |
html, body { | |
background: white; background-image: url(/images/body_bg.png); background-repeat: repeat-y; | |
color: #444; | |
font: 14px "Helvetica Neue", "Helvetica", Arial, sans-serif; line-height: 21px; | |
} | |
body, .login-page, .forgot-password-page { | |
width: 100%; margin: 0; | |
} | |
p {margin: 14px 0;} | |
h1, h2, h3, h4, h5, h6 {font-family: "Lucida Grande", "Trebuchet MS", Arial, sans-serif; font-weight: bold; color: black;} |