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
<% nmonth = "" %> | |
<li> | |
<ul class="weeks"> | |
<li>Week</li> | |
<% navigation_weeks.each do |w| %> | |
<li class="<%= (controller_name == "posts" || controller_name == "things") && params[:action]=="index" && params[:week].present? && params[:year].present? && params[:week]==w.week.to_s && params[:year]==w.year.to_s ? 'active' : '' %>"> | |
<%= link_to posts_path(:week => w.week, :year => w.year), :class => 'tip', :title => week_dates(w.week, w.year) do %> | |
<%= w.week %> | |
<% if nmonth != week_month(w.week, w.year) %> | |
<span class="<%= week_month(w.week, w.year).downcase %>"><%= week_month(w.week, w.year) %></span> |
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
<script type="text/javascript"> | |
(function ($) { | |
$(function () { | |
$('ul.dd li').tipsy({gravity: $.fn.tipsy.autoNS}); | |
}); | |
})(jQuery); | |
</script> |
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
<!doctype html> | |
<html> | |
<head> | |
<title>Rikify</title> | |
<style type="text/css"> | |
#button { | |
font-family: Lucida Grande; | |
font-size: 11px; | |
text-decoration: none; | |
font-weight: bold; |
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
ssh -i your_key.pem ec2-user@YOUR_EC2_IP | |
sudo yum-config-manager --add-repo https://openresty.org/package/amazon/openresty.repo | |
sudo yum install openresty | |
sudo yum install openresty-resty | |
# if https://openresty.org/package/amazon/2/x86_64/repodata/repomd.xml: \[Errno 14\] HTTPS Error 404 - Not Found | |
# sudo vim /etc/yum.repos.d/openresty.repo | |
# exchange the $releasever placeholder of the baseurl to “latest” baseurl=https://openresty.org/package/amazon/latest/$basearch. |
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
import Controller from '@ember/controller'; | |
import { reads } from '@ember/object/computed'; | |
export default Controller.extend({ | |
children: reads('model'), | |
actions: { | |
clickChild(child) { | |
child.parent.then(parent => { | |
console.log(parent.name); | |
}); |