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 | |
$json = 'here'; | |
$rankingArray = json_decode($json, true); | |
rsort($rankingArray); | |
$n100 = 0; $n10 = 0; | |
foreach ($rankingArray as $user) { |
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 | |
set -e | |
#バックアップフォルダパス | |
dirpath='/mnt/s3' | |
#ファイル名 | |
filename=`date +%y%m%d` |
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 | |
set -e | |
#バックアップフォルダパス | |
dirpath='/mnt/s3' | |
#ファイル名 | |
filename=`date +%y%m%d` |
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 | |
echo '*** mount check s3 ***' | |
if df -h | grep "/mnt/s3"; then | |
echo '*** already mount! ***'; | |
else | |
echo '*** mount now... ***'; | |
s3fs bucket_name /mnt/s3 | |
echo '*** mount finished! ***'; | |
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
var API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN'); | |
var reg = /^Failed:[\s|\S]*\(.*?\sby\s(.*)\)/; | |
var logsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('log'); | |
function doGet(e) { | |
return doPost(e); | |
} | |
function doPost(e) { |
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
var SPREADSHEET_ID = "hoge"; | |
var SLACK_WEBHOOK_URL = "hoge"; | |
var SETTINGS = | |
{ | |
'user_name' : { | |
'name' : 'project name', | |
'key' : 'hoge', | |
'secret' : 'hoge' |
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
/** | |
* #30_receptionist板の来訪受付書き込みを、IFTTTを通じてPUSH通知する | |
* | |
**/ | |
var API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN'); | |
var reg = /(受付に、「)(.+)(」ボタンから)(.+)(来られました。)/; | |
var logsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('log'); | |
var url = 'hoge';//IFTTTのwebhook |
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
var API_TOKEN = PropertiesService.getScriptProperties().getProperty('SLACK_ACCESS_TOKEN'); | |
var reg = /(来訪|来客|来社|面接|オファー|Skype|skype|リモート|テレカン)/; | |
var subReg = /^(?!.*仕様).*(?=(様|さん|さま)).*$/; | |
var typeArray = { | |
'来客' : '来訪がある', | |
'来訪': '来訪がある', | |
'来社': '来訪がある', | |
'面接' : '面接がある', | |
'オファー' : '面接がある', |
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
//ログ保存用のスプレッドシート | |
var logsheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName('log'); | |
// ブクログのアカウント情報 | |
var scriptProperties = PropertiesService.getScriptProperties(); | |
var ACCOUNT = scriptProperties.getProperty('BOOKLOG_ACCOUNT'); | |
var PASSWORD = scriptProperties.getProperty('BOOKLOG_PASSWORD'); | |
function AutoRegistToBooklog() { | |
// 受信トレイにある注文メールを検索 |
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
### Keybase proof | |
I hereby claim: | |
* I am rela1470 on github. | |
* I am rela1470 (https://keybase.io/rela1470) on keybase. | |
* I have a public key ASBJ4vGlNMgcQuSJMzc0IxqFk9ey69CsAo1q1WezB2mUkwo | |
To claim this, I am signing this object: |