This file contains 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
# AWS S3 bucket for static hosting | |
resource "aws_s3_bucket" "website" { | |
bucket = "${var.website_bucket_name}" | |
acl = "public-read" | |
tags { | |
Name = "Website" | |
Environment = "production" | |
} |
This file contains 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
Rails.application.eager_load! | |
all_routes = Rails.application.routes.routes | |
controllers=ApplicationController.descendants | |
#controller_names = controllers.collect {|c| c.to_s.underscore.sub('_controller','') } | |
controller_names={} | |
controllers.each {|c| | |
controller_names[c.to_s]=c.to_s.underscore.sub('_controller','') | |
}.size |
This file contains 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
Btw, I have recently started a small code battle upon an easy task. | |
The goal is to improve your self estimation skill and to code something minimalistic in the shortest time possible. | |
If you want to join the battle, just do the following: | |
1) Check the briefing: "Create a webservice that is generating the 'Che Guevara Effect' on an uploaded picture" | |
I have already done my job and implemented an working version of this here: http://che-guevara-fy.heroku.com/ | |
2) You can accept the challenge by giving an upfront estimate on how much time you think is needed to implement and deploy the briefing. |