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 formSubmitted(e) { | |
var url = "https://s.questetra.net/00000000/System/Event/MessageStart/start"; | |
var payload = 'processModelInfoId=25'; | |
payload += '&nodeNumber=0'; | |
payload += '&key=NOYU3xDtySJqDhYGf02gj5X2sF1Scoaj'; | |
payload += '&title=' + encodeURIComponent(e.namedValues['お名前'][0] + ' さんからのお問い合わせ'); | |
payload += '&data[0].input=' + encodeURIComponent(e.namedValues['お名前'][0]); | |
payload += '&data[1].input=' + encodeURIComponent(e.namedValues['メールアドレス'][0]); | |
payload += '&data[2].selects=' + encodeURIComponent(e.namedValues['性別'][0]); | |
payload += '&data[3].input=' + encodeURIComponent(e.namedValues['お問い合わせ内容'][0]); |
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
<items> | |
<item value="1" display="ナンバー1"/> | |
<item value="2" display="ナンバー2"/> | |
<item value="3" display="ナンバー3"/> | |
<item value="" display="値空文字列"/> | |
<item value=" " display="値半角スペース"/> | |
<item value=" " display="値全角スペース"/> | |
<item value="[ ]" display="値半角スペース含む"/> | |
<item value="[ ]" display="値全角スペース含む"/> | |
<item value="名前空文字列" display=""/> |
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
#!ruby | |
# -*- encoding: UTF-8 -*- | |
require "rubygems" | |
require "rexml/document" | |
require "rexml/streamlistener" | |
require "sqlite3" | |
require "pr_geohash" | |
include REXML | |
class KmlListener |
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
package com.questetra; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.util.ArrayList; | |
import java.util.List; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.NameValuePair; |
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
package com.questetra; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.UnsupportedEncodingException; | |
import java.nio.charset.Charset; | |
import org.apache.http.HttpEntity; | |
import org.apache.http.HttpResponse; | |
import org.apache.http.client.HttpClient; |
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 | |
require_once "HTTP/Client.php"; | |
$client =& new HTTP_Client(array("useBrackets" => false)); | |
$url = "https://s.questetra.net/00000000/System/Event/MessageStart/start"; | |
$params = array( | |
"processModelInfoId" => "1", | |
"nodeNumber" => "0", | |
"key" => "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", |
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 docId = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX'; | |
function getAll() { | |
var list = []; | |
var sheet = SpreadsheetApp.openById(docId).getSheets()[0]; | |
var data = sheet.getDataRange().getValues(); | |
for(var i = 0; i < data.length; i++) { | |
list.push({value: data[i][0], display: data[i][1]}); | |
} | |
return list; |
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 request() { | |
var parts = []; | |
parts.push({name: "processModelInfoId", value: 1}); | |
parts.push({name: "nodeNumber", value: 1}); | |
parts.push({name: "key", value: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"}); | |
parts.push({name: "title", value: "件名をここに"}); | |
parts.push({name: "data[0].upload", value: "ファイル本文をここに", filename: "ファイル名.csv", contentType: "text/csv; charset=UTF-8"}); | |
var boundary = "boundaryboundaryboundaryboundary"; |
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 request () { | |
var encodedFilename = "=?UTF-8?B?" + Utilities.base64Encode("ファイル名.csv", Utilities.Charset.UTF_8) + "?="; | |
var payload = { | |
"processModelInfoId": "1", | |
"nodeNumber": "1", | |
"key": "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX", | |
"title": "件名をここに", | |
"data[0].upload": Utilities.newBlob("ファイル本文をここに", "text/csv; charset=UTF-8", encodedFilename) |
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
c=b=1 | |
((gets.to_i+1)/2).times{c,b=c*2+b,c+b} | |
p c-1 |
OlderNewer