- Windows or Mac
- GR-CITRUS、WA-MIKAN
- マイクロUSBケーブル
- ブレッドボード
- ジャンパワイヤー(オスオス)
- LED
- CDSセル
- 抵抗
- 温湿度センサーモジュール
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
#!/bin/bash | |
curl_check () | |
{ | |
echo "Checking for curl..." | |
if command -v curl > /dev/null; then | |
echo "Detected curl..." | |
else | |
echo "Installing curl..." |
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
class Mailman | |
attr_reader :latitude_s, :longitude_s, :mjma, :depth | |
def initialize(latitude_s, longitude_s, mjma, depth) | |
@latitude_s = latitude_s | |
@longitude_s = longitude_s | |
@mjma = mjma | |
@depth = depth | |
@users = [] |
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
class Parser | |
class Error < StandardError; end | |
def initialize(row) | |
raise ArgumentError unless row.kind_of?(String) | |
CSV.parse(row) do |i| | |
@row_csv = i.map(&:freeze).freeze | |
end | |
raise Error, "Incorrect Format" if @row_csv.size > 16 | |
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
version: 2.0 | |
jobs: | |
checkout_code: | |
docker: | |
- image: circleci/ruby:2.4-node | |
- image: circleci/postgres:9.4.12-alpine | |
working_directory: ~/circleci-demo-workflows | |
steps: | |
- checkout |
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
workflows: | |
version: 2 | |
build-test-and-deploy: | |
jobs: | |
- build | |
- test1: | |
requires: | |
- build | |
- test2: | |
requires: |
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
module EEW | |
module Calculator | |
include Math | |
#PGVから求めた震度を返す。 | |
#IINSTR =2.68+1.72log(PGV) (4<IINSTR<7) | |
def shindo(latitude_s, longitude_s, mjma, depth, latitude_e, longitude_e) | |
d = two_points_distance(latitude_s, longitude_s, latitude_e, longitude_e, depth) | |
mw = mjma_to_mw(mjma) | |
fl = falut_length(mw) |
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
float to_mw(float mjma) | |
{ | |
float mw = mjma - 0.171 ; | |
return mw; | |
} |
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
#include<stdio.h> | |
#include<math.h> | |
float distance(double, double, double, double); | |
int main(void) | |
{ | |
//点P | |
double latitude_s = 35.658581; | |
double longitude_s = 139.745433; |
NewerOlder