- file名 小文字のみ使用する。 [単語の区切りはハイフン]
- class名 アッパーキャメルケース [複合語の先頭を,大文字で書き始める] ex) ClassNameIsHoge
- 変数,プロパティ ローワーキャメルケース [複合語の先頭を,小文字で書き始める] ex) varNameIsFuga
- 定数 すべて大文字(単語の区切りはアンダースコア) ex) TIME_LIMIT
- Object/Array キーは基本的にクオートでくくらない
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
#!/usr/bin/env python3 | |
# ** | |
# * リモートでbashと繋ぐPythonコード | |
# * | |
# * File name : remoteShell.py | |
# * $ ./remoteShell.py | |
# * | |
# * Copyright (c) 2017, Hayato Doi | |
# */ |
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
/** | |
* printf()関数を使わずに標準出力をする。 | |
* | |
* File name : prg_printf1.c | |
* | |
* $ gcc prg_printf1.c -o prg_printf1 -Wall | |
* $ ./prg_printf1 | |
* | |
* Copyright (c) 2017, Hayato Doi | |
* */ |
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
/* | |
* スクロールさせるプログラム | |
* =============================== | |
* File name : Scroll.js | |
* Author : Hayato Doi | |
* License : CC0 | |
* =============================== | |
* | |
* ------------------------------- | |
* @moveUp 上にスクロールさせる |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
) | |
func main() { | |
// Validation Check _start |
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
# nginxのインストール | |
pacman -S nginx | |
# nginxの起動 | |
systemctl start nginx | |
# 起動時に起動するように設定 | |
systemctl enable nginx |
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
# パッケージのアップデート | |
pacman -Syu |
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
# ユーザ作成 | |
useradd "new user name" | |
# パスワードの設定 | |
passwd "new user name" | |
# rootログインの禁止 | |
echo "PermitRootLogin no" >> /etc/ssh/ssh_config | |
# sshの再起動 | |
systemctl restart sshd.service |
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
#!/usr/bin/env ruby | |
# Terminalに文字をピコピコ出すプログラム | |
# File name : terminal-picopico.rb | |
# Author : Hayato Doi | |
# license : CC0 | |
# | |
# ================================================================= | |
# | |
# @putsSleep() 引数に与えられた文字列を半秒表示して,消す. |
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
#!/usr/bin/env node | |
/* File name : syaroshikoBOT.js | |
* Author : Hayato Doi | |
* Last Update : 2017/2/7 | |
* Since : 2017/2/7 | |
* Outline : しゃろしこ!? | |
* node.js version : v6.9.5 | |
* Using the libraries : https://www.npmjs.com/package/slackbots | |
* license : CC0-1.0 | |
* Copyright (c) 2017, Hayato Doi |