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
Host clockwork | |
HostName 54.187.86.70 | |
User ubuntu | |
IdentityFile ~/.ssh/my_ec2_private_key.pem |
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
<%= link_to('Logout x', destroy_user_session_path, :method => :delete) %> |
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
welcome <%= current_user.email %> |
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
before_action :authenticate_user!, only: [:index] |
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
def index | |
@museums = Museum.all | |
# @museums = Museum.search_for(params[:q]) | |
# go into the models and rails.rb in order to allow the .search_for method to be available in a sort of whitelisted way | |
end | |
def new | |
@museum = Museum.new | |
end |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Artist</title> | |
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | |
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | |
<%= csrf_meta_tags %> | |
</head> | |
<body> |
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
<script> | |
colors = ["aquamarine", "lavender", "blue"] | |
$(".col-md-4").click(function() { | |
var current_color = $(this).data("color-index"); | |
console.log(current_color); | |
current_color++; | |
if (current_color > colors.length - 1){ | |
current_color = 0; | |
}; | |
$(this).css("background", colors[current_color]); |
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
<div class="row"> | |
<div class="col-md-4" style="background: aquamarine;" data-color- index="0">.col-md-4</div> | |
<div class="col-md-4" style="background: lavender;" data-color- index="1">.col-md-4</div> | |
<div class="col-md-4" style="background: blue;" data-color-index="2">. col-md-4</div> | |
</div> |
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
.other-actions a:before { | |
font-family: "Font Awesome"; | |
font-weight: normal; | |
margin: 0px 10px 0px -10px; | |
display: inline-block; | |
line-height: 1; | |
} | |
.other-donate:before { | |
content: ""; |
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
\[(.*?)\] |