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
define('FS_METHOD', 'direct'); |
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
<select name="pref"> | |
<option value="北海道">北海道</option> | |
<option value="青森県">青森県</option> | |
<option value="岩手県">岩手県</option> | |
<option value="宮城県">宮城県</option> | |
<option value="秋田県">秋田県</option> | |
<option value="山形県">山形県</option> | |
<option value="福島県">福島県</option> | |
<option value="茨城県">茨城県</option> | |
<option value="栃木県">栃木県</option> |
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
var url = 'http://www.example.com/'; | |
var to = 'foo@example.com'; | |
var sub = 'サーバ障害報告'; | |
var body = "監視中の サーバが停止した模様です。サーバの状態を確認してください。\n" + url ; | |
function myFunction() | |
{ | |
if(check_server(url) != 200){ | |
MailApp.sendEmail(to, sub, 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
function doFunction() | |
{ | |
var ss = SpreadsheetApp.openById("XXXXXXXXXXXXXXXXXXXXXXXXXXXX"); //SpredsheetのIDに書き換えてください | |
var sheet = ss.getSheetByName('sheetname'); | |
sheet.appendRow([Utilities.formatDate(new Date(), "Asia/Tokyo", "yyyy/MM/dd HH:mm:ss")]); | |
} |
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 | |
$hostname = $_GET['hostname']; | |
$res = get_ipaddr($hostname); | |
if($res){ | |
echo json_encode($res); | |
} else { | |
echo json_encode(array('error' => 'error')); | |
} |
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
足立区 | |
荒川区 | |
板橋区 | |
江戸川区 | |
大田区 | |
葛飾区 | |
北区 | |
江東区 | |
品川区 | |
渋谷区 |