- AWSのEC2上でRails+Unicorn+Nginxを実現する
- OSはAmazon Linux AMIを使用する
sudo yum -y install gcc
sudo yum -y install make
sudo yum -y install gcc-c++
| #!/bin/sh | |
| echo "What should the Application be called (no spaces allowed e.g. GCal)?" | |
| read inputline | |
| name=$inputline | |
| echo "What is the url (e.g. https://www.google.com/calendar/render)?" | |
| read inputline | |
| url=$inputline |
| <?php | |
| /** | |
| * X秒前、X分前、X時間前、X日前などといった表示に変換する。 | |
| * 一分未満は秒、一時間未満は分、一日未満は時間、 | |
| * 31日以内はX日前、それ以上はX月X日と返す。 | |
| * X月X日表記の時、年が異なる場合はyyyy年m月d日と、年も表示する | |
| * | |
| * @param <String> $time_db strtotime()で変換できる時間文字列 (例:yyyy/mm/dd H:i:s) | |
| * @return <String> X日前,などといった文字列 | |
| **/ |
| Twitter API 1.1 の現行APIの制限 | |
| (REST API v1.1 Limits per window by resource) | |
| https://dev.twitter.com/docs/rate-limiting/1.1/limits | |
| ・15分辺り最大何回実行できるか | |
| Timelines | |
| GET statuses/mentions_timeline 15回 | |
| GET statuses/user_timeline 180回/user, 300回/application |
| box: wercker/ubuntu12.04-ruby2.0.0 | |
| services: | |
| - wercker/postgresql | |
| build: | |
| steps: | |
| - bundle-install | |
| - rails-database-yml: | |
| service: postgresql |
| ActiveAdmin.register Project do | |
| # Don't forget to add the image attribute (here thumbnails) to permitted_params | |
| controller do | |
| def permitted_params | |
| params.permit project: [:title, :summary, :description, :thumbnail, :date, :url, :client_list, :technology_list, :type_list] | |
| end | |
| end | |
| form do |f| |
| #!/usr/bin/env ruby | |
| # -*- encoding: UTF-8 -*- | |
| require 'simple-rss' | |
| require 'open-uri' | |
| require 'thread' | |
| # - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - # |
| 更新: | 2013-12-08 |
|---|---|
| バージョン: | 0.1.8 |
| 作者: | @voluntas |
| URL: | http://voluntas.github.io/ |
概要