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/sh | |
BRANCH=`git rev-parse --abbrev-ref HEAD` | |
if test $BRANCH = 'master'; then | |
echo 'Commiting to master is forbidden.' | |
exit 1 | |
fi |
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
print "Hello world.\n" |
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
<?php | |
echo "Hello world.\n"; |
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 | |
APP_DIRS=('/path/to/dir' '/path/2/dir') | |
for app_dir in ${APP_DIRS[@]} | |
do | |
cd $app_dir | |
number_of_changed=`git ls-files --modified | wc -l` | |
if test $number_of_changed -gt 0 ; then | |
curl -F text="$app_dir} 以下の${number_of_changed}個のファイルに変更がありました。確認してください。" -F channel= -F token='' https://slack.com/api/chat.postMessage | |
fi |
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
void((function() { | |
var editJikoku = function (jikoku) { | |
return function () { | |
var inputForm = jQuery(this); | |
if (inputForm.parents('tr').css('background-color') != 'transparent') { | |
return; | |
} | |
if (inputForm.val() != jikoku) { | |
inputForm.val(jikoku); | |
inputForm.css('background-color', '#fcc'); |
OlderNewer