Skip to content

Instantly share code, notes, and snippets.

View yoshimana's full-sized avatar

yoshimana yoshimana

View GitHub Profile
/**
* Google ドキュメントのフォームから投稿があったら確認メールを自動返信する(日本語版)
* English version will be available later.
*
* @author Masunaga Ray ( http://www.msng.info/ )
* @instruction http://www.msng.info/archives/2012/04/google-docs-auto-reply.php
*/
function sendConfirmation() {
try {
var ss = SpreadsheetApp.getActiveSpreadsheet();
@yoshimana
yoshimana / alfred_amazon_suggest_j.php
Created February 11, 2019 04:05 — forked from baramutu/alfred_amazon_suggest_j.php
AlfredのAmazon Suggest Workflowのスクリプトフィルタを編集して、日本語が表示され、ゴミが表示されないように改変したものです
require('workflows.php');
$w = new Workflows();
// Grab input and build query url string
$in = "{query}";
$url = "http://completion.amazon.co.jp/search/complete?method=completion&q=".urlencode( $in )."&search-alias=aps&mkt=6&x=updateISSCompletion&noCacheIE=1295031912518";
// Grab the data from Amazon
$str = $w->request( $url );
@yoshimana
yoshimana / alfred_google_suggest_j.php
Created February 11, 2019 04:06 — forked from baramutu/alfred_google_suggest_j.php
AlfredのGoogle Suggest Workflowのスクリプトフィルタを編集して、日本語の候補がより多く表示されるように改変したものです
require_once('workflows.php');
$wf = new Workflows();
$orig = "{query}";
$xml = $wf->request( "http://google.co.jp/complete/search?hl=ja&ie=utf_8&oe=utf_8&output=toolbar&q=".urlencode( $orig ) );
$xml = simplexml_load_string( $xml );
$int = 1;
foreach( $xml as $sugg ):
$data = $sugg->suggestion->attributes()->data;