Skip to content

Instantly share code, notes, and snippets.

@githubmorley
githubmorley / gas_ss_translate.js
Created November 14, 2016 03:36
Googleスプレッドシート_翻訳支援
// 起動時処理:スプレッドシートのメニューに追加
function onOpen(event){
var ss = SpreadsheetApp.getActiveSpreadsheet();
// メニューの項目を作成
var menu = [
{name: '翻訳を実行', functionName: 'translate'},
{name: '訳の行だけ別窓に表示', functionName: 'getTranslateText'},
{name: 'シートをクリア', functionName: 'clearSheet'},
];
ss.addMenu('翻訳', menu); // メニューを追加
@rinx
rinx / upload_to_gdrive.lua
Created February 21, 2016 10:07
flashair to google drive v3
local cjson = require "cjson"
-- Basic account info
local client_id = ""
local client_secret = ""
local refresh_token = ""
local boundary = "--61141483716826"
local function checkWlanConnect()
@nabe-abk
nabe-abk / ssdp-relay.pl
Last active October 16, 2018 11:22
UPnP/DLNA multicast relay server
#!/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;
@zdne
zdne / Google Chrome Incognito.applescript
Last active January 31, 2023 19:38
Google Chrome Incognito – AppleScript to always run chrome in incognito mode. Save as an application to your Application folder. Optionally drag a and drop Google Chrome Icon in between Get Info panes (⌘+I)
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