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 onOpen(event){ | |
var ss = SpreadsheetApp.getActiveSpreadsheet(); | |
// メニューの項目を作成 | |
var menu = [ | |
{name: '翻訳を実行', functionName: 'translate'}, | |
{name: '訳の行だけ別窓に表示', functionName: 'getTranslateText'}, | |
{name: 'シートをクリア', functionName: 'clearSheet'}, | |
]; | |
ss.addMenu('翻訳', menu); // メニューを追加 |
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
local cjson = require "cjson" | |
-- Basic account info | |
local client_id = "" | |
local client_secret = "" | |
local refresh_token = "" | |
local boundary = "--61141483716826" | |
local function checkWlanConnect() |
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/perl | |
################################################################################ | |
# DLNA multicast relay (C)2015/11/13 nabe@abk / GPLv2 or later | |
################################################################################ | |
use strict; | |
use Socket; | |
use IO::Select; | |
use IO::Interface::Simple; | |
use IO::Socket::Multicast; |
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
if application "Google Chrome" is running then | |
tell application "Google Chrome" to make new window with properties {mode:"incognito"} | |
else | |
do shell script "open -a /Applications/Google\\ Chrome.app --args --incognito" | |
end if | |
tell application "Google Chrome" to activate |