Skip to content

Instantly share code, notes, and snippets.

View gishi-yama's full-sized avatar

Hiroto YAMAKAWA gishi-yama

View GitHub Profile
@gishi-yama
gishi-yama / docker-compose.yml
Created June 5, 2019 14:04
postgresql_docker-compose
version: "3.7"
services:
db:
image: postgres:11-alpine
volumes:
- pg11-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_INITDB_ARGS: "--no-locale --encoding=UTF-8"
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
</head>
<body>
<p id="wait"><strong>じゅんびちゅう...</strong></p>
2a438a3ecfaf3ee031400356729a637a
https://www.dropbox.com/s/uyv3s4cy2uxvbyp/%E8%A9%95%E4%BE%A1%E3%82%B7%E3%83%BC%E3%83%AB%E5%8F%B0%E7%B4%99%EF%BC%88%E3%82%B2%E3%82%B9%E3%83%88%E7%94%A8%EF%BC%89.docx?dl=0
@gishi-yama
gishi-yama / daily-dump.sh
Last active February 26, 2018 17:58
オンプレ鯖のスクリプト
#!/bin/bash
# -------------
# How to use.
# ------------
# DB vaccum and dump.
# Execute the file as a root.
# If you vacuum and dump "foo" database, execute command :`daily-dump foo`
# ------------
if [ "$1" = "" ]

今日の内容

Java アプリケーション(Spring Bootフレームワーク)でLINE BOTを作ってみる

前準備

ngrokをインストールする

https://ngrok.com/download

@gishi-yama
gishi-yama / Button.html
Created September 7, 2017 03:42
WioNode実習の手本コード
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<script type="text/javascript">
"use strict";
window.onload = function() {
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="UTF-8">
<script type="text/javascript">
"use strict";
// ミリ秒を取得する
@gishi-yama
gishi-yama / hrs1.js
Created June 17, 2016 08:19
OpenCampus_201606
//心拍センサーモジュールを用意し、D2ピンの心拍センサーをeehr2という名前で操作できるようにする
var groveehr = require('jsupm_groveehr');
var ehr2 = new groveehr.GroveEHR(2);
//心拍センサーの動作を開始する
ehr2.clearBeatCounter();
ehr2.initClock();
ehr2.startBeatCounter();
//心拍センサーから1秒ごとに生体情報を収集する
@gishi-yama
gishi-yama / settings.xml
Last active February 12, 2016 00:56
PC-Room Maven Setting
<settings>
<localRepository>/tmp/m2repo</localRepository>
</settings>
var mraa = require("mraa");
var lcd = require('jsupm_i2clcd');
var button = new mraa.Gpio(2);
button.dir(mraa.DIR_IN);
//var led = new mraa.Pwm(3);
//led.period(1);
//led.enable(true);