Skip to content

Instantly share code, notes, and snippets.

View KengoTODA's full-sized avatar
🐉
2024 is for product management

Kengo TODA KengoTODA

🐉
2024 is for product management
View GitHub Profile
@KengoTODA
KengoTODA / config.yml
Created September 23, 2022 06:37
OIDCでGCSにファイルをアップロードするサンプル
# .circleci/config.yml
orbs:
jq: circleci/jq@2.2.0
jobs:
upload_coverage_report:
docker:
- image: google/cloud-sdk
steps:
@KengoTODA
KengoTODA / artifact_registry.tf
Created September 23, 2022 06:21
ファイル配信サイト構築サンプル
resource "google_artifact_registry_repository" "file_hosting" {
location = local.region
repository_id = "file-hosting"
description = "Docker registry for the file hosting service"
format = "DOCKER"
}
resource "google_artifact_registry_repository_iam_policy" "file_hosting" {
location = local.region
repository = google_artifact_registry_repository.file_hosting.name
@KengoTODA
KengoTODA / questions.md
Last active December 16, 2021 04:46
Flix build system

To integrate the Flix language into existing JVM language projects, I want to try to make a Gradle plugin to build, test, and package source codes written in Flix. To judge its possibility, and design its API, I want to ask the following questions:

  1. Is it encouraged to deploy .fpkg files onto Maven Central or other registries?

  2. Will Flix build system supports multiple kinds of dependnecy scope?

    • Java build tools such as Maven and Gradle provides compile, runtime, provided, api, implementation, test, and system etc.
Classfile /Users/kengo/Downloads/PatternMatchingForSwitch.class
Last modified Jun 13, 2021; size 2141 bytes
MD5 checksum 5049ca7e9689aad18b98cb25608936e1
Compiled from "PatternMatchingForSwitch.java"
public class PatternMatchingForSwitch
minor version: 65535
major version: 61
flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: #68 // PatternMatchingForSwitch
super_class: #2 // java/lang/Object
@KengoTODA
KengoTODA / HashcodeTest.java
Created April 14, 2021 00:53
Code to reproduce unexpected behavior
import java.util.Arrays;
public class HashcodeTest {
/**
* A simple Record with an int array.
*/
record Record(int[] array) {}
/**
* {@code Record#hashCode()} invokes not {@link Arrays#hashCode(int[])} but {@code int[].hashCode()}.
@KengoTODA
KengoTODA / index.md
Last active March 2, 2021 09:24
Changes between SpotBugs 3.1-4.2

SpotBugs3.1.xの現状と内部実装が抱える問題発表後に起こった変化のまとめ。

実績

digraph first {
rankdir = LR
"入力" -> "処理(ビルド)" -> "出力"
"処理(ビルド)" [shape=square];
}
@KengoTODA
KengoTODA / MessageStrings.java
Created September 5, 2020 22:00
Generated by https://github.com/eirnym/js2p-gradle from SARIF 2.1.0 schema
package edu.umd.cs.findbugs.sarif;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
digraph Issue493 {
subgraph cluster_method_1 {
label="#method";
graph[style=dotted];
edge1_0 [label="ALOAD (1)"];
edge1_1 [label="javax/sql/DataSource#getConnection()Ljava/sql/Connection;"];
edge1_2 [label="ASTORE (2)"];
edge1_3 [label="class org.objectweb.asm.tree.LabelNode"];
edge1_4 [label="java/lang/System#out (Ljava/io/PrintStream;)"];
edge1_5 [label="java/io/PrintStream#println()V"];
@KengoTODA
KengoTODA / changes.diff
Created July 22, 2020 11:14
necessary changes in jspecify subtree
diff --git a/jspecify/build.gradle b/jspecify/build.gradle
index 676ae28..3b21c79 100644
--- a/jspecify/build.gradle
+++ b/jspecify/build.gradle
@@ -1,13 +1,13 @@
plugins {
id 'java-library'
id 'maven-publish'
- id 'com.diffplug.gradle.spotless' version '3.28.1'
- id 'net.ltgt.errorprone' version '1.1.1'