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
import sys | |
import os | |
import datetime | |
import pyauto | |
from keyhac import * | |
def configure(keymap): |
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
import sys | |
MIN = 1 | |
MAX = 100 | |
CHECKS = "watashihanoone" | |
def main(): | |
argvs = sys.argv |
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 | |
MIGRATE_ENV= | |
if [ -n "$1" ]; then | |
MIGRATE_ENV="--env=$1" | |
fi | |
cd database_name1 | |
migrate up $MIGRATE_ENV |
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
### | |
# Post coverage rate to Slack | |
# | |
# Usage: bash circleci-coverage-slack.sh [simplecov|cobertura|jacoco] | |
# | |
# Required environment variables: | |
# | |
# - CIRCLE_TOKEN: project-specific readonly API token (need to access build artifacts for others) | |
# - SLACK_ENDPOINT: Slack endpoint url | |
# - COVERAGE_FILE: coverage filename (default: .last_run.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
" ------------------------------------ | |
" colorscheme | |
" ------------------------------------ | |
syntax on | |
colorscheme molokai | |
let g:molokai_original = 1 | |
let g:rehash256 = 1 | |
set background=dark | |
" iTerm2で半透明にしているが、vimのcolorschemeを設定すると背景も変更されるため | |
highlight Normal ctermbg=none |
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
1.直接編集する場合 | |
# vim /etc/sysconfig/iptables | |
・以下を追記 | |
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp --dport8080 -j ACCEPT | |
2.コマンドから追加する場合 | |
# iptables -A RH-Firewall-1-INPUT -m state --state NEW -m tcp --dport8080 -j ACCEPT | |
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 lang="ja"> | |
<head> | |
<!-- 以下のコードをCSSの前に記述する --> | |
<link rel="shortcat icon" href="${f:url('/img/favicon.ico')}" type="image/vnd.microsoft.icon"/> | |
<link rel="icon" href="${f:url('/img/favicon.ico')}" type="image/vnd.microsoft.icon" /> | |
</head> | |
</html> |
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 lang="ja"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<title>HTML Sample</title> | |
<link href="css/wb.css" rel="stylesheet" type="text/css"> | |
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
}); |
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 sql | |
import groovy.sql.Sql | |
/** | |
* テーブルデータ入れ替えツール | |
* | |
* 既存のテーブルデータに対して、PKを使って新しいテーブルデータを上書きする。 | |
* 既存テーブルのみに存在するレコードには何も行わない。 | |
* 新規テーブルにのみ存在するレコードは別ファイルにinsert文を作成する。 |
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
/* | |
* 入力フィールドの入力可能文字数をカウントする関数 | |
* ターゲットのフィールドをIDセレクターで選択して使用する。 | |
* ・sizeに入力可能数を設定する | |
* ・optionは文字の装飾に関するオプション(未実装) | |
* | |
* 例) | |
* <input type="text" id="hoge">に対して適用する場合は以下のように書く。 | |
* | |
* $(function(){ |
NewerOlder