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 FindProxyForURL(url, host) { | |
return "SOCKS localhost:1234"; | |
} |
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 |
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
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
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
<?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
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
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
#!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
<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=""/> |
NewerOlder