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} |
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/" |
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; |
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" | |
}, |
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" | |
}, |
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
import java.util.Arrays; | |
import java.util.Iterator; | |
import java.util.List; | |
import java.util.function.BiFunction; | |
import java.util.stream.LongStream; | |
import java.util.stream.Stream; | |
/** | |
* | |
*/ |
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) { |
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
import java.io.ByteArrayOutputStream; | |
import java.io.FileOutputStream; | |
import java.util.ArrayList; | |
import java.util.LinkedHashMap; | |
import java.util.List; | |
import java.util.Map; | |
import com.itextpdf.text.Chapter; | |
import com.itextpdf.text.Chunk; | |
import com.itextpdf.text.Document; |
OlderNewer