- Place: Koombea SAS, Calle 85 #53-14
- Date and Time: Saturday, july 7th, 8:00am-5:00pm
- Duration: One day workshop
- Lecturers: Wayner Barrios and Jorge Martinez
- Repository: https://github.com/PyBAQ/taller-vision-por-computadora (WIP)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# RSpec.configure do |config| | |
# ... | |
$spec_files = Set.new | |
config.before(:each) do |example| | |
$spec_files << example.metadata[:file_path] | |
end | |
# keep logging each run spec file in spec_files.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<head> | |
<script type="text/javascript"> | |
window.iFrameResizer = { | |
readyCallback: function(){ | |
parentIFrame.sendMessage(documentHeight()) | |
} | |
} | |
function documentHeight() { | |
return Math.max( | |
document.documentElement.clientHeight, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ApplicationController < ActionController::Base | |
prepend_before_filter :log_user | |
def log_user | |
begin | |
if current_user | |
Rails.logger.info "#{controller_name}##{action_name} triggered by user id ##{current_user.id}, params: #{params.inspect}" | |
else | |
Rails.logger.info "#{controller_name}##{action_name} triggered by not-signed-in user, params: #{params.inspect}" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
for fl in `find . -name *.rhtml`; do mv ${fl} ${fl/.rhtml/.html.erb}; done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# == Schema Information | |
# | |
# Table name: events | |
# | |
# id :integer not null, primary key | |
# title :string(255) | |
# user_id :integer | |
# created_at :datetime not null | |
# updated_at :datetime not null | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Factory.define :item do |f| | |
include ActionDispatch::TestProcess | |
f.name "Macbook Pro 15" | |
f.price_in_dollars 1500 | |
f.photo Rack::Test::UploadedFile.new(File.join(Rails.root, 'spec', 'support', 'rails.png'), 'image/png') | |
end |