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
{ | |
"request": { | |
"method": "POST", | |
"urlPath": "/foo/graphql", | |
"customMatcher" : { | |
"name" : "graphql-body-matcher", | |
"parameters" : { | |
"expectedJson" : "{ \"query\": \",query DemoQuery { demo { id name } }\" }" | |
} | |
} |
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] | |
name = "demo" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
graphql_client = { version = "0.13", features = ["reqwest"] } | |
serde = "1.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
[package] | |
name = "demo" | |
version = "0.1.0" | |
edition = "2021" | |
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | |
[dependencies] | |
axum = "0.6.20" | |
hyper = "0.14" |
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
// Demo.java | |
import com.google.protobuf.ByteString; | |
import com.salesforce.eventbus.protobuf.*; | |
import io.grpc.CallCredentials; | |
import io.grpc.ManagedChannel; | |
import io.grpc.ManagedChannelBuilder; | |
import io.grpc.Metadata; | |
import io.grpc.stub.StreamObserver; | |
import org.apache.avro.Schema; |
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
- #!/bin/bash と書いてますが、POSIXモードで動きます | |
- カラム名を出力しないために -N を付与 | |
- -B で出力形式を変更。フィールド区切りはTAB。レコード区切りは改行 | |
- 複数カラムや複数行の場合に、値の内容にタブや改行あるとつらい | |
- -X でXML形式に出力することもできる。その場合は jq や xmllint を利用か? | |
- エラーハンドリングが面倒 |
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
% sfdx run:function:start | |
Building myfunction | |
20: Pulling from heroku/buildpacks | |
35807b77a593: Pulling fs layer | |
0a35e61b290a: Pulling fs layer | |
fcdac917cbb2: Pulling fs layer | |
36ca75b559e9: Pulling fs layer | |
2279c3e26b0c: Pulling fs layer | |
76fab9a1999c: Pulling fs layer | |
f66fe785e799: Pulling fs layer |
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 org.test.demo; | |
import com.amazonaws.regions.Region; | |
import com.amazonaws.regions.Regions; | |
import com.amazonaws.services.simpleemail.AmazonSimpleEmailService; | |
import org.springframework.beans.factory.annotation.Autowired; | |
import org.springframework.context.annotation.Configuration; | |
@Configuration | |
public class AppConfig { |
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.web; | |
import com.example.validation.EitherRequired; | |
import lombok.AllArgsConstructor; | |
import lombok.Data; | |
import lombok.NoArgsConstructor; | |
@Data | |
@AllArgsConstructor | |
@NoArgsConstructor |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Test</title> | |
<link rel="stylesheet" href="css/bootstrap.min.css"> | |
<link rel="stylesheet" href="css/bootstrap-theme.min.css"> | |
<script src="js/jquery-3.1.1.min.js"></script> | |
<script src="js/bootstrap.min.js"></script> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Test</title> | |
<script src="js/jquery-3.1.1.min.js"></script> | |
</head> | |
<body> | |
<div> |
NewerOlder