更新: | 2021-07-20 |
---|---|
バージョン: | 2021.1 |
作者: | @voluntas |
URL: | https://voluntas.github.io/ |
注意
更新: | 2021-07-20 |
---|---|
バージョン: | 2021.1 |
作者: | @voluntas |
URL: | https://voluntas.github.io/ |
注意
原著者: | Adrian Holovaty |
---|---|
原文: | Why I left Heroku, and notes on my new AWS setup |
金曜日、私は Heroku から Amazon Web Services(AWS) を直接使うように Soundslice を移行しました。私はこの変更ができてとても、そうとても嬉しくて、私がどうやったかということと、もし皆さんが同じような立場だったら何故それを検討すべきかということについて広く伝えたいと思います。
require 'dino' | |
board = Dino::Board.new(Dino::TxRx.new) | |
sensor = Dino::Components::Sensor.new(pin: 'A0', board: board) | |
dataset = [] | |
on_data = Proc.new do |data| | |
dataset << data.to_i | |
if (dataset.size >= 64) |
import java.io.IOException; | |
import javax.servlet.ServletException; | |
import javax.servlet.http.HttpServletRequest; | |
import javax.servlet.http.HttpServletResponse; | |
import org.apache.struts.action.ActionServlet; | |
@SuppressWarnings("serial") | |
public class RestfulActionServlet extends ActionServlet { |
#!/bin/bash | |
# hubot | |
# chkconfig: 345 20 80 | |
# description: hubot | |
# processname: hubot | |
# REFERENCE: http://werxltd.com/wp/2012/01/05/simple-init-d-script-template/ | |
# This script assumes you have a user called "hubot" on your system and that hubot is installed in /opt/hubot |