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
/** | |
* JSONデータ保管用の簡易Webサーバ | |
*/ | |
//-------------------------------------- | |
// モジュール読み込み | |
//-------------------------------------- | |
const port = 3001; | |
const app = require('express')(); | |
const http = require('http').Server(app); |
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> | |
<meta charset="utf-8"> | |
<title>Hello FireStore</title> | |
<style type="text/css"> | |
button{width:100px; height:30px; margin:5px;} | |
#msg{ display:none; border:1px solid gray; margin:10px; padding:10px; width:600px;} | |
</style> | |
</head> |
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> | |
<meta charset="utf8"> | |
<title>MusicPlayer</title> | |
<style> | |
#wave{ border:1px solid gray; } | |
</style> | |
</head> | |
<body> |
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
#!/bin/bash | |
# | |
# Backup MySQL and Remine files to S3 | |
# | |
# Author: M.Katsube | |
# Date: 2020-09-15 | |
echo 'Redmine Backuper' | |
echo '' |
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
/** | |
* 日本工学院用の便利JSライブラリ | |
* | |
* @license MIT License | |
* @version 1.0.0 | |
* @author M.Katsube <katsubemakito@gmail.com> | |
*/ | |
const neec = { | |
//------------------------------------------- |
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
#------------------------------------- | |
# httpd | |
#------------------------------------- | |
# Wordpressのアクセスログ | |
alias log-blog="sudo cat /var/log/httpd/access_log | grep -v '::1' | grep -v '/wp-' " | |
#------------------------------------- | |
# /var/log/secure | |
# (Ubuntu,Debianは/var/log/auth.logに修正) | |
#------------------------------------- |
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
<?php | |
/** | |
* MySQLに接続しデータを取得する | |
* (エラー処理対応版) | |
* | |
*/ | |
//------------------------------------------------- | |
//準備 | |
//------------------------------------------------- |
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
/** | |
* 翻訳クラス | |
* | |
*/ | |
//-------------------------------- | |
// モジュール | |
//-------------------------------- | |
const p = require('../package.json') |
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
<?php | |
// オセロ盤のデータを入れる配列 | |
$OTHELLO_BOARD = [ | |
[0, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 1, 2, 0, 0, 0], | |
[0, 0, 0, 2, 1, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0], | |
[0, 0, 0, 0, 0, 0, 0, 0], |
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
<?php | |
//----------------------------------- | |
// 定数 | |
//----------------------------------- | |
define('TETRIS_WIDTH', 6); // 横幅 | |
define('TETRIS_HEIGHT', 8); // 高さ | |
//----------------------------------- | |
// グローバル変数 | |
//----------------------------------- |