Skip to content

Instantly share code, notes, and snippets.

View ShigeoTejima's full-sized avatar

Shigeo Tejima ShigeoTejima

View GitHub Profile
@ShigeoTejima
ShigeoTejima / foo-graphql.json
Created September 17, 2023 09:38
example for wiremock stub json file when use wiremock-graphql-extension v0.6.2
{
"request": {
"method": "POST",
"urlPath": "/foo/graphql",
"customMatcher" : {
"name" : "graphql-body-matcher",
"parameters" : {
"expectedJson" : "{ \"query\": \",query DemoQuery { demo { id name } }\" }"
}
}
@ShigeoTejima
ShigeoTejima / Cargo.toml
Created September 17, 2023 08:43
graphql_client + salesforce graphql + ok/error handling thinking
[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"
@ShigeoTejima
ShigeoTejima / Cargo.toml
Created September 16, 2023 22:41
axumでQueryのvalidationをしてみた。bar.rsの方はもっと簡潔にできないか...
[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"
@ShigeoTejima
ShigeoTejima / Demo.java
Last active August 9, 2023 19:28
Coding according to trace ProcessChangeEventHeader in pub-sub-api
// 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;
@ShigeoTejima
ShigeoTejima / gist:1bc51717032825ebdd08db6f7130e21b
Created September 30, 2021 03:49
log of sfdx run:function:start
% 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
@ShigeoTejima
ShigeoTejima / test.html
Created February 12, 2017 16:36
loading wall example...
<!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>
@ShigeoTejima
ShigeoTejima / test.html
Created February 12, 2017 16:35
example control timeout, after submit form to iframe. ummm
<!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>
@ShigeoTejima
ShigeoTejima / test.html
Created February 7, 2017 14:21
Tooltip when bootstrap.js and jquery-ui.js both exist.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Test</title>
<link rel="stylesheet" href="css/bootstrap.css">
<link rel="stylesheet" href="css/bootstrap-theme.css">
<script src="js/jquery-1.11.1.js"></script>
<script src="js/bootstrap.js"></script>
@ShigeoTejima
ShigeoTejima / test.html
Created February 6, 2017 22:37
on ie9, desined input[type=file] sample.
<!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>
<style>
.file-container {
display: inline-block;
@ShigeoTejima
ShigeoTejima / Tag.java
Created January 22, 2017 07:06
Simple Tag and Builder
import java.io.IOException;
import java.io.OutputStream;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
public class Tag {
private final String tagName;