View envoy-service-a.json
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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "service-a-sidecar-proxy", | |
"cluster": "service-a", | |
"build_version": "7a12f379e47a9f7cf7211c727fe8fc70b6a0a9ab/1.11.2/Clean/RELEASE/BoringSSL" | |
}, |
View envoy-service-a.json
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
{ | |
"configs": [ | |
{ | |
"@type": "type.googleapis.com/envoy.admin.v2alpha.BootstrapConfigDump", | |
"bootstrap": { | |
"node": { | |
"id": "service-a-sidecar-proxy", | |
"cluster": "service-a", | |
"build_version": "7a12f379e47a9f7cf7211c727fe8fc70b6a0a9ab/1.11.2/Clean/RELEASE/BoringSSL" | |
}, |
View Main.java
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 sample; | |
import java.security.SecureRandom; | |
import java.util.Base64; | |
import java.util.Random; | |
import javax.crypto.Cipher; | |
import javax.crypto.spec.GCMParameterSpec; | |
import javax.crypto.spec.SecretKeySpec; |
View index.js
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
// upsource get comments from JSON RPC API. | |
// node 8 upper | |
const request = require("request-promise") // npm i --save request-promise | |
const fs = require("fs") | |
const auth = { | |
user: "admin", | |
password: "xxxx" | |
}; | |
const baseUrl = "http://<your upsource host>/~rpc/" |
View groupByProcedure.js
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
/* | |
sampele data: | |
``` | |
{ "id":"1","category":"00", "item":"item1" ,"price":300} | |
{ "id":"2","category":"00", "item":"item2" ,"price":400} | |
{ "id":"3","category":"01", "item":"item3" ,"price":500} | |
{ "id":"4","category":"01", "item":"item4" ,"price":600} | |
{ "id":"5","category":"02", "item":"item5" ,"price":700} |
View alexaCustomSkillOnHookIO.js
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
'use strict'; | |
/** | |
* Hook.io にて、 Alexa Skill を実行するサンプルです | |
*/ | |
/** | |
* スピーチ内容を作成する関数です。 | |
* 通常、各イベントの処理の最後にbuildResponseと組み合わせて、次のように実行します。 | |
* |
View Comp.java
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.example; | |
import java.util.concurrent.CompletableFuture; | |
import java.util.concurrent.ExecutorService; | |
import java.util.concurrent.Executors; | |
public class Comp { | |
public static void main(String[] args) { |
View IfAction.java
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 jp.co.ulsystems.javafx; | |
import java.util.HashMap; | |
import java.util.Map; | |
import java.util.function.Consumer; | |
/** | |
* execute lanmda statement if value is not null or empty | |
* | |
* this replace following code |
View StaticResourceHttpServer
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 server; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.OutputStream; | |
import java.net.InetSocketAddress; | |
import java.nio.file.FileSystem; | |
import java.nio.file.FileSystems; | |
import java.nio.file.FileVisitResult; | |
import java.nio.file.Files; |
View DefaultExample.java
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
/* | |
* Java8 デフォルト実装の使用例 | |
*/ | |
package defaultif; | |
import java.io.File; | |
import java.io.IOException; | |
import java.io.UncheckedIOException; | |
import java.nio.file.Files; |
NewerOlder