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
# | |
# Licensed to the Apache Software Foundation (ASF) under one or more | |
# contributor license agreements. See the NOTICE file distributed with | |
# this work for additional information regarding copyright ownership. | |
# The ASF licenses this file to You under the Apache License, Version 2.0 | |
# (the "License"); you may not use this file except in compliance with | |
# the License. You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.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
{ | |
"timeZone": "Asia/Tokyo", | |
"dependencies": { | |
}, | |
"exceptionLogging": "STACKDRIVER", | |
"oauthScopes": [ | |
"https://www.googleapis.com/auth/gmail.addons.execute" | |
], | |
"gmail": { | |
"version": "TRUSTED_TESTER_V2", |
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 translate(val) { | |
if (val.map) { | |
return val.map(translate); | |
} | |
return LanguageApp.translate(val, "en", "ja"); | |
} |
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 myFunction() { | |
// シートを取得 | |
var sheet = SpreadsheetApp.getActiveSpreadsheet().getSheetByName("シート1"); | |
// プロジェクトID、Queryを取得 | |
var projectId = sheet.getRange("B1").getValue(); | |
var query = sheet.getRange("B2").getValue(); | |
// Queryパラメータを作成 |
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
``` | |
. | |
├── credentials/ | |
│ ├── cacert.pem | |
│ ├── pkey.pem | |
│ ├── secrets.py* | |
│ └── secrets.pyc | |
├── inventory/ | |
│ ├── gce.ini | |
│ ├── gce.py* |
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
type EnumType int | |
const ( | |
One EnumType = iota //初期値を0以外にする場合は iota+1とかで調整 | |
Tow | |
Three | |
) | |
//EnumType の文字列表現 |
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 stk; | |
import java.util.List; | |
import com.amazonaws.auth.ClasspathPropertiesFileCredentialsProvider; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.ec2.AmazonEC2; | |
import com.amazonaws.services.ec2.AmazonEC2Client; | |
import com.amazonaws.services.ec2.model.AllocateAddressRequest; |
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
# Fill in your AWS Access Key ID and Secret Access Key | |
# http://aws.amazon.com/security-credentials | |
accessKey= Your AWS Access Key ID | |
secretKey= Your Secret Access Key |
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 SCOPE_PLUS_ME = "https://www.googleapis.com/auth/plus.me"; | |
var SCOPE_PLUS_PROFILES_READ = "https://www.googleapis.com/auth/plus.profiles.read"; | |
var SCOPE_PLUS_CIRCLES_READ = "https://www.googleapis.com/auth/plus.circles.read"; | |
var SCOPE_PLUS_CIRCLES_WRITE = "https://www.googleapis.com/auth/plus.circles.write"; | |
var SCOPE_PLUS_STREAM_READ = "https://www.googleapis.com/auth/plus.stream.read"; | |
var SCOPE_PLUS_STREAM_WRITE = "https://www.googleapis.com/auth/plus.stream.write"; | |
var SCOPE_PLUS_MEDIA_UPLOAD = "https://www.googleapis.com/auth/plus.media.upload"; | |
var SCOPES = [SCOPE_PLUS_ME,SCOPE_PLUS_STREAM_WRITE].join("+"); | |
var USER_ID = "me"; |
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
//This is a google apps script project json. | |
//The Import/Export API, that is on the Google Drive API, use this. | |
//If u have existing project, u can do update, delete, add and rename project's code and file by changing this json structure. | |
{ | |
//files property is Google Apps Script Project Files. | |
//It has some hash objects. | |
"files": [ | |
//Hash object is Google Apps Script File. | |
//It contain id, name, type, source. | |
NewerOlder