Introduccion a la Ingenieria - Prof. Marcelo Mendoza
- Alfonso Cabargas M. / ROL USM: 201373531-2
- John Bidwell B. / ROL USM: 201373521-5
display: ; | |
visibility: ; | |
float: ; | |
clear: ; | |
position: ; | |
top: ; | |
right: ; | |
bottom: ; | |
left: ; |
git fetch origin | |
git checkout your-branch | |
git push origin your-branch:spike-your-branch | |
git branch your-branch-backup | |
git rebase master | |
rspec | |
git push origin your-branch --force | |
git checkout master | |
git merge your-branch --no-ff | |
rspec |
<div class="row widgets"> | |
<div class="col-md-12 col-xs-12"> | |
<% @items.each do |item| %> | |
<div class="col-md-4 col-xs-4"> | |
<%= image_tag(item.marketing_image) %> | |
<p><%= item.description %></p> | |
<p><%= link_to "Ver más", spree.root_path, :class => "cmr-link"%></p> | |
</div> | |
<% end %> | |
</div> |
before_filter :authenticate | |
protected | |
def authenticate | |
authenticate_or_request_with_http_basic do |username, password| | |
username == "foo" && password == "bar" | |
end | |
end |
<% content_for :page_title do %> | |
<%= Spree.t(:listing_featured_items) %> | |
<% end %> | |
<% content_for :page_actions do %> | |
<li> | |
<%= button_link_to Spree.t(:new_item), new_admin_item_path, :icon => 'icon-plus', :id => 'admin_new_item' %> | |
</li> | |
<% end if can? :edit, Spree::Item.new %> |
# Run Coverage report | |
require 'simplecov' | |
SimpleCov.start do | |
add_filter 'spec/dummy' | |
add_group 'Controllers', 'app/controllers' | |
add_group 'Helpers', 'app/helpers' | |
add_group 'Mailers', 'app/mailers' | |
add_group 'Models', 'app/models' | |
add_group 'Views', 'app/views' | |
add_group 'Libraries', 'lib' |
app/views/spree/admin/items/index.html.erb | |
config/routes.rb | |
spec/views/spree/admin/items/index.html.erb_spec.rb | |
spec/spec_helper.rb |
Introduccion a la Ingenieria - Prof. Marcelo Mendoza
require 'rubygems' | |
require 'roo' | |
s = Roo::Excelx.new("../Hacking/Rails/mpnr/data/Ford.xlsx") #Open the spreadsheet | |
s.default_sheet = s.sheets.first #Select the page to work with | |
att_col = s.column(1) #First Column (Attributes Hierachy) | |
#Gives you a count of cols & rows | |
col_number = s.last_column() |
#olaquehace { | |
width: 100px; height: 200px; | |
background: #fff; | |
border-color: #000; | |
border-style: solid; | |
border-width: 2px 100px 2px 2px; | |
border-radius: 100%; | |
position: relative; | |
} |