├── toylang
└── .gitignore
├── vectorizer
├── __init__.py
├── .python-version
├── .gitignore
├── README.md
└── compose.yaml
├── golang
├── files
│ ├── foo
│ │ ├── demo.txt
│ │ ├── xxx.txt
│ │ ├── bar
│ │ │ └── qux
│ │ │ │ └── demo.txt
│ │ └── baz
│ │ │ └── demo.txt
│ └── go.mod
├── embedded-file
│ ├── static
│ │ ├── bar.txt
│ │ └── foo.txt
│ ├── hello.txt
│ └── go.mod
├── flag
│ ├── go.mod
│ ├── README.md
│ └── main.go
├── http
│ └── go.mod
├── json
│ └── go.mod
├── sandbox
│ ├── go.mod
│ ├── cmd
│ │ └── main.go
│ ├── Makefile
│ ├── snippet
│ │ └── snippet.go
│ ├── cnst
│ │ └── cnst1
│ │ │ └── cnst.go
│ ├── types
│ │ └── type.go
│ ├── interfaces
│ │ ├── interface.go
│ │ └── interface_test.go
│ ├── init
│ │ └── init_test.go
│ └── pipe
│ │ └── pipe_test.go
├── web
│ ├── go.mod
│ ├── files
│ │ ├── public
│ │ │ ├── style.css
│ │ │ └── index.html
│ │ └── files.go
│ └── hello
│ │ └── hello.html
├── xml
│ └── go.mod
├── testing
│ ├── go.mod
│ ├── hello.go
│ └── main.go
├── process
│ ├── go.mod
│ ├── README.md
│ └── main.go
├── text-template
│ └── go.mod
├── embed_a_commit_hash
│ ├── go.mod
│ ├── README.md
│ └── main.go
├── os-arch-example
│ ├── go.mod
│ └── main.go
├── polymorphism-example
│ └── go.mod
├── helloworld
│ ├── go.mod
│ └── main.go
├── shift_jis
│ ├── go.mod
│ ├── go.sum
│ └── README.md
├── parser-example
│ ├── go.mod
│ └── Makefile
├── .gitignore
├── csv
│ └── go.mod
└── README.md
├── tapl
└── README.md
├── fastapi-example
├── .gitignore
├── app
│ ├── __init__.py
│ └── main.py
├── Procfile
├── README.md
├── compose.yaml
└── docker
│ └── reverse-proxy
│ └── nginx.conf
├── hello-fastapi
├── .gitignore
├── .tool-versions
└── test_main.py
├── java-module
├── case1
│ ├── bin
│ │ └── .gitkeep
│ ├── lib
│ │ └── .gitkeep
│ ├── .gitignore
│ ├── src
│ │ ├── foo
│ │ │ ├── module-info.java
│ │ │ └── Foo.java
│ │ └── bar
│ │ │ ├── module-info.java
│ │ │ └── Bar.java
│ └── README.md
├── case2
│ ├── bin
│ │ └── .gitkeep
│ ├── lib
│ │ └── .gitkeep
│ ├── .gitignore
│ └── src
│ │ ├── foo
│ │ ├── module-info.java
│ │ └── Foo.java
│ │ ├── baz
│ │ ├── module-info.java
│ │ └── Baz.java
│ │ └── bar
│ │ ├── module-info.java
│ │ └── Bar.java
├── case3
│ ├── bin
│ │ └── .gitkeep
│ ├── lib
│ │ └── .gitkeep
│ ├── .gitignore
│ └── src
│ │ ├── foo
│ │ ├── module-info.java
│ │ └── Foo.java
│ │ ├── baz
│ │ ├── module-info.java
│ │ └── Baz.java
│ │ └── bar
│ │ ├── module-info.java
│ │ └── Bar.java
├── case4
│ ├── bin
│ │ └── .gitkeep
│ ├── lib
│ │ └── .gitkeep
│ ├── .gitignore
│ └── src
│ │ ├── bar
│ │ ├── module-info.java
│ │ └── Bar.java
│ │ ├── foo
│ │ ├── module-info.java
│ │ └── Foo.java
│ │ └── baz
│ │ └── Baz.java
├── case5
│ ├── bin
│ │ └── .gitkeep
│ ├── lib
│ │ └── .gitkeep
│ ├── .gitignore
│ └── src
│ │ ├── bar
│ │ ├── module-info.java
│ │ └── Bar.java
│ │ └── foo
│ │ └── Foo.java
└── case6
│ ├── bar
│ ├── .gitignore
│ └── src
│ │ ├── module
│ │ ├── module-info.java
│ │ └── java
│ │ │ └── module-info.java
│ │ └── main
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── bar
│ │ ├── Bar.java
│ │ └── internal
│ │ └── InternalBar.java
│ └── foo
│ ├── .gitignore
│ └── src
│ ├── module
│ └── java
│ │ └── module-info.java
│ └── main
│ └── java
│ └── com
│ └── example
│ └── foo
│ └── Foo.java
├── mlflow-example
├── app
│ └── __init__.py
├── README.md
└── .gitignore
├── python-coverage-example
├── README.md
├── app
│ ├── __init__.py
│ └── foobar.py
├── tests
│ ├── __init__.py
│ ├── test_bar.py
│ └── test_foo.py
├── .python-version
└── .gitignore
├── python-embedding
├── app
│ └── __init__.py
├── .gitignore
├── data
│ └── .gitignore
├── .flake8
├── .env.example
└── README.md
├── rabbitmq
├── README.md
└── hello
│ └── .gitignore
├── claude-agent-sdk-example
├── README.md
└── .python-version
├── langchain-example
├── scripts
│ └── __init__.py
├── tests
│ └── __init__.py
├── .tool-versions
├── data
│ └── .gitignore
├── .gitignore
├── README.md
└── .flake8
├── langgraph-example
├── tests
│ └── __init__.py
├── .tool-versions
├── .gitignore
└── app
│ └── __init__.py
├── nexus-example
├── python
│ ├── app
│ │ ├── README.md
│ │ ├── .python-version
│ │ ├── main.py
│ │ └── pyproject.toml
│ ├── Dockerfile
│ └── uv.toml
├── maven
│ └── app
│ │ ├── .gitignore
│ │ └── src
│ │ └── main
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── App.java
├── npm
│ ├── .npmrc
│ └── app
│ │ ├── main.mjs
│ │ └── package.json
├── nexus-setup
│ └── Dockerfile
└── docker
│ └── daemon.json
├── python-logging-example
├── app
│ └── __init__.py
├── .gitignore
├── .tool-versions
└── README.md
├── rust-examples
├── README.md
├── calc
│ ├── .gitignore
│ ├── Cargo.lock
│ ├── Cargo.toml
│ └── README.md
├── docker
│ ├── .gitignore
│ ├── .dockerignore
│ ├── src
│ │ └── main.rs
│ ├── README.md
│ ├── Cargo.lock
│ ├── Dockerfile
│ └── Cargo.toml
├── example
│ ├── .gitignore
│ ├── src
│ │ ├── main.rs
│ │ └── bin
│ │ │ ├── environment_var.rs
│ │ │ └── pattern_match.rs
│ ├── Cargo.lock
│ └── Cargo.toml
├── multiple-binary
│ ├── .gitignore
│ ├── src
│ │ └── bin
│ │ │ ├── bar.rs
│ │ │ └── foo.rs
│ └── Cargo.lock
├── split-sourcecode
│ ├── .gitignore
│ ├── src
│ │ ├── bar.rs
│ │ ├── baz.rs
│ │ ├── lib.rs
│ │ ├── foo.rs
│ │ └── main.rs
│ ├── Cargo.lock
│ └── Cargo.toml
├── refer-to-each-other
│ ├── .gitignore
│ ├── src
│ │ ├── lib.rs
│ │ ├── main.rs
│ │ ├── bar.rs
│ │ └── foo.rs
│ ├── Cargo.lock
│ └── Cargo.toml
├── functions
│ └── Cargo.toml
├── ownership
│ ├── Cargo.toml
│ └── src
│ │ └── main.rs
├── primitive-types
│ └── Cargo.toml
├── variable-bindings
│ └── Cargo.toml
├── references-and-borrowing
│ └── Cargo.toml
└── .gitignore
├── streamlit-example
├── .gitignore
├── .python-version
├── .streamlit
│ ├── secrets.toml
│ └── config.toml
├── README.md
├── sql-connection-example.py
├── navigation-example.py
├── vega-altair-example.py
└── args.py
├── yq-example
├── .python-version
├── multi.yaml
├── README.md
└── pyproject.toml
├── langfuse-example
├── .python-version
├── .gitignore
└── .env.example
├── lindera-example
├── .python-version
├── README.md
├── .gitignore
└── pyproject.toml
├── prefect-example
├── .gitignore
├── .python-version
└── prefect_webconsole.png
├── python-example
├── .python-version
├── hello-requests
│ ├── README.md
│ ├── .gitignore
│ ├── .python-version
│ └── main.py
├── .tool-versions
├── alembic
│ └── README
├── .gitignore
├── data
│ ├── fruits.csv
│ └── chinese_cuisine.csv
├── scripts
│ ├── ulid-example.py
│ ├── hello.py
│ ├── type_error.py
│ ├── fastapi-pathparameter-example.py
│ ├── misc
│ │ └── fastapi-downloadfile-example-static
│ │ │ └── index.html
│ └── fastapi-model-example.py
├── ruff.toml
├── main.py
├── initdb
│ └── init.sql
├── compose.yaml
└── tests
│ └── test_example.py
├── coding-agent-example
├── .python-version
├── .gitignore
├── .env.example
└── state.py
├── garakuta
├── .gitattributes
├── src
│ ├── main
│ │ ├── resources
│ │ │ └── example
│ │ │ │ └── resourcebundle
│ │ │ │ ├── messages.properties
│ │ │ │ └── messages_de.properties
│ │ └── java
│ │ │ ├── example
│ │ │ ├── classclass
│ │ │ │ ├── ExampleClass.java
│ │ │ │ ├── ExampleInterface.java
│ │ │ │ ├── ExampleAbstractClass.java
│ │ │ │ ├── ExampleEnum.java
│ │ │ │ └── ExampleAnnotation.java
│ │ │ ├── resourcebundle
│ │ │ │ └── ResourceBundleExample.java
│ │ │ ├── staticinitializer
│ │ │ │ ├── FooBarException.java
│ │ │ │ ├── Bar.java
│ │ │ │ └── Foo.java
│ │ │ ├── annotation
│ │ │ │ └── inherited
│ │ │ │ │ ├── Fuga.java
│ │ │ │ │ ├── Foo.java
│ │ │ │ │ ├── Hoge.java
│ │ │ │ │ └── Bar.java
│ │ │ ├── NormalizerExample.java
│ │ │ └── CookieExample.java
│ │ │ ├── circuitbreaker
│ │ │ ├── State.java
│ │ │ ├── CircuitBreakerOpenException.java
│ │ │ └── CallingException.java
│ │ │ ├── parser
│ │ │ ├── combinator
│ │ │ │ └── Converter.java
│ │ │ └── expression
│ │ │ │ └── ParseException.java
│ │ │ ├── SemicolonlessHello.java
│ │ │ ├── ShiftSample.java
│ │ │ ├── ThreadDump.java
│ │ │ └── RandomSample.java
│ └── test
│ │ └── java
│ │ └── example
│ │ └── javacompiler
│ │ └── classes
│ │ ├── Baz.java
│ │ ├── Qux.java
│ │ ├── MyComponent.java
│ │ └── Bar.java
├── README.md
└── .gitignore
├── pydantic-ai-example
├── .python-version
└── README.md
├── python-cosmosdb-example
├── .python-version
├── .gitignore
└── Procfile
├── python-playwright-example
├── .gitignore
├── README.md
└── pyproject.toml
├── python-pymupdf-example
└── .gitignore
├── solidjs-example
├── .gitignore
├── README.md
├── vite.config.ts
└── index.html
├── aws
└── python-lambda-docker-example
│ ├── requirements.txt
│ ├── app.py
│ └── Dockerfile
├── fetch-api-demo
├── .gitignore
└── package.json
├── go-solid-example
├── ui
│ ├── .gitignore
│ ├── vite.config.ts
│ └── ui.go
├── go.mod
└── .gitignore
├── localhost-https-example
├── nginx
│ └── .gitignore
├── api
│ └── .gitignore
└── spa
│ └── src
│ ├── react-app-env.d.ts
│ ├── setupTests.ts
│ └── App.test.tsx
├── python-selenium-docker-example
├── .gitignore
├── .python-version
└── README.md
├── python-selenium-example
├── .gitignore
└── example-app
│ ├── src
│ ├── vite-env.d.ts
│ ├── Page1ab.tsx
│ ├── Page2.tsx
│ ├── Page1.tsx
│ └── App.tsx
│ ├── vite.config.ts
│ ├── tsconfig.json
│ ├── index.html
│ └── .gitignore
├── zip-japanese-file-name
└── 日本語ディレクトリ
│ ├── file.txt
│ └── 日本語ファイル.txt
├── automaton
├── README.md
├── go.mod
└── set_test.go
├── busybox-demo
├── static
│ └── index.html
├── proxy
│ ├── public
│ │ └── index.html
│ └── httpd.conf
├── web
│ └── public
│ │ └── greeting
│ │ └── hello.html
├── README.md
└── cgi
│ └── cgi-bin
│ └── index.cgi
├── dapr-sandbox
├── pub-sub
│ ├── pubapp
│ │ ├── .gitignore
│ │ └── package.json
│ ├── subapp
│ │ ├── .gitignore
│ │ └── package.json
│ ├── components
│ │ └── subscription.yaml
│ └── redis-pubsub.yaml
├── service-invocation
│ ├── hello
│ │ ├── .gitignore
│ │ └── package.json
│ └── world
│ │ ├── .gitignore
│ │ └── package.json
├── state-management
│ └── counter
│ │ ├── .gitignore
│ │ └── package.json
└── js-sdk-example
│ ├── add-app
│ ├── .gitignore
│ └── package.json
│ ├── calc-app
│ ├── .gitignore
│ └── package.json
│ └── components
│ └── subscription.yaml
├── lombok-demo
├── .gitignore
├── lombok.config
└── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── example
│ │ └── App.java
│ └── test
│ └── java
│ └── com
│ └── example
│ └── FoobarTest.java
├── archunit-example
├── .gitignore
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ └── sub
│ └── Bar.java
├── azure
├── python-blobstorage-example
│ ├── .gitignore
│ ├── .env.example
│ └── compose.yaml
├── speech-example
│ ├── .env.example
│ ├── .gitignore
│ ├── ui
│ │ ├── src
│ │ │ ├── vite-env.d.ts
│ │ │ └── main.tsx
│ │ ├── tsconfig.json
│ │ ├── vite.config.ts
│ │ ├── index.html
│ │ └── .gitignore
│ └── docs
│ │ └── assets
│ │ └── screenshot.png
├── python-webapp-example
│ ├── startup.sh
│ ├── .gitignore
│ └── .env.example
├── python-function-container-example
│ ├── .dockerignore
│ ├── .vscode
│ │ └── extensions.json
│ └── host.json
├── python-function-example
│ ├── .vscode
│ │ └── extensions.json
│ └── host.json
└── app-service-ropc-example
│ └── docs
│ └── assets
│ ├── scope.png
│ ├── allow_public_client_flow.png
│ └── tenant_id_and_client_id.png
├── failsafe-example
└── .gitignore
├── jacoco-example
├── .gitignore
└── src
│ ├── main
│ └── java
│ │ └── com
│ │ └── example
│ │ └── HelloService.java
│ └── test
│ └── java
│ └── com
│ └── example
│ └── HelloServiceTest.java
├── k8s
├── postgres
│ ├── src
│ │ └── main
│ │ │ ├── resources
│ │ │ ├── application.properties
│ │ │ └── db
│ │ │ │ └── migration
│ │ │ │ └── V1__demo.sql
│ │ │ └── java
│ │ │ └── com
│ │ │ └── example
│ │ │ ├── Comic.java
│ │ │ └── App.java
│ ├── .mvn
│ │ └── wrapper
│ │ │ ├── maven-wrapper.jar
│ │ │ └── maven-wrapper.properties
│ └── config.yaml
├── network-policy
│ └── config.yaml
└── job
│ ├── job.yaml
│ └── cronjob.yaml
├── mediarecorder-example
└── .gitignore
├── progressbar-example
├── .gitignore
└── README.md
├── python-openai-example
├── .gitignore
└── app
│ └── models.py
├── redis-example
├── redis.conf
├── README.md
├── .gitignore
└── docker-compose.yml
├── service-worker-study
├── hello.txt
├── index.html
└── main.js
├── algorithm-introduction
├── .babelrc
├── package.json
└── .gitignore
├── hello-jmh
├── .gitattributes
├── README.md
└── .gitignore
├── jaxrs-async-sample
├── .gitignore
├── README.md
└── src
│ └── main
│ └── java
│ └── sample
│ └── SampleApplication.java
├── jaxrs-client-example
├── .gitignore
└── src
│ └── test
│ └── resources
│ └── META-INF
│ └── services
│ └── org.glassfish.jersey.client.spi.ConnectorProvider
├── jmeter-example
├── .gitignore
├── README.md
└── demo
│ └── package.json
├── langchain4j-example
└── .gitignore
├── mismatch-package
├── .gitignore
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ ├── App3.java
│ ├── App.java
│ ├── App4.java
│ └── App2.java
├── nginx-reverse-proxy-example
├── app
│ ├── .dockerignore
│ ├── Dockerfile
│ └── package.json
└── README.md
├── pitest-demo
├── .gitignore
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ └── Calc.java
├── postgresql-example
├── .gitignore
└── src
│ └── test
│ └── resources
│ ├── readonly_example.yml
│ └── dbunit.yml
├── query-string-demo
├── src
│ └── main
│ │ └── resources
│ │ └── application.properties
└── README.md
├── resilience4j-example
└── .gitignore
├── boring-score-example
├── .gitignore
└── README.md
├── dagger
└── dagger-get-started
│ ├── src
│ ├── main
│ │ └── resources
│ │ │ └── application.properties
│ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── DaggerGetStartedApplicationTests.java
│ ├── .mvn
│ └── wrapper
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
│ └── README.md
├── docker-study
├── share-network-stack
│ └── docker
│ │ ├── container1
│ │ ├── public
│ │ │ └── foo
│ │ └── proxy
│ │ │ └── httpd.conf
│ │ ├── container3
│ │ └── public
│ │ │ └── bar
│ │ └── container2
│ │ └── proxy
│ │ └── httpd.conf
├── docker-compose-scale-example
│ ├── app
│ │ ├── .gitignore
│ │ └── package.json
│ └── README.md
├── resource-limitation-demo
│ └── .gitignore
├── build-arg
│ ├── test.sh
│ ├── Makefile
│ └── Dockerfile
├── oracle
│ ├── init-sql
│ │ ├── 02_insert_sample_data.sql
│ │ └── 01_create_tables.sql
│ ├── docker-entrypoint-initdb.d
│ │ ├── 02_create_tables.sh
│ │ └── 01_create_user.sql
│ └── run.sh
└── multi-stage-build-demo
│ └── Dockerfile
├── hello-byteman
├── .gitattributes
├── task.btm
├── .gitignore
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ ├── App.java
│ └── TaskStore.java
├── http-over-tls_with_self-signed-certificate_example
├── uv-requests
│ ├── README.md
│ ├── .python-version
│ ├── pyproject.toml
│ └── main.py
├── nginx
│ └── tls
│ │ └── .gitignore
├── san.cnf
└── README.md
├── jaxrs-parameter-example
├── .gitignore
└── src
│ └── main
│ └── java
│ └── param
│ ├── ParamConverted.java
│ ├── ParamConvertedImpl.java
│ └── PublicConstructor.java
├── micrometer-example
└── .gitignore
├── react19rc
├── src
│ ├── vite-env.d.ts
│ └── main.tsx
├── tsconfig.json
├── vite.config.ts
├── .gitignore
└── tsconfig.node.json
├── rename-jsessionid-demo
├── .gitignore
└── README.md
├── doma-unified-criteria-example
├── .springjavaformatconfig
├── .gitattributes
└── src
│ └── main
│ ├── resources
│ ├── application.properties
│ ├── data.sql
│ └── schema.sql
│ └── java
│ └── com
│ └── example
│ └── Animal.java
├── duckdb-example
├── README.md
└── .gitignore
├── jpa-timeout-example
├── .gitignore
└── docker-compose.yml
├── maven-profiles-demo
└── .gitignore
├── python-opentelemetry-example
├── python-opentelemetry-example-simple
│ ├── README.md
│ └── .gitignore
├── python-opentelemetry-example-fastapi
│ ├── .python-version
│ ├── .gitignore
│ └── doc
│ │ ├── manual_tracing.png
│ │ ├── langchain_tracing.png
│ │ └── distributed_tracing.png
└── compose.yaml
├── react-example
├── README.md
└── src
│ ├── react-app-env.d.ts
│ ├── splash.png
│ ├── setupTests.ts
│ └── Misc.tsx
├── solidjs-buildless-example
├── README.md
└── index.html
├── jpa-ignore-version-example
├── .gitignore
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ ├── Base3Listener.java
│ └── CommitterListener.java
├── polyglot-maven-example
├── README.md
├── .gitignore
├── .mvn
│ └── extensions.xml
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── App.java
└── pom.yaml
├── react-markdown-example
├── src
│ ├── vite-env.d.ts
│ └── main.tsx
├── tsconfig.json
├── vite.config.ts
└── .gitignore
├── servlet-fallback-indexhtml-example
└── .gitignore
├── zookeeper-leadership-example
├── .gitignore
└── docker-compose.yml
├── dungeon-generation
└── src
│ ├── react-app-env.d.ts
│ ├── index.tsx
│ ├── setupTests.ts
│ └── App.test.tsx
├── flyway-concurrent-execution-example
├── .gitignore
├── README.md
├── src
│ └── main
│ │ └── resources
│ │ └── db
│ │ └── migration
│ │ ├── V2__Create_table_bar.sql
│ │ ├── V1__Create_table_foo.sql
│ │ └── V3__Setup_data.sql
└── compose.yaml
├── graalvm-native-image-demo
├── .gitignore
├── .mvn
│ └── wrapper
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ └── App.java
├── react-qrcode-examle
├── src
│ ├── react-app-env.d.ts
│ └── setupTests.ts
└── public
│ └── index.html
├── servlet-classloader-example
├── .gitignore
└── README.md
├── servlet-error-handling-demo
├── .gitignore
├── README.md
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ └── exception
│ ├── MyException1.java
│ ├── MyException2.java
│ ├── MyException3.java
│ ├── ChainException1a.java
│ └── ChainException1b.java
├── cloud-native-buildpacks-example
└── procfile-example
│ ├── Procfile
│ └── README.md
├── maven-surefire-plugin-nested-class-example
├── .gitignore
└── src
│ └── test
│ └── java
│ └── com
│ └── example
│ ├── CccTests.java
│ ├── TestBbb.java
│ ├── DddTestCase.java
│ └── AaaTest.java
├── servlet-context-listener-error-demo
├── .gitignore
├── README.md
└── src
│ └── main
│ └── java
│ └── com
│ └── example
│ └── MyException.java
├── react-handling-error-example
├── src
│ ├── react-app-env.d.ts
│ ├── setupTests.ts
│ ├── App.test.tsx
│ └── App.module.css
├── README.md
└── public
│ └── index.html
├── scripts
├── js
│ ├── executable-js
│ ├── generator.js
│ ├── then-composition.js
│ ├── promise-return-value.js
│ ├── all-sample.js
│ └── race-sample.js
├── breakout
│ └── README.md
├── vim
│ └── hello.vim
├── git-head-hash.groovy
├── executable-java
├── .gitignore
├── md
│ ├── .gitignore
│ ├── package.json
│ └── index.js
└── codepoint-length.js
├── javaee-startup-sample
├── .gitignore
└── src
│ └── main
│ ├── resources
│ └── META-INF
│ │ ├── services
│ │ ├── jakarta.enterprise.inject.spi.Extension
│ │ └── jakarta.servlet.ServletContainerInitializer
│ │ └── beans.xml
│ └── java
│ └── app
│ ├── JaxrsStartup.java
│ └── EjbStartup.java
├── ebiten-example
└── assets
│ ├── robo1.png
│ ├── robo2.png
│ ├── robo3.png
│ └── backpaper0.png
├── html-css-js-example
├── fixed-header-on-scroll-react
│ └── src
│ │ ├── react-app-env.d.ts
│ │ └── index.tsx
├── centering.css
└── image.html
├── http-session-example
├── src
│ └── main
│ │ └── resources
│ │ └── META-INF
│ │ └── services
│ │ └── javax.servlet.ServletContainerInitializer
└── .gitignore
├── devcontainer-features-example
└── src
│ └── hello
│ ├── devcontainer-feature.json
│ └── install.sh
├── squid-with-docker-example
└── squid.conf
├── .devcontainer
├── workspace-owner
│ └── devcontainer-feature.json
└── setup-for-claude-code
│ └── devcontainer-feature.json
├── README.md
├── static-analysis-maven-example
├── README.md
├── example-app
│ ├── .gitignore
│ └── src
│ │ └── main
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── App.java
├── example-tools
│ └── .gitignore
└── example-parent
│ └── .gitignore
├── visitor-example
├── README.rst
└── .gitignore
├── servlet-jsp-dispatch-example
├── src
│ └── main
│ │ └── webapp
│ │ └── WEB-INF
│ │ └── included.jsp
└── .gitignore
├── webrtc-study
└── README.md
├── .claude
└── commands
│ ├── commit-all.md
│ └── commit-staged.md
├── devcontainer-locally-referenced-features-example
└── .devcontainer
│ ├── foo
│ ├── devcontainer-feature.json
│ └── install.sh
│ └── install_bar.sh
├── playwright-visual-comparisons-example
├── docs
│ └── assets
│ │ ├── snapshot-diff.png
│ │ ├── snapshot-edited.png
│ │ └── snapshot-original.png
├── .gitignore
└── package.json
├── default-locale-timezone-example
├── README.md
└── .gitignore
├── litellm-example
├── litellm_config.yaml
└── compose.yaml
├── unreachable-statements
├── Sample5.java
├── Sample2.java
├── Sample4.java
├── Sample1.java
├── .gitignore
└── Sample3.java
├── docker-mirror-registry-example
└── docker_daemon.json
├── virtual-thread-example
└── virtual-thread-demo
│ ├── .mvn
│ └── wrapper
│ │ ├── maven-wrapper.jar
│ │ └── maven-wrapper.properties
│ ├── locustfile.py
│ ├── init.sql
│ ├── compose.yaml
│ └── src
│ └── main
│ └── resources
│ └── application.properties
├── hello-property-based-testing
├── src
│ └── test
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── Plus.java
└── .gitignore
├── typescript-example
└── src
│ └── nullable.ts
├── jackson-example
├── src
│ └── main
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── Tweet.java
└── .gitignore
├── swr-example
└── src
│ └── index.js
├── oauth2-example
├── README.md
├── oauth2-client-example
│ └── .gitignore
└── oauth2-authorization-server-example
│ └── .gitignore
├── irof
└── .gitignore
├── jwt-example
└── .gitignore
├── xml-sample
└── .gitignore
├── greenmail-sample
└── .gitignore
├── junit5-example
└── .gitignore
├── mockserver-example
└── .gitignore
├── serialize-example
└── .gitignore
├── class-traverse-example
├── .gitignore
└── src
│ └── main
│ └── webapp
│ └── WEB-INF
│ └── web.xml
├── fp-in-scala-exercise
└── .gitignore
├── jsp-customtag-scriptlet
└── .gitignore
├── lambda-calc-in-groovy
├── .gitignore
└── README.md
├── testcontainers-example
└── .gitignore
├── threadsafe-cache-demo
└── .gitignore
├── nimbus-servlet-oauth2-example
└── .gitignore
├── make-demo
└── Makefile
├── postgres-as-queue-with-skip-lock
├── src
│ └── main
│ │ ├── resources
│ │ └── application.properties
│ │ └── java
│ │ └── com
│ │ └── example
│ │ └── App.java
├── compose.yaml
└── init.sql
├── apache-httpd_mod_proxy_balancer-example
├── web1
│ └── index.html
└── web2
│ └── index.html
└── postmessage-example
└── README.md
/toylang/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
--------------------------------------------------------------------------------
/vectorizer/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/golang/files/foo/demo.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/golang/files/foo/xxx.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/tapl/README.md:
--------------------------------------------------------------------------------
1 | # TaPLの写経
2 |
--------------------------------------------------------------------------------
/fastapi-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
--------------------------------------------------------------------------------
/fastapi-example/app/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/golang/files/foo/bar/qux/demo.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/golang/files/foo/baz/demo.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/hello-fastapi/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
--------------------------------------------------------------------------------
/java-module/case1/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case1/lib/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case2/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case2/lib/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case3/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case3/lib/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case4/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case4/lib/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case5/bin/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case5/lib/.gitkeep:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/mlflow-example/app/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/python-coverage-example/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/python-embedding/app/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rabbitmq/README.md:
--------------------------------------------------------------------------------
1 | # RabbitMQ
2 |
--------------------------------------------------------------------------------
/claude-agent-sdk-example/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/golang/embedded-file/static/bar.txt:
--------------------------------------------------------------------------------
1 | Bar
--------------------------------------------------------------------------------
/golang/embedded-file/static/foo.txt:
--------------------------------------------------------------------------------
1 | Foo
--------------------------------------------------------------------------------
/langchain-example/scripts/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/langchain-example/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/langgraph-example/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/nexus-example/python/app/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/python-logging-example/app/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rust-examples/README.md:
--------------------------------------------------------------------------------
1 | # Rustで遊ぶ
2 |
--------------------------------------------------------------------------------
/streamlit-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.jsonl
--------------------------------------------------------------------------------
/vectorizer/.python-version:
--------------------------------------------------------------------------------
1 | 3.11
2 |
--------------------------------------------------------------------------------
/yq-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/golang/embedded-file/hello.txt:
--------------------------------------------------------------------------------
1 | Hello World
--------------------------------------------------------------------------------
/langfuse-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/lindera-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.11
2 |
--------------------------------------------------------------------------------
/mlflow-example/README.md:
--------------------------------------------------------------------------------
1 | # mlflow-example
--------------------------------------------------------------------------------
/nexus-example/maven/app/.gitignore:
--------------------------------------------------------------------------------
1 | target/
--------------------------------------------------------------------------------
/prefect-example/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__/
2 |
--------------------------------------------------------------------------------
/prefect-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.13
2 |
--------------------------------------------------------------------------------
/python-coverage-example/app/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/python-coverage-example/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/python-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.14
2 |
--------------------------------------------------------------------------------
/python-example/hello-requests/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/rust-examples/calc/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/streamlit-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/coding-agent-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/fastapi-example/Procfile:
--------------------------------------------------------------------------------
1 | web: fastapi run
2 |
--------------------------------------------------------------------------------
/garakuta/.gitattributes:
--------------------------------------------------------------------------------
1 | gradlew.bat binary
2 |
--------------------------------------------------------------------------------
/hello-fastapi/.tool-versions:
--------------------------------------------------------------------------------
1 | python 3.12.2
2 |
--------------------------------------------------------------------------------
/pydantic-ai-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/python-cosmosdb-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/python-coverage-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.11
2 |
--------------------------------------------------------------------------------
/python-embedding/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | *.pyc
3 |
--------------------------------------------------------------------------------
/python-example/.tool-versions:
--------------------------------------------------------------------------------
1 | python 3.11.10
2 |
--------------------------------------------------------------------------------
/python-example/hello-requests/.gitignore:
--------------------------------------------------------------------------------
1 | .venv/
--------------------------------------------------------------------------------
/python-logging-example/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__
--------------------------------------------------------------------------------
/python-playwright-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.png
2 |
--------------------------------------------------------------------------------
/python-pymupdf-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | data/
--------------------------------------------------------------------------------
/rust-examples/docker/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 |
3 |
--------------------------------------------------------------------------------
/rust-examples/example/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/solidjs-example/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/aws/python-lambda-docker-example/requirements.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/claude-agent-sdk-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/coding-agent-example/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__/
2 | .env
--------------------------------------------------------------------------------
/fetch-api-demo/.gitignore:
--------------------------------------------------------------------------------
1 | /node_modules/
2 |
3 |
--------------------------------------------------------------------------------
/go-solid-example/ui/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | dist
--------------------------------------------------------------------------------
/langchain-example/.tool-versions:
--------------------------------------------------------------------------------
1 | python 3.11.10
2 |
--------------------------------------------------------------------------------
/langfuse-example/.gitignore:
--------------------------------------------------------------------------------
1 | .env*
2 | !.env.example
--------------------------------------------------------------------------------
/langgraph-example/.tool-versions:
--------------------------------------------------------------------------------
1 | python 3.11.10
2 |
--------------------------------------------------------------------------------
/localhost-https-example/nginx/.gitignore:
--------------------------------------------------------------------------------
1 | *.pem
2 |
--------------------------------------------------------------------------------
/nexus-example/python/app/.python-version:
--------------------------------------------------------------------------------
1 | 3.13
2 |
--------------------------------------------------------------------------------
/python-selenium-docker-example/.gitignore:
--------------------------------------------------------------------------------
1 | out*.png
--------------------------------------------------------------------------------
/python-selenium-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | *.jsonl
--------------------------------------------------------------------------------
/rust-examples/docker/.dockerignore:
--------------------------------------------------------------------------------
1 | target/
2 |
3 |
--------------------------------------------------------------------------------
/rust-examples/multiple-binary/.gitignore:
--------------------------------------------------------------------------------
1 | /target
2 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 |
--------------------------------------------------------------------------------
/zip-japanese-file-name/日本語ディレクトリ/file.txt:
--------------------------------------------------------------------------------
1 | file
2 |
--------------------------------------------------------------------------------
/automaton/README.md:
--------------------------------------------------------------------------------
1 | アンダースタンディング・コンピュテーションの3章をGoで写経してみる。
--------------------------------------------------------------------------------
/busybox-demo/static/index.html:
--------------------------------------------------------------------------------
1 |
Hello World
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/pubapp/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/subapp/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/golang/files/go.mod:
--------------------------------------------------------------------------------
1 | module demo/files
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/flag/go.mod:
--------------------------------------------------------------------------------
1 | module demo/flag
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/http/go.mod:
--------------------------------------------------------------------------------
1 | module demo/http
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/json/go.mod:
--------------------------------------------------------------------------------
1 | module demo/json
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/sandbox/go.mod:
--------------------------------------------------------------------------------
1 | module sandbox
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/web/go.mod:
--------------------------------------------------------------------------------
1 | module example/web
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/xml/go.mod:
--------------------------------------------------------------------------------
1 | module demo/xml
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/java-module/case1/.gitignore:
--------------------------------------------------------------------------------
1 | *.jar
2 | *.class
3 |
4 |
--------------------------------------------------------------------------------
/java-module/case2/.gitignore:
--------------------------------------------------------------------------------
1 | *.jar
2 | *.class
3 |
4 |
--------------------------------------------------------------------------------
/java-module/case5/.gitignore:
--------------------------------------------------------------------------------
1 | *.jar
2 | *.class
3 |
4 |
--------------------------------------------------------------------------------
/langchain-example/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/localhost-https-example/api/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/lombok-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/python-cosmosdb-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | .mypy_cache
--------------------------------------------------------------------------------
/python-cosmosdb-example/Procfile:
--------------------------------------------------------------------------------
1 | web: python -m app.demo
--------------------------------------------------------------------------------
/python-embedding/data/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
3 |
--------------------------------------------------------------------------------
/python-example/hello-requests/.python-version:
--------------------------------------------------------------------------------
1 | 3.13
2 |
--------------------------------------------------------------------------------
/python-logging-example/.tool-versions:
--------------------------------------------------------------------------------
1 | python 3.13.1
2 |
--------------------------------------------------------------------------------
/python-selenium-docker-example/.python-version:
--------------------------------------------------------------------------------
1 | 3.13
2 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/.gitignore:
--------------------------------------------------------------------------------
1 | target/
2 |
--------------------------------------------------------------------------------
/zip-japanese-file-name/日本語ディレクトリ/日本語ファイル.txt:
--------------------------------------------------------------------------------
1 | 日本語ファイル
2 |
--------------------------------------------------------------------------------
/archunit-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/azure/python-blobstorage-example/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | *.pyc
3 |
--------------------------------------------------------------------------------
/azure/speech-example/.env.example:
--------------------------------------------------------------------------------
1 | SPEECH_SUBSCRIPTION_KEY=
2 |
--------------------------------------------------------------------------------
/azure/speech-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | static/
3 | .env
4 |
--------------------------------------------------------------------------------
/busybox-demo/proxy/public/index.html:
--------------------------------------------------------------------------------
1 | Hello, proxy!
2 |
--------------------------------------------------------------------------------
/failsafe-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/golang/testing/go.mod:
--------------------------------------------------------------------------------
1 | module demo/testing
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/jacoco-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/k8s/postgres/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/langchain-example/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | *.pyc
3 | dist/
4 | *.db
--------------------------------------------------------------------------------
/mediarecorder-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | *.wav
3 | *.mp3
4 |
--------------------------------------------------------------------------------
/progressbar-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
--------------------------------------------------------------------------------
/python-coverage-example/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__/
2 | .coverage
--------------------------------------------------------------------------------
/python-openai-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | *.jsonl
3 | .env
4 |
--------------------------------------------------------------------------------
/redis-example/redis.conf:
--------------------------------------------------------------------------------
1 | notify-keyspace-events Egx
2 |
3 |
--------------------------------------------------------------------------------
/service-worker-study/hello.txt:
--------------------------------------------------------------------------------
1 | Hello, Service Worker!!!
2 |
--------------------------------------------------------------------------------
/solidjs-example/README.md:
--------------------------------------------------------------------------------
1 | ```bash
2 | pnpm run dev
3 | ```
4 |
--------------------------------------------------------------------------------
/algorithm-introduction/.babelrc:
--------------------------------------------------------------------------------
1 | {
2 | "presets": ["env"]
3 | }
4 |
--------------------------------------------------------------------------------
/azure/python-webapp-example/startup.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | fastapi run
--------------------------------------------------------------------------------
/busybox-demo/proxy/httpd.conf:
--------------------------------------------------------------------------------
1 | P:/greeting:http://web/greeting
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/service-invocation/hello/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/service-invocation/world/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/state-management/counter/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/golang/process/go.mod:
--------------------------------------------------------------------------------
1 | module example/process
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/web/files/public/style.css:
--------------------------------------------------------------------------------
1 | h1 {
2 | color: blue;
3 | }
--------------------------------------------------------------------------------
/hello-jmh/.gitattributes:
--------------------------------------------------------------------------------
1 | gradlew.bat binary
2 | mvnw.cmd binary
3 |
--------------------------------------------------------------------------------
/jaxrs-async-sample/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/jaxrs-client-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/jmeter-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.log
2 | *.jtl
3 | dashboard/
4 |
5 |
--------------------------------------------------------------------------------
/langchain4j-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/mismatch-package/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | /target/
4 |
--------------------------------------------------------------------------------
/nginx-reverse-proxy-example/app/.dockerignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 |
--------------------------------------------------------------------------------
/pitest-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/postgresql-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/python-example/alembic/README:
--------------------------------------------------------------------------------
1 | Generic single-database configuration.
--------------------------------------------------------------------------------
/query-string-demo/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/resilience4j-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/vectorizer/.gitignore:
--------------------------------------------------------------------------------
1 | .venv/
2 | __pycache__/
3 | .env
4 | *.jsonl
--------------------------------------------------------------------------------
/azure/python-function-container-example/.dockerignore:
--------------------------------------------------------------------------------
1 | local.settings.json
--------------------------------------------------------------------------------
/boring-score-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/dagger/dagger-get-started/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 |
2 |
--------------------------------------------------------------------------------
/dapr-sandbox/js-sdk-example/add-app/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 |
--------------------------------------------------------------------------------
/dapr-sandbox/js-sdk-example/calc-app/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
3 |
--------------------------------------------------------------------------------
/docker-study/share-network-stack/docker/container1/public/foo:
--------------------------------------------------------------------------------
1 | FOO
2 |
--------------------------------------------------------------------------------
/docker-study/share-network-stack/docker/container3/public/bar:
--------------------------------------------------------------------------------
1 | BAR
2 |
--------------------------------------------------------------------------------
/golang/sandbox/cmd/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | func main() {
4 | }
5 |
--------------------------------------------------------------------------------
/hello-byteman/.gitattributes:
--------------------------------------------------------------------------------
1 | gradlew.bat binary
2 | mvnw.cmd binary
3 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/uv-requests/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/java-module/case3/.gitignore:
--------------------------------------------------------------------------------
1 | *.jar
2 | *.class
3 | custom-jre/
4 |
5 |
--------------------------------------------------------------------------------
/java-module/case4/.gitignore:
--------------------------------------------------------------------------------
1 | *.jar
2 | *.class
3 | custom-jre/
4 |
5 |
--------------------------------------------------------------------------------
/java-module/case6/bar/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/java-module/case6/foo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/jaxrs-parameter-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
--------------------------------------------------------------------------------
/lombok-demo/lombok.config:
--------------------------------------------------------------------------------
1 | lombok.addLombokGeneratedAnnotation = true
2 |
--------------------------------------------------------------------------------
/micrometer-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/react19rc/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/rename-jsessionid-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/docker-study/docker-compose-scale-example/app/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 |
--------------------------------------------------------------------------------
/doma-unified-criteria-example/.springjavaformatconfig:
--------------------------------------------------------------------------------
1 | indentation-style=spaces
--------------------------------------------------------------------------------
/duckdb-example/README.md:
--------------------------------------------------------------------------------
1 | # duckdb-example
2 |
3 | https://duckdb.org/
4 |
--------------------------------------------------------------------------------
/golang/embedded-file/go.mod:
--------------------------------------------------------------------------------
1 | module example/embedded-file
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/text-template/go.mod:
--------------------------------------------------------------------------------
1 | module demo/text-template
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/jpa-timeout-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/maven-profiles-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/nexus-example/npm/.npmrc:
--------------------------------------------------------------------------------
1 | registry=http://nexus:8081/repository/npm-group/
2 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-simple/README.md:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/react-example/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | npm install
3 | npm start
4 | ```
5 |
6 |
--------------------------------------------------------------------------------
/solidjs-buildless-example/README.md:
--------------------------------------------------------------------------------
1 | ```bash
2 | npx serve
3 | ```
4 |
5 |
--------------------------------------------------------------------------------
/azure/speech-example/ui/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/busybox-demo/web/public/greeting/hello.html:
--------------------------------------------------------------------------------
1 | Hello, world!(via proxy)
2 |
--------------------------------------------------------------------------------
/golang/embed_a_commit_hash/go.mod:
--------------------------------------------------------------------------------
1 | module embed_a_commit_hash
2 |
3 | go 1.20
4 |
--------------------------------------------------------------------------------
/golang/os-arch-example/go.mod:
--------------------------------------------------------------------------------
1 | module example/os-arch-example
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/jpa-ignore-version-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/mlflow-example/.gitignore:
--------------------------------------------------------------------------------
1 | mlruns/
2 | mlartifacts/
3 | .env*
4 | __pycache__/
5 |
--------------------------------------------------------------------------------
/polyglot-maven-example/README.md:
--------------------------------------------------------------------------------
1 | https://github.com/takari/polyglot-maven
2 |
3 |
--------------------------------------------------------------------------------
/react-example/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/react-markdown-example/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/src/lib.rs:
--------------------------------------------------------------------------------
1 | pub mod foo;
2 | pub mod bar;
3 |
4 |
--------------------------------------------------------------------------------
/servlet-fallback-indexhtml-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | /target/
4 |
--------------------------------------------------------------------------------
/yq-example/multi.yaml:
--------------------------------------------------------------------------------
1 | ---
2 | a: foo
3 | b: bar
4 | ---
5 | c: baz
6 | d: qux
7 |
--------------------------------------------------------------------------------
/zookeeper-leadership-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/automaton/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/backpaper0/sandbox/automaton
2 |
3 | go 1.20
4 |
--------------------------------------------------------------------------------
/dungeon-generation/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/golang/polymorphism-example/go.mod:
--------------------------------------------------------------------------------
1 | module demo/polymorphism-example
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/graalvm-native-image-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
6 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/nginx/tls/.gitignore:
--------------------------------------------------------------------------------
1 | *
2 | !.gitignore
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/uv-requests/.python-version:
--------------------------------------------------------------------------------
1 | 3.12
2 |
--------------------------------------------------------------------------------
/langgraph-example/.gitignore:
--------------------------------------------------------------------------------
1 | .env
2 | __pycache__/
3 | *.db*
4 | mlruns/
5 | mlartifacts/
--------------------------------------------------------------------------------
/nexus-example/nexus-setup/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM alpine
2 |
3 | RUN apk add --no-cache curl jq
--------------------------------------------------------------------------------
/polyglot-maven-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
6 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-simple/.gitignore:
--------------------------------------------------------------------------------
1 | __pycache__/
--------------------------------------------------------------------------------
/react-qrcode-examle/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/servlet-classloader-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 | tomcat/
5 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/azure/python-webapp-example/.gitignore:
--------------------------------------------------------------------------------
1 | .vars
2 | *.pyc
3 | *.zip
4 | requirements.txt
5 | .env
--------------------------------------------------------------------------------
/cloud-native-buildpacks-example/procfile-example/Procfile:
--------------------------------------------------------------------------------
1 | hello: echo Hello, world!
2 |
3 |
--------------------------------------------------------------------------------
/doma-unified-criteria-example/.gitattributes:
--------------------------------------------------------------------------------
1 | /mvnw text eol=lf
2 | *.cmd text eol=crlf
3 |
--------------------------------------------------------------------------------
/duckdb-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.csv
2 | *.db
3 | *.json
4 | *.jsonl
5 | *.parq
6 | *.parquet
7 |
--------------------------------------------------------------------------------
/go-solid-example/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/backpaper0/go-solid-example
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/maven-surefire-plugin-nested-class-example/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 |
5 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-fastapi/.python-version:
--------------------------------------------------------------------------------
1 | 3.13
2 |
--------------------------------------------------------------------------------
/rust-examples/docker/src/main.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | println!("Hello, world!");
3 | }
4 |
--------------------------------------------------------------------------------
/rust-examples/example/src/main.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | println!("Hello, world!");
3 | }
4 |
--------------------------------------------------------------------------------
/servlet-context-listener-error-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
--------------------------------------------------------------------------------
/garakuta/src/main/resources/example/resourcebundle/messages.properties:
--------------------------------------------------------------------------------
1 | hello=Hello, world!
2 |
--------------------------------------------------------------------------------
/garakuta/src/main/resources/example/resourcebundle/messages_de.properties:
--------------------------------------------------------------------------------
1 | hello=Hallo, welt!
2 |
--------------------------------------------------------------------------------
/java-module/case1/src/foo/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.foo {
2 | requires mod.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case2/src/foo/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.foo {
2 | requires mod.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case3/src/foo/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.foo {
2 | requires mod.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/localhost-https-example/spa/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/src/vite-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/react-handling-error-example/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/rust-examples/multiple-binary/src/bin/bar.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | println!("hello bar");
3 | }
4 |
--------------------------------------------------------------------------------
/rust-examples/multiple-binary/src/bin/foo.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 | println!("hello foo");
3 | }
4 |
--------------------------------------------------------------------------------
/vectorizer/README.md:
--------------------------------------------------------------------------------
1 | 埋め込みモデルでベクトル化する。
2 |
3 | ```bash
4 | TOTAL=334 uv run -m main
5 | ```
6 |
--------------------------------------------------------------------------------
/boring-score-example/README.md:
--------------------------------------------------------------------------------
1 | # ボーリングスコア計算の例
2 |
3 | - 参考:http://www.tokibow.com/tbchp/score.htm
4 |
--------------------------------------------------------------------------------
/docker-study/resource-limitation-demo/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | !.mvn/
4 | target/
5 |
6 |
--------------------------------------------------------------------------------
/golang/helloworld/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/backpaper0/sandbox/golang/helloworld
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/golang/shift_jis/go.mod:
--------------------------------------------------------------------------------
1 | module demo/sjis
2 |
3 | go 1.19
4 |
5 | require golang.org/x/text v0.9.0
6 |
--------------------------------------------------------------------------------
/java-module/case1/src/bar/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case2/src/baz/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.baz {
2 | exports com.example.baz;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case3/src/baz/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.baz {
2 | exports com.example.baz;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case4/src/bar/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case5/src/bar/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/java-module/case6/bar/src/module/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | }
--------------------------------------------------------------------------------
/java-module/case6/foo/src/module/java/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.foo {
2 | requires mod.bar;
3 | }
--------------------------------------------------------------------------------
/langchain-example/README.md:
--------------------------------------------------------------------------------
1 | # LangChain example
2 |
3 | [LangChain](https://python.langchain.com/)を試す。
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-fastapi/.gitignore:
--------------------------------------------------------------------------------
1 | *.pyc
2 | .env.secret
3 |
--------------------------------------------------------------------------------
/rust-examples/docker/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | docker build -t demo .
3 | docker run --rm demo
4 | ```
5 |
6 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/src/bar.rs:
--------------------------------------------------------------------------------
1 | pub fn get() -> String {
2 | "bar".to_string()
3 | }
4 |
--------------------------------------------------------------------------------
/streamlit-example/.streamlit/secrets.toml:
--------------------------------------------------------------------------------
1 | [connections.mydb]
2 | type = "sql"
3 | url = "sqlite:///mydb"
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/README.md:
--------------------------------------------------------------------------------
1 | https://flywaydb.org/documentation/learnmore/faq#parallel
2 |
--------------------------------------------------------------------------------
/golang/parser-example/go.mod:
--------------------------------------------------------------------------------
1 | module github.com/backpaper0/sandbox/golang/parser-example
2 |
3 | go 1.19
4 |
--------------------------------------------------------------------------------
/lindera-example/README.md:
--------------------------------------------------------------------------------
1 | - https://github.com/lindera/lindera
2 | - https://github.com/lindera/lindera-py
--------------------------------------------------------------------------------
/nexus-example/npm/app/main.mjs:
--------------------------------------------------------------------------------
1 | import chalk from 'chalk';
2 |
3 | console.log(chalk.blue('Hello world!'));
--------------------------------------------------------------------------------
/scripts/js/executable-js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | "use strict";
3 |
4 | console.log('Hello, world!');
5 |
--------------------------------------------------------------------------------
/docker-study/share-network-stack/docker/container1/proxy/httpd.conf:
--------------------------------------------------------------------------------
1 | P:/bar:http://localhost:8090/bar
2 |
3 |
--------------------------------------------------------------------------------
/docker-study/share-network-stack/docker/container2/proxy/httpd.conf:
--------------------------------------------------------------------------------
1 | P:/bar:http://container3:8090/bar
2 |
3 |
--------------------------------------------------------------------------------
/golang/.gitignore:
--------------------------------------------------------------------------------
1 | # go buildで生成される実行ファイルを除くため、拡張子を持たないファイルを無視する
2 | *
3 | !*/
4 | !*.*
5 | !Makefile
6 |
7 |
--------------------------------------------------------------------------------
/java-module/case6/bar/src/module/java/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | }
4 |
--------------------------------------------------------------------------------
/javaee-startup-sample/.gitignore:
--------------------------------------------------------------------------------
1 | .*
2 | !.gitignore
3 | target/
4 | src/main/webapp/WEB-INF/classes/
5 |
6 |
--------------------------------------------------------------------------------
/javaee-startup-sample/src/main/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension:
--------------------------------------------------------------------------------
1 | app.CdiStartup
--------------------------------------------------------------------------------
/mismatch-package/src/main/java/com/example/App3.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class App3 {
4 | }
5 |
--------------------------------------------------------------------------------
/postgresql-example/src/test/resources/readonly_example.yml:
--------------------------------------------------------------------------------
1 | readonly_example:
2 | - id: 1
3 | val: foo
4 |
--------------------------------------------------------------------------------
/python-example/.gitignore:
--------------------------------------------------------------------------------
1 | *.svg
2 | *.crt
3 | *.pyc
4 | *.db
5 | *.jsonl
6 | *.pkl
7 | *.bin
8 | data/data.json
--------------------------------------------------------------------------------
/react-example/src/splash.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/react-example/src/splash.png
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/src/baz.rs:
--------------------------------------------------------------------------------
1 | pub fn get() -> String {
2 | "baz -> qux".to_string()
3 | }
4 |
--------------------------------------------------------------------------------
/busybox-demo/README.md:
--------------------------------------------------------------------------------
1 | [BusyBoxのhttpd](https://zenn.dev/backpaper0/articles/dd4f122cd387f9c043c4)で試したコード例。
2 |
3 |
--------------------------------------------------------------------------------
/docker-study/build-arg/test.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo FOO1=$FOO1
4 | echo FOO2=$FOO2
5 | echo BAR=$BAR
6 |
7 |
--------------------------------------------------------------------------------
/ebiten-example/assets/robo1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/ebiten-example/assets/robo1.png
--------------------------------------------------------------------------------
/ebiten-example/assets/robo2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/ebiten-example/assets/robo2.png
--------------------------------------------------------------------------------
/ebiten-example/assets/robo3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/ebiten-example/assets/robo3.png
--------------------------------------------------------------------------------
/html-css-js-example/fixed-header-on-scroll-react/src/react-app-env.d.ts:
--------------------------------------------------------------------------------
1 | ///
2 |
--------------------------------------------------------------------------------
/mismatch-package/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package mismatch.package_;
2 |
3 | public class App {
4 | }
5 |
--------------------------------------------------------------------------------
/python-example/data/fruits.csv:
--------------------------------------------------------------------------------
1 | フルーツ名,色,平均重量(グラム)
2 | りんご,赤,200
3 | バナナ,黄色,120
4 | オレンジ,橙色,150
5 | ぶどう,紫,5
6 | キウイ,緑,90
--------------------------------------------------------------------------------
/scripts/breakout/README.md:
--------------------------------------------------------------------------------
1 | https://developer.mozilla.org/ja/docs/Games/Workflows/2D_Breakout_game_pure_JavaScript
2 |
--------------------------------------------------------------------------------
/scripts/vim/hello.vim:
--------------------------------------------------------------------------------
1 | let i = 0
2 | while i < 10
3 | echo 'hello world #'.i
4 | let i += 1
5 | endwhile
6 |
7 |
--------------------------------------------------------------------------------
/archunit-example/src/main/java/com/example/sub/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.sub;
2 |
3 | public class Bar {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/golang/testing/hello.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | func Hello(name string) string {
4 | return "Hello, " + name + "!"
5 | }
6 |
--------------------------------------------------------------------------------
/golang/testing/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import "fmt"
4 |
5 | func main() {
6 | fmt.Println(Hello("world"))
7 | }
8 |
--------------------------------------------------------------------------------
/javaee-startup-sample/src/main/resources/META-INF/services/jakarta.servlet.ServletContainerInitializer:
--------------------------------------------------------------------------------
1 | app.ServletStartup1
--------------------------------------------------------------------------------
/langfuse-example/.env.example:
--------------------------------------------------------------------------------
1 | LANGFUSE_PUBLIC_KEY=
2 | LANGFUSE_SECRET_KEY=
3 | LANGFUSE_HOST=http://localhost:3000
4 |
--------------------------------------------------------------------------------
/nexus-example/python/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM python:alpine
2 |
3 | RUN pip install uv \
4 | && mkdir -p /root/.config/uv
5 |
--------------------------------------------------------------------------------
/progressbar-example/README.md:
--------------------------------------------------------------------------------
1 | https://github.com/ctongfei/progressbar を試す。
2 |
3 | ```bash
4 | mvn exec:java
5 | ```
6 |
--------------------------------------------------------------------------------
/python-logging-example/README.md:
--------------------------------------------------------------------------------
1 | # python-logging-example
2 |
3 | https://zenn.dev/backpaper0/articles/57d31ded6ba9fa
4 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/src/lib.rs:
--------------------------------------------------------------------------------
1 | pub mod foo;
2 | mod bar;
3 | pub mod baz;
4 |
5 | pub use baz as qux;
6 |
7 |
--------------------------------------------------------------------------------
/ebiten-example/assets/backpaper0.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/ebiten-example/assets/backpaper0.png
--------------------------------------------------------------------------------
/golang/helloworld/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import "fmt"
4 |
5 | func main() {
6 | fmt.Println("Hello World")
7 | }
8 |
--------------------------------------------------------------------------------
/java-module/case2/src/bar/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | requires mod.baz;
4 | }
5 |
--------------------------------------------------------------------------------
/java-module/case3/src/bar/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.bar {
2 | exports com.example.bar;
3 | requires mod.baz;
4 | }
5 |
--------------------------------------------------------------------------------
/python-example/scripts/ulid-example.py:
--------------------------------------------------------------------------------
1 | from ulid import ULID
2 |
3 | id = ULID()
4 |
5 | print(str(id))
6 | print(id.hex)
7 |
--------------------------------------------------------------------------------
/doma-unified-criteria-example/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=doma-unified-criteria-example
2 |
--------------------------------------------------------------------------------
/http-session-example/src/main/resources/META-INF/services/javax.servlet.ServletContainerInitializer:
--------------------------------------------------------------------------------
1 | com.example.SessionTimeoutConfig
--------------------------------------------------------------------------------
/k8s/postgres/src/main/java/com/example/Comic.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public record Comic(int id, String title) {
4 | }
5 |
--------------------------------------------------------------------------------
/langchain-example/.flake8:
--------------------------------------------------------------------------------
1 | [flake8]
2 | max-line-length = 200
3 | exclude = .git,__pycache__,docs/source/conf.py,old,build,dist
4 |
--------------------------------------------------------------------------------
/prefect-example/prefect_webconsole.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/prefect-example/prefect_webconsole.png
--------------------------------------------------------------------------------
/python-example/ruff.toml:
--------------------------------------------------------------------------------
1 | exclude = [
2 | ".mypy_cache",
3 | ".git",
4 | ]
5 |
6 | [lint]
7 | ignore = ["E731", "E741"]
8 |
--------------------------------------------------------------------------------
/python-example/main.py:
--------------------------------------------------------------------------------
1 | def main():
2 | print("Hello from python-example!")
3 |
4 |
5 | if __name__ == "__main__":
6 | main()
7 |
--------------------------------------------------------------------------------
/coding-agent-example/.env.example:
--------------------------------------------------------------------------------
1 | LANGFUSE_PUBLIC_KEY=pk-lf-...
2 | LANGFUSE_SECRET_KEY=sk-lf-...
3 | LANGFUSE_HOST=http://localhost:3000
4 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/classclass/ExampleClass.java:
--------------------------------------------------------------------------------
1 | package example.classclass;
2 |
3 | public class ExampleClass {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/k8s/postgres/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/k8s/postgres/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/azure/speech-example/docs/assets/screenshot.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/azure/speech-example/docs/assets/screenshot.png
--------------------------------------------------------------------------------
/doma-unified-criteria-example/src/main/resources/data.sql:
--------------------------------------------------------------------------------
1 | insert into animals (name, species) select * from csvread('src/main/resources/data.csv');
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/src/main/resources/db/migration/V2__Create_table_bar.sql:
--------------------------------------------------------------------------------
1 | create table bar (id serial, content varchar(100));
2 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/classclass/ExampleInterface.java:
--------------------------------------------------------------------------------
1 | package example.classclass;
2 |
3 | public interface ExampleInterface {
4 | }
5 |
--------------------------------------------------------------------------------
/garakuta/src/test/java/example/javacompiler/classes/Baz.java:
--------------------------------------------------------------------------------
1 | package example.javacompiler.classes;
2 |
3 | public interface Baz {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/nexus-example/python/app/main.py:
--------------------------------------------------------------------------------
1 | import click
2 |
3 | if __name__ == "__main__":
4 | click.secho("Hello, world!", fg="green", bold=True)
5 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/src/main.rs:
--------------------------------------------------------------------------------
1 | use demo::foo;
2 |
3 | fn main() {
4 | let i = foo::run(10);
5 | println!("{}", i);
6 | }
7 |
--------------------------------------------------------------------------------
/solidjs-buildless-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
--------------------------------------------------------------------------------
/streamlit-example/README.md:
--------------------------------------------------------------------------------
1 | # Streamlit example
2 |
3 | - https://docs.streamlit.io/develop/api-reference
4 | - https://altair-viz.github.io/
5 |
--------------------------------------------------------------------------------
/streamlit-example/sql-connection-example.py:
--------------------------------------------------------------------------------
1 | import streamlit as st
2 |
3 | conn = st.connection("mydb")
4 |
5 | st.write(f"conn = {conn}")
6 |
--------------------------------------------------------------------------------
/azure/python-function-example/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-azuretools.vscode-azurefunctions"
4 | ]
5 | }
--------------------------------------------------------------------------------
/devcontainer-features-example/src/hello/devcontainer-feature.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "hello",
3 | "version": "1.0.0",
4 | "name": "Hello World"
5 | }
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/src/main/resources/db/migration/V1__Create_table_foo.sql:
--------------------------------------------------------------------------------
1 | create table foo (id serial, content varchar(100));
2 |
3 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/circuitbreaker/State.java:
--------------------------------------------------------------------------------
1 | package circuitbreaker;
2 |
3 | public enum State {
4 | OPEN,
5 | HALF_OPEN,
6 | CLOSED
7 | }
8 |
--------------------------------------------------------------------------------
/golang/embed_a_commit_hash/README.md:
--------------------------------------------------------------------------------
1 | # バイナリにコミットハッシュを埋め込む
2 |
3 | ```bash
4 | go build -ldflags "-X main.revision=$(git rev-parse @)"
5 | ```
6 |
7 |
--------------------------------------------------------------------------------
/mismatch-package/src/main/java/com/example/App4.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class App4 {
4 | Class> clazz = App3.class;
5 | }
6 |
--------------------------------------------------------------------------------
/python-embedding/.flake8:
--------------------------------------------------------------------------------
1 | [flake8]
2 | max-line-length = 120
3 |
4 | too-many-arguments = 10
5 |
6 | exclude =
7 | .git,
8 | __pycache__
9 |
--------------------------------------------------------------------------------
/squid-with-docker-example/squid.conf:
--------------------------------------------------------------------------------
1 | acl allowed_sites dstdomain .github.com
2 | http_access allow allowed_sites
3 | http_access deny !allowed_sites
4 |
--------------------------------------------------------------------------------
/.devcontainer/workspace-owner/devcontainer-feature.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "workspace-owner",
3 | "version": "1.0.0",
4 | "name": "Workspace owner"
5 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # 遊び場
2 |
3 | ## なにこれ
4 |
5 | なんやかんやと遊ぶ場。
6 |
7 | ## ライセンス
8 |
9 | [The MIT License](https://opensource.org/licenses/MIT)
10 |
11 |
--------------------------------------------------------------------------------
/azure/app-service-ropc-example/docs/assets/scope.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/azure/app-service-ropc-example/docs/assets/scope.png
--------------------------------------------------------------------------------
/docker-study/oracle/init-sql/02_insert_sample_data.sql:
--------------------------------------------------------------------------------
1 | INSERT INTO Accounts (user_id, user_name)
2 | VALUES ('backpaper0', 'URAGAMI Taichi');
3 |
4 |
--------------------------------------------------------------------------------
/doma-unified-criteria-example/src/main/resources/schema.sql:
--------------------------------------------------------------------------------
1 | create table animals (
2 | id identity,
3 | name varchar,
4 | species varchar
5 | );
--------------------------------------------------------------------------------
/garakuta/src/test/java/example/javacompiler/classes/Qux.java:
--------------------------------------------------------------------------------
1 | package example.javacompiler.classes;
2 |
3 | @MyComponent
4 | public class Qux {
5 |
6 | }
7 |
--------------------------------------------------------------------------------
/nginx-reverse-proxy-example/app/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM node
2 |
3 | ADD . /app
4 |
5 | WORKDIR /app
6 |
7 | RUN npm ci
8 |
9 | CMD npm start
10 |
11 |
--------------------------------------------------------------------------------
/static-analysis-maven-example/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | mvn -f example-tools/pom.xml install
3 | mvn -f example-app/pom.xml checkstyle:check
4 | ```
5 |
6 |
--------------------------------------------------------------------------------
/visitor-example/README.rst:
--------------------------------------------------------------------------------
1 | Visitorパターンについて考えた
2 | ================================
3 |
4 | * http://backpaper0.github.io/2013/12/22/visitor.html
5 |
6 |
--------------------------------------------------------------------------------
/azure/python-function-container-example/.vscode/extensions.json:
--------------------------------------------------------------------------------
1 | {
2 | "recommendations": [
3 | "ms-azuretools.vscode-azurefunctions"
4 | ]
5 | }
--------------------------------------------------------------------------------
/fastapi-example/README.md:
--------------------------------------------------------------------------------
1 | # fastapi-example
2 |
3 | FastAPIを色々試す場所にするつもり。
4 |
5 | ## コンテナイメージを作る
6 |
7 | ```
8 | pack build example-app
9 | ```
10 |
--------------------------------------------------------------------------------
/fetch-api-demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "scripts": {
3 | "start": "node app.js"
4 | },
5 | "dependencies": {
6 | "express": "^4.19.2"
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/parser/combinator/Converter.java:
--------------------------------------------------------------------------------
1 | package parser.combinator;
2 |
3 | public interface Converter {
4 | Object to(Object value);
5 | }
6 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/parser/expression/ParseException.java:
--------------------------------------------------------------------------------
1 | package parser.expression;
2 |
3 | public class ParseException extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/python-coverage-example/app/foobar.py:
--------------------------------------------------------------------------------
1 | def foo(text: str) -> str:
2 | return text.upper()
3 |
4 |
5 | def bar(x: int, y: int) -> int:
6 | return x + y
7 |
--------------------------------------------------------------------------------
/servlet-jsp-dispatch-example/src/main/webapp/WEB-INF/included.jsp:
--------------------------------------------------------------------------------
1 | <%@ page contentType="text/html; charset=UTF-8" session="false" %>
2 | included
3 |
4 |
--------------------------------------------------------------------------------
/webrtc-study/README.md:
--------------------------------------------------------------------------------
1 | # WebRTCで遊ぶ
2 |
3 | ## 使っているライブラリ
4 |
5 | * [MediaStreamRecorder.js](https://github.com/streamproc/MediaStreamRecorder): 録画できる
6 |
7 |
--------------------------------------------------------------------------------
/.claude/commands/commit-all.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: 変更をすべてコミットする
3 | ---
4 | Please commit all changes.
5 | After committing, please display the commit message.
6 |
--------------------------------------------------------------------------------
/dagger/dagger-get-started/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/dagger/dagger-get-started/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/classclass/ExampleAbstractClass.java:
--------------------------------------------------------------------------------
1 | package example.classclass;
2 |
3 | public abstract class ExampleAbstractClass {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/resourcebundle/ResourceBundleExample.java:
--------------------------------------------------------------------------------
1 | package example.resourcebundle;
2 |
3 | public class ResourceBundleExample {
4 |
5 | }
6 |
--------------------------------------------------------------------------------
/graalvm-native-image-demo/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/graalvm-native-image-demo/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/jaxrs-parameter-example/src/main/java/param/ParamConverted.java:
--------------------------------------------------------------------------------
1 | package param;
2 |
3 | public interface ParamConverted {
4 |
5 | String getValue();
6 | }
7 |
--------------------------------------------------------------------------------
/k8s/network-policy/config.yaml:
--------------------------------------------------------------------------------
1 | kind: Cluster
2 | apiVersion: kind.x-k8s.io/v1alpha4
3 | networking:
4 | disableDefaultCNI: true
5 | podSubnet: "192.168.0.0/16"
6 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | mvn verify
3 | mvn verify -Pjetty
4 | mvn verify -Pwildfly
5 | mvn verify -Ppayara
6 | mvn verify -Ptomee
7 | ```
8 |
9 |
--------------------------------------------------------------------------------
/devcontainer-locally-referenced-features-example/.devcontainer/foo/devcontainer-feature.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "foo",
3 | "version": "1.0.0",
4 | "name": "Foo"
5 | }
--------------------------------------------------------------------------------
/golang/flag/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | go run main.go --foo=hello -bar 456 -baz
3 | ```
4 |
5 | ```
6 | # go build
7 | ./flag --foo=hello -bar 456 -baz
8 | ```
9 |
10 |
--------------------------------------------------------------------------------
/java-module/case4/src/foo/module-info.java:
--------------------------------------------------------------------------------
1 | module mod.foo {
2 | requires mod.bar;
3 | // bazはautomatic mmoduleなのでJARの名前がモジュール名になる
4 | requires baz;
5 | }
6 |
--------------------------------------------------------------------------------
/jaxrs-client-example/src/test/resources/META-INF/services/org.glassfish.jersey.client.spi.ConnectorProvider:
--------------------------------------------------------------------------------
1 | org.glassfish.jersey.apache.connector.ApacheConnectorProvider
2 |
--------------------------------------------------------------------------------
/rust-examples/functions/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "functions"
3 | version = "0.1.0"
4 | authors = ["Taichi Uragami "]
5 |
6 | [dependencies]
7 |
--------------------------------------------------------------------------------
/rust-examples/ownership/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "ownership"
3 | version = "0.1.0"
4 | authors = ["Taichi Uragami "]
5 |
6 | [dependencies]
7 |
--------------------------------------------------------------------------------
/scripts/git-head-hash.groovy:
--------------------------------------------------------------------------------
1 | //groovy scripts/git-head-hash.groovy
2 | println new File('.git/' + new File('.git/HEAD').text.trim().replaceAll('ref: ', '')).text.trim()
3 |
--------------------------------------------------------------------------------
/servlet-classloader-example/README.md:
--------------------------------------------------------------------------------
1 |
2 | Tomcat 9
3 |
4 | ```
5 | mvn verify
6 | ```
7 |
8 | Payra 5
9 |
10 | ```
11 | mvn -P payara verify
12 | ```
13 |
14 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/src/foo.rs:
--------------------------------------------------------------------------------
1 | use crate::bar;
2 |
3 | pub fn get() -> String {
4 | let s = bar::get();
5 | format!("hello foo{}", s).to_string()
6 | }
7 |
--------------------------------------------------------------------------------
/.claude/commands/commit-staged.md:
--------------------------------------------------------------------------------
1 | ---
2 | description: ステージングされている変更をコミットする
3 | ---
4 | Please commit the staged changes.
5 | After committing, please display the commit message.
6 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/circuitbreaker/CircuitBreakerOpenException.java:
--------------------------------------------------------------------------------
1 | package circuitbreaker;
2 |
3 | public class CircuitBreakerOpenException extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/staticinitializer/FooBarException.java:
--------------------------------------------------------------------------------
1 | package example.staticinitializer;
2 |
3 | public class FooBarException extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/mismatch-package/src/main/java/com/example/App2.java:
--------------------------------------------------------------------------------
1 | package jp.urgm;
2 |
3 | import mismatch.package_.App;
4 |
5 | public class App2 {
6 | Class> clazz = App.class;
7 | }
8 |
--------------------------------------------------------------------------------
/nexus-example/docker/daemon.json:
--------------------------------------------------------------------------------
1 | {
2 | "insecure-registries": [
3 | "nexus:5000"
4 | ],
5 | "registry-mirrors": [
6 | "http://nexus:5000"
7 | ]
8 | }
--------------------------------------------------------------------------------
/pydantic-ai-example/README.md:
--------------------------------------------------------------------------------
1 | # Pydantic AI example
2 |
3 | とりまHello Worldやってみた。
4 |
5 | https://ai.pydantic.dev/#hello-world-example
6 |
7 | ```bash
8 | uv run task main
9 | ```
--------------------------------------------------------------------------------
/react-handling-error-example/README.md:
--------------------------------------------------------------------------------
1 | # エラーハンドリングの例
2 |
3 | `onerror`は`npm start`だとどうしてもReactの(というかWebPackの?)エラー画面が表示されてしまう様子。
4 |
5 | `npm run build`したものだと想定通りにハンドリングされている。
6 |
--------------------------------------------------------------------------------
/react-markdown-example/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": [],
3 | "references": [
4 | { "path": "./tsconfig.app.json" },
5 | { "path": "./tsconfig.node.json" }
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/scripts/js/generator.js:
--------------------------------------------------------------------------------
1 | function* f(){
2 | yield 1
3 | yield 2
4 | yield 3
5 | }
6 |
7 | let g = f()
8 |
9 | for (let i of g) {
10 | console.log(i);
11 | }
12 |
--------------------------------------------------------------------------------
/scripts/js/then-composition.js:
--------------------------------------------------------------------------------
1 | const f = new Promise(resolve => setTimeout(() => resolve('hello'), 1000))
2 |
3 | f.then(x => x + ' world')
4 | .then(x => console.log(x))
5 |
6 |
--------------------------------------------------------------------------------
/yq-example/README.md:
--------------------------------------------------------------------------------
1 | # yqの例
2 |
3 | [yq](https://github.com/kislyuk/yq)を試す。
4 |
5 | ## Jupyter Notebookの起動
6 |
7 | ```bash
8 | uv run jupyter notebook
9 | ```
10 |
11 |
--------------------------------------------------------------------------------
/azure/speech-example/ui/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": [],
3 | "references": [
4 | { "path": "./tsconfig.app.json" },
5 | { "path": "./tsconfig.node.json" }
6 | ]
7 | }
8 |
--------------------------------------------------------------------------------
/busybox-demo/cgi/cgi-bin/index.cgi:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 |
3 | # レスポンスヘッダーまたは空行から開始する必要がある
4 | printf "\r\n"
5 | printf "Hello, $(whoami)!
"
6 | # 設定された環境変数を見たい場合は次の行のコメントを外す
7 | # env
8 |
--------------------------------------------------------------------------------
/docker-study/oracle/init-sql/01_create_tables.sql:
--------------------------------------------------------------------------------
1 | CREATE TABLE Accounts (
2 | user_id VARCHAR2(20),
3 | user_name VARCHAR2(100),
4 | PRIMARY KEY (user_id)
5 | );
6 |
7 |
--------------------------------------------------------------------------------
/golang/sandbox/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: all
2 | all: clean test
3 |
4 | .PHONY: clean
5 | clean:
6 | @go clean -testcache
7 |
8 | .PHONY: test
9 | test:
10 | @go test ./...
11 |
12 |
--------------------------------------------------------------------------------
/golang/shift_jis/go.sum:
--------------------------------------------------------------------------------
1 | golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
2 | golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
3 |
--------------------------------------------------------------------------------
/java-module/case1/src/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | public class Bar {
4 | @Override
5 | public String toString() {
6 | return "Bar";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case2/src/baz/Baz.java:
--------------------------------------------------------------------------------
1 | package com.example.baz;
2 |
3 | public class Baz {
4 | @Override
5 | public String toString() {
6 | return "Baz";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case3/src/baz/Baz.java:
--------------------------------------------------------------------------------
1 | package com.example.baz;
2 |
3 | public class Baz {
4 | @Override
5 | public String toString() {
6 | return "Baz";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case4/src/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | public class Bar {
4 | @Override
5 | public String toString() {
6 | return "Bar";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case4/src/baz/Baz.java:
--------------------------------------------------------------------------------
1 | package com.example.baz;
2 |
3 | public class Baz {
4 | @Override
5 | public String toString() {
6 | return "Baz";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case5/src/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | public class Bar {
4 | @Override
5 | public String toString() {
6 | return "Bar";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/nexus-example/python/uv.toml:
--------------------------------------------------------------------------------
1 | allow-insecure-host = ["nexus:8081"]
2 |
3 | [[index]]
4 | name = "nexus"
5 | url = "http://nexus:8081/repository/pypi-group/simple/"
6 | default = true
7 |
--------------------------------------------------------------------------------
/playwright-visual-comparisons-example/docs/assets/snapshot-diff.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/playwright-visual-comparisons-example/docs/assets/snapshot-diff.png
--------------------------------------------------------------------------------
/rust-examples/calc/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "calc"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/rust-examples/docker/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "demo"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/rust-examples/primitive-types/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "primitive-types"
3 | version = "0.1.0"
4 | authors = ["Taichi Uragami "]
5 |
6 | [dependencies]
7 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/src/main/java/com/example/exception/MyException1.java:
--------------------------------------------------------------------------------
1 | package com.example.exception;
2 |
3 | public class MyException1 extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/src/main/java/com/example/exception/MyException2.java:
--------------------------------------------------------------------------------
1 | package com.example.exception;
2 |
3 | public class MyException2 extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/src/main/java/com/example/exception/MyException3.java:
--------------------------------------------------------------------------------
1 | package com.example.exception;
2 |
3 | public class MyException3 extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/aws/python-lambda-docker-example/app.py:
--------------------------------------------------------------------------------
1 | def lambda_handler(event, context):
2 | return {
3 | 'statusCode': 200,
4 | 'body': 'Hello from Dockerized Lambda!'
5 | }
6 |
--------------------------------------------------------------------------------
/azure/python-webapp-example/.env.example:
--------------------------------------------------------------------------------
1 | AZURE_OPENAI_API_KEY=
2 | AZURE_OPENAI_ENDPOINT=https://.openai.azure.com/
3 | AZURE_OPENAI_DEPLOYMENT_NAME=
4 | OPENAI_API_VERSION=2024-06-01
5 |
--------------------------------------------------------------------------------
/default-locale-timezone-example/README.md:
--------------------------------------------------------------------------------
1 |
2 | ```bash
3 | docker run --rm -v $HOME/.m2:/root/.m2 -v $PWD:/workspace -w /workspace maven:3-eclipse-temurin-17 mvn clean verify
4 | ```
5 |
6 |
--------------------------------------------------------------------------------
/litellm-example/litellm_config.yaml:
--------------------------------------------------------------------------------
1 | model_list:
2 | - model_name: gpt-oss
3 | litellm_params:
4 | model: ollama/gpt-oss:20b
5 | api_base: http://host.docker.internal:11434
6 |
--------------------------------------------------------------------------------
/playwright-visual-comparisons-example/docs/assets/snapshot-edited.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/playwright-visual-comparisons-example/docs/assets/snapshot-edited.png
--------------------------------------------------------------------------------
/python-playwright-example/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | poetry add playwright
3 | ```
4 |
5 | ```
6 | python -m playwright install
7 | ```
8 |
9 | ```
10 | python helloworld.py
11 | ```
12 |
--------------------------------------------------------------------------------
/rust-examples/example/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "example"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/rust-examples/example/src/bin/environment_var.rs:
--------------------------------------------------------------------------------
1 | use std::env;
2 |
3 | fn main() {
4 | for (key, val) in env::vars() {
5 | println!("{}={}", key, val);
6 | }
7 | }
8 |
9 |
--------------------------------------------------------------------------------
/rust-examples/variable-bindings/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "variable-bindings"
3 | version = "0.1.0"
4 | authors = ["Taichi Uragami "]
5 |
6 | [dependencies]
7 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/src/main/java/com/example/exception/ChainException1a.java:
--------------------------------------------------------------------------------
1 | package com.example.exception;
2 |
3 | public class ChainException1a extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/servlet-error-handling-demo/src/main/java/com/example/exception/ChainException1b.java:
--------------------------------------------------------------------------------
1 | package com.example.exception;
2 |
3 | public class ChainException1b extends RuntimeException {
4 | }
5 |
--------------------------------------------------------------------------------
/unreachable-statements/Sample5.java:
--------------------------------------------------------------------------------
1 | public class Sample5 {
2 | public void ifSample() {
3 | if(true) {
4 | System.out.println("到達可能");
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/azure/app-service-ropc-example/docs/assets/allow_public_client_flow.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/azure/app-service-ropc-example/docs/assets/allow_public_client_flow.png
--------------------------------------------------------------------------------
/azure/app-service-ropc-example/docs/assets/tenant_id_and_client_id.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/azure/app-service-ropc-example/docs/assets/tenant_id_and_client_id.png
--------------------------------------------------------------------------------
/dungeon-generation/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | ReactDOM.render(, document.getElementById('root'));
6 |
--------------------------------------------------------------------------------
/java-module/case6/bar/src/main/java/com/example/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | public class Bar {
4 | @Override
5 | public String toString() {
6 | return "Bar";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/playwright-visual-comparisons-example/docs/assets/snapshot-original.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/playwright-visual-comparisons-example/docs/assets/snapshot-original.png
--------------------------------------------------------------------------------
/python-example/scripts/hello.py:
--------------------------------------------------------------------------------
1 | # %%
2 | import os
3 | from dotenv import load_dotenv
4 |
5 | # %%
6 | load_dotenv()
7 |
8 | # %%
9 | v = os.environ.get("HELLO_DOTENV")
10 | print(v)
11 |
--------------------------------------------------------------------------------
/unreachable-statements/Sample2.java:
--------------------------------------------------------------------------------
1 | public class Sample2 {
2 | public void forSample() {
3 | for(;false;) {
4 | System.out.println("到達不能!");
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/unreachable-statements/Sample4.java:
--------------------------------------------------------------------------------
1 | public class Sample4 {
2 | public void ifSample() {
3 | if(false) {
4 | System.out.println("到達不能!");
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/docker-mirror-registry-example/docker_daemon.json:
--------------------------------------------------------------------------------
1 | {
2 | "registry-mirrors": [
3 | "http://mirror:5000"
4 | ],
5 | "insecure-registries": [
6 | "mirror:5000"
7 | ]
8 | }
--------------------------------------------------------------------------------
/garakuta/src/main/java/SemicolonlessHello.java:
--------------------------------------------------------------------------------
1 | public class SemicolonlessHello {
2 |
3 | public static void main(final String[] args) {
4 | System.out.println("Hello world!")\u003b
5 | }
6 | }
7 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/annotation/inherited/Fuga.java:
--------------------------------------------------------------------------------
1 | package example.annotation.inherited;
2 |
3 | public class Fuga extends Hoge {
4 | @Override
5 | public void method1() {
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/golang/embed_a_commit_hash/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "fmt"
5 | )
6 |
7 | var revision string
8 |
9 | func main() {
10 | fmt.Printf("Revision: %v\n", revision)
11 | }
12 |
--------------------------------------------------------------------------------
/hello-byteman/task.btm:
--------------------------------------------------------------------------------
1 | RULE create task
2 | CLASS com.example.Task
3 | METHOD create
4 | AT ENTRY
5 | BIND content = $1
6 | IF true
7 | DO traceln(content), traceStack()
8 | ENDRULE
9 |
10 |
--------------------------------------------------------------------------------
/hello-jmh/README.md:
--------------------------------------------------------------------------------
1 | # hello-jmh
2 |
3 | ```console
4 | mvnw package
5 | java -jar target/benchmarks.jar -h
6 | java -jar target/benchmarks.jar -f 1 -i 3 -wi 3 -prof stack:line=5;top=30
7 | ```
8 |
9 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "demo"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/rust-examples/references-and-borrowing/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "references-and-borrowing"
3 | version = "0.1.0"
4 | authors = ["Taichi Uragami "]
5 |
6 | [dependencies]
7 |
--------------------------------------------------------------------------------
/scripts/executable-java:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env java --source 17
2 |
3 | public class App {
4 | public static void main(String[] args) {
5 | System.out.println("Hello, world!");
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/unreachable-statements/Sample1.java:
--------------------------------------------------------------------------------
1 | public class Sample1 {
2 | public void whileSample() {
3 | while(false) {
4 | System.out.println("到達不能!");
5 | }
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/.mvn/wrapper/maven-wrapper.jar:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/virtual-thread-example/virtual-thread-demo/.mvn/wrapper/maven-wrapper.jar
--------------------------------------------------------------------------------
/algorithm-introduction/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "babel-preset-env": "^1.6.1",
4 | "jest": "^29.3.1"
5 | },
6 | "scripts": {
7 | "test": "jest"
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/rust-examples/multiple-binary/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "multiple-binary"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/Cargo.lock:
--------------------------------------------------------------------------------
1 | # This file is automatically @generated by Cargo.
2 | # It is not intended for manual editing.
3 | [[package]]
4 | name = "split-sourcecode"
5 | version = "0.1.0"
6 |
--------------------------------------------------------------------------------
/vectorizer/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | kvs:
3 | image: valkey/valkey
4 | ports:
5 | - "6379:6379"
6 | volumes:
7 | - "kvs_data:/data"
8 |
9 | volumes:
10 | kvs_data: {}
--------------------------------------------------------------------------------
/coding-agent-example/state.py:
--------------------------------------------------------------------------------
1 | from typing import TypedDict
2 |
3 | from langchain_core.messages import BaseMessage
4 |
5 |
6 | class State(TypedDict):
7 | query: str
8 | messages: list[BaseMessage]
9 |
--------------------------------------------------------------------------------
/docker-study/oracle/docker-entrypoint-initdb.d/02_create_tables.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | for i in /var/init-sql/*.sql;do
3 | /u01/app/oracle/product/11.2.0/xe/bin/sqlplus "backpaper0/secret" @"$i"
4 | done
5 |
6 |
--------------------------------------------------------------------------------
/jacoco-example/src/main/java/com/example/HelloService.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class HelloService {
4 |
5 | public String sayHello(String name) {
6 | return "Hello " + name;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/python-example/initdb/init.sql:
--------------------------------------------------------------------------------
1 | create table messages (
2 | id serial primary key,
3 | content text not null
4 | );
5 |
6 | insert into messages (content) values ('foo'), ('bar'), ('baz'), ('qux');
7 |
--------------------------------------------------------------------------------
/azure/python-blobstorage-example/.env.example:
--------------------------------------------------------------------------------
1 | BLOB_ACCOUNT_URL=http://localhost:10000/devstoreaccount1
2 | BLOB_ACCOUNT_KEY=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==
3 |
--------------------------------------------------------------------------------
/golang/csv/go.mod:
--------------------------------------------------------------------------------
1 | module demo/csv
2 |
3 | go 1.19
4 |
5 | require (
6 | golang.org/x/mod v0.10.0 // indirect
7 | golang.org/x/sys v0.7.0 // indirect
8 | golang.org/x/tools v0.8.0 // indirect
9 | )
10 |
--------------------------------------------------------------------------------
/python-coverage-example/tests/test_bar.py:
--------------------------------------------------------------------------------
1 | import unittest
2 |
3 | import app.foobar as fb
4 |
5 |
6 | class TestBar(unittest.TestCase):
7 | def test_bar(self):
8 | self.assertEqual(fb.bar(1, 2), 3)
9 |
--------------------------------------------------------------------------------
/react19rc/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": [],
3 | "references": [
4 | {
5 | "path": "./tsconfig.app.json"
6 | },
7 | {
8 | "path": "./tsconfig.node.json"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/react19rc/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/src/bar.rs:
--------------------------------------------------------------------------------
1 | use crate::foo;
2 |
3 | pub fn run(i: i32) -> i32 {
4 | if i == 0 {
5 | 0
6 | } else {
7 | i + foo::run(i - 1)
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/src/foo.rs:
--------------------------------------------------------------------------------
1 | use crate::bar;
2 |
3 | pub fn run(i: i32) -> i32 {
4 | if i == 0 {
5 | 0
6 | } else {
7 | i + bar::run(i - 1)
8 | }
9 | }
10 |
11 |
--------------------------------------------------------------------------------
/streamlit-example/.streamlit/config.toml:
--------------------------------------------------------------------------------
1 | [logger]
2 | #level = "debug"
3 |
4 | [client]
5 | #toolbarMode = "minimal"
6 |
7 | [server]
8 | headless = true
9 |
10 | [theme]
11 | #primaryColor = "#0000ff"
12 |
--------------------------------------------------------------------------------
/azure/python-blobstorage-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | azurite:
3 | image: mcr.microsoft.com/azure-storage/azurite
4 | ports:
5 | - "10000:10000"
6 | - "10001:10001"
7 | - "10002:10002"
8 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/staticinitializer/Bar.java:
--------------------------------------------------------------------------------
1 | package example.staticinitializer;
2 |
3 | public class Bar {
4 | static {
5 | if (true) {
6 | throw new FooBarException();
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/staticinitializer/Foo.java:
--------------------------------------------------------------------------------
1 | package example.staticinitializer;
2 |
3 | public class Foo {
4 | static {
5 | if (true) {
6 | throw new FooBarException();
7 | }
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/golang/process/README.md:
--------------------------------------------------------------------------------
1 | # 外部プロセスの呼び出しを試す
2 |
3 | 最初にビルドをして実行バイナリを作成しておくこと。
4 |
5 | ```bash
6 | go build
7 | ```
8 |
9 | `process`という名前の実行バイナリが作成されたらテストを実行する。
10 |
11 | ```bash
12 | go test -v
13 | ```
14 |
--------------------------------------------------------------------------------
/jaxrs-async-sample/README.md:
--------------------------------------------------------------------------------
1 | # JAX-RSのAsyncResponseとCompletableFutureを使ったサンプル
2 |
3 | 準備。
4 |
5 | ```sh
6 | mvn cargo:install
7 | ```
8 |
9 | Arquillianを使ったテスト実行。
10 |
11 | ```
12 | mvn test
13 | ```
14 |
15 |
--------------------------------------------------------------------------------
/python-coverage-example/tests/test_foo.py:
--------------------------------------------------------------------------------
1 | import unittest
2 |
3 | import app.foobar as fb
4 |
5 |
6 | class TestFoo(unittest.TestCase):
7 | def test_foo(self):
8 | self.assertEqual(fb.foo("abc"), "ABC")
9 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/locustfile.py:
--------------------------------------------------------------------------------
1 | from locust import HttpUser, task
2 |
3 | class Demo(HttpUser):
4 | @task
5 | def demo(self):
6 | self.client.get("/demo", params={ "id": 1 })
7 |
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/src/main/resources/db/migration/V3__Setup_data.sql:
--------------------------------------------------------------------------------
1 | insert into foo (content) values ('aaa');
2 | insert into foo (content) values ('bbb');
3 | insert into bar (content) values ('ccc');
4 |
--------------------------------------------------------------------------------
/garakuta/README.md:
--------------------------------------------------------------------------------
1 | # sandbox/garakuta
2 |
3 | [](https://github.com/backpaper0/sandbox/actions/workflows/garakuta.yml)
4 |
--------------------------------------------------------------------------------
/golang/shift_jis/README.md:
--------------------------------------------------------------------------------
1 | # Shift_JISのCSVファイルを扱う
2 |
3 | ```bash
4 | go get -u golang.org/x/text
5 | ```
6 |
7 | - https://pkg.go.dev/golang.org/x/text/encoding
8 | - https://pkg.go.dev/golang.org/x/text/encoding/japanese
9 |
--------------------------------------------------------------------------------
/hello-property-based-testing/src/test/java/com/example/Plus.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class Plus {
4 |
5 | public static int plus(final int a, final int b) {
6 | return a + b;
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/html-css-js-example/fixed-header-on-scroll-react/src/index.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | ReactDOM.render(, document.getElementById('root'));
6 |
--------------------------------------------------------------------------------
/lombok-demo/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class App {
4 |
5 | public static void main(String[] args) {
6 | System.out.println(new Foobar("foo", "bar"));
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/playwright-visual-comparisons-example/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules/
2 | /test-results/
3 | /playwright-report/
4 | /blob-report/
5 | /playwright/.cache/
6 |
7 | # 実際のプロジェクトではスナップショットをバージョン管理するが、これはexampleなので無視する
8 | *.ts-snapshots/
--------------------------------------------------------------------------------
/react-markdown-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/init.sql:
--------------------------------------------------------------------------------
1 | create table messages (
2 | id int primary key,
3 | text_content text not null
4 | );
5 |
6 | insert into messages (id, text_content) values (1, 'Hello, world!');
7 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/circuitbreaker/CallingException.java:
--------------------------------------------------------------------------------
1 | package circuitbreaker;
2 |
3 | public class CallingException extends RuntimeException {
4 |
5 | public CallingException(Exception e) {
6 | super(e);
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/jmeter-example/README.md:
--------------------------------------------------------------------------------
1 | # JMeter Example
2 |
3 | ## JSON Extractor Example
4 |
5 | ```
6 | jmeter -n -t json-extractor-example.jmx -e -l log.jtl -o dashboard
7 | # rm -fr jmeter.log log.jtl dashboard
8 | ```
9 |
10 |
--------------------------------------------------------------------------------
/python-example/hello-requests/main.py:
--------------------------------------------------------------------------------
1 | import requests
2 |
3 |
4 | def main():
5 | resp = requests.get("https://api.github.com/zen")
6 | print(resp.text)
7 |
8 |
9 | if __name__ == "__main__":
10 | main()
11 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/manual_tracing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/manual_tracing.png
--------------------------------------------------------------------------------
/redis-example/README.md:
--------------------------------------------------------------------------------
1 | # Redis Example
2 |
3 | ## com.example.DelExpiredEventDemo
4 |
5 | https://redis.io/topics/notifications
6 |
7 | - `E` Keyeventイベントが欲しいため
8 | - `g` DELコマンドのイベント発火のため
9 | - `x` Expiredイベント発火のため
10 |
--------------------------------------------------------------------------------
/rename-jsessionid-demo/README.md:
--------------------------------------------------------------------------------
1 | セッションIDをトラッキングするCookieの名前を変更する例。
2 | そして`JSESSIONID`を別の用途で使ってみる。
3 |
4 | ```
5 | mvn package cargo:run
6 | ```
7 |
8 | - http://localhost:8080/1
9 | - http://localhost:8080/2
10 |
11 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/src/main.rs:
--------------------------------------------------------------------------------
1 | use split_sourcecode::{foo, qux};
2 |
3 | fn main() {
4 | let s = foo::get();
5 | println!("{}", s);
6 |
7 | let s = qux::get();
8 | println!("{}", s);
9 | }
10 |
--------------------------------------------------------------------------------
/scripts/js/promise-return-value.js:
--------------------------------------------------------------------------------
1 | const executor = resolve => setTimeout(() => resolve('foo'), 1000)
2 | const p = new Promise(executor)
3 | p.then(x => x + ' bar')
4 | .then(x => x + ' baz')
5 | .then(x => console.log(x))
6 |
--------------------------------------------------------------------------------
/typescript-example/src/nullable.ts:
--------------------------------------------------------------------------------
1 | function foo(bar?: string) {
2 | console.log("[foo]", bar);
3 | }
4 |
5 | foo("hello");
6 | foo();
7 | foo(undefined);
8 | //foo(null);
9 | foo("");
10 | //foo(123); //compile error
11 |
--------------------------------------------------------------------------------
/fastapi-example/app/main.py:
--------------------------------------------------------------------------------
1 | from fastapi import FastAPI
2 | from .reverse_proxy.reverse_proxy import router as reverse_proxy_router
3 |
4 | app = FastAPI()
5 |
6 | app.include_router(reverse_proxy_router, prefix="/reverse-proxy")
7 |
--------------------------------------------------------------------------------
/golang/os-arch-example/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "fmt"
5 | "runtime"
6 | )
7 |
8 | func main() {
9 | fmt.Printf("GOOS=%v\n", runtime.GOOS)
10 | fmt.Printf("GOARCH=%v\n", runtime.GOARCH)
11 | }
12 |
13 |
--------------------------------------------------------------------------------
/golang/sandbox/snippet/snippet.go:
--------------------------------------------------------------------------------
1 | package snippet
2 |
3 | // 配列を反転させる
4 | func ReverseArray(a []int) {
5 | n := len(a)
6 | for i, m := 0, n/2; i < m; i++ {
7 | j := n - i - 1
8 | a[i], a[j] = a[j], a[i]
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/k8s/postgres/src/main/resources/db/migration/V1__demo.sql:
--------------------------------------------------------------------------------
1 | create table comics (
2 | id serial primary key,
3 | title varchar(100) not null
4 | );
5 |
6 | insert into comics (title) values ('2.5次元の誘惑'), ('ココロのプログラム'), ('正反対な君と僕');
7 |
--------------------------------------------------------------------------------
/langgraph-example/app/__init__.py:
--------------------------------------------------------------------------------
1 | import mlflow
2 |
3 | # mlflow.set_tracking_uri("http://localhost:5000")
4 | # or MLFLOW_TRACKING_URI=http://localhost:5000
5 | mlflow.langchain.autolog()
6 | mlflow.set_experiment("langgraph-example")
--------------------------------------------------------------------------------
/nexus-example/npm/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "app",
3 | "version": "1.0.0",
4 | "dependencies": {
5 | "chalk": "^5.6.0"
6 | },
7 | "scripts": {
8 | "start": "npm install && node main.mjs"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/langchain_tracing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/langchain_tracing.png
--------------------------------------------------------------------------------
/yq-example/pyproject.toml:
--------------------------------------------------------------------------------
1 | [project]
2 | name = "yq-example"
3 | version = "0.1.0"
4 | description = "yq examples"
5 | readme = "README.md"
6 | requires-python = ">=3.12"
7 | dependencies = [
8 | "notebook>=7.4.7",
9 | ]
10 |
--------------------------------------------------------------------------------
/docker-study/oracle/docker-entrypoint-initdb.d/01_create_user.sql:
--------------------------------------------------------------------------------
1 | CREATE USER backpaper0
2 | IDENTIFIED BY "secret"
3 | DEFAULT TABLESPACE users
4 | TEMPORARY TABLESPACE temp
5 | ;
6 |
7 | GRANT DBA TO backpaper0;
8 |
9 |
--------------------------------------------------------------------------------
/jackson-example/src/main/java/com/example/Tweet.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import java.time.LocalDateTime;
4 |
5 | public record Tweet(
6 | String content,
7 | @LocalDateTimeJacksonAnnotations LocalDateTime timestamp) {
8 | }
9 |
--------------------------------------------------------------------------------
/java-module/case6/bar/src/main/java/com/example/bar/internal/InternalBar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar.internal;
2 |
3 | public class InternalBar {
4 | @Override
5 | public String toString() {
6 | return "InternalBar";
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/distributed_tracing.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/backpaper0/sandbox/HEAD/python-opentelemetry-example/python-opentelemetry-example-fastapi/doc/distributed_tracing.png
--------------------------------------------------------------------------------
/python-selenium-example/example-app/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite'
2 | import react from '@vitejs/plugin-react'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | })
8 |
--------------------------------------------------------------------------------
/servlet-context-listener-error-demo/README.md:
--------------------------------------------------------------------------------
1 | ```
2 | mvn package
3 | ```
4 |
5 | ```
6 | mvn cargo:run
7 | mvn cargo:run -Pjetty
8 | mvn cargo:run -Pwildfly
9 | mvn cargo:run -Ppayara
10 | mvn cargo:run -Ptomee
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/servlet-context-listener-error-demo/src/main/java/com/example/MyException.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class MyException extends RuntimeException {
4 | public MyException(String message) {
5 | super(message);
6 | }
7 | }
8 |
--------------------------------------------------------------------------------
/docker-study/docker-compose-scale-example/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "app",
3 | "version": "1.0.0",
4 | "scripts": {
5 | "start": "node app.js"
6 | },
7 | "dependencies": {
8 | "express": "^4.17.3"
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/java-module/case2/src/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | import com.example.baz.Baz;
4 |
5 | public class Bar {
6 | @Override
7 | public String toString() {
8 | return "Bar, " + new Baz();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/java-module/case3/src/bar/Bar.java:
--------------------------------------------------------------------------------
1 | package com.example.bar;
2 |
3 | import com.example.baz.Baz;
4 |
5 | public class Bar {
6 | @Override
7 | public String toString() {
8 | return "Bar, " + new Baz();
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/lindera-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Python-generated files
2 | __pycache__/
3 | *.py[oc]
4 | build/
5 | dist/
6 | wheels/
7 | *.egg-info
8 |
9 | # Virtual environments
10 | .venv
11 |
12 | nablarch-document/
13 | index/
14 | .vscode/
15 | .env
--------------------------------------------------------------------------------
/python-example/scripts/type_error.py:
--------------------------------------------------------------------------------
1 | def foo(a: str) -> str:
2 | if a < 0:
3 | return 0
4 | return a + 0
5 |
6 |
7 | a: int = foo("FOO")
8 | b: str = foo(0)
9 | c: str = foo("FOO")
10 |
11 | d = "bar"
12 | e = d + 0
13 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/tsconfig.json:
--------------------------------------------------------------------------------
1 | {
2 | "files": [],
3 | "references": [
4 | {
5 | "path": "./tsconfig.app.json"
6 | },
7 | {
8 | "path": "./tsconfig.node.json"
9 | }
10 | ]
11 | }
12 |
--------------------------------------------------------------------------------
/devcontainer-features-example/src/hello/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -euo pipefail
3 |
4 | cat << EOF > /usr/local/bin/hello
5 | #!/bin/bash
6 | set -euo pipefail
7 |
8 | echo "Hello World"
9 | EOF
10 |
11 | chmod +x /usr/local/bin/hello
--------------------------------------------------------------------------------
/zookeeper-leadership-example/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | zookeeper:
5 | image: confluentinc/cp-zookeeper
6 | ports:
7 | - 2181:2181
8 | environment:
9 | ZOOKEEPER_CLIENT_PORT: 2181
10 |
11 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/components/subscription.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: dapr.io/v1alpha1
2 | kind: Subscription
3 | metadata:
4 | name: pubsub-demo
5 | spec:
6 | topic: demo
7 | route: /subscribe
8 | pubsubname: pubsub
9 | scopes:
10 | - subapp
11 |
--------------------------------------------------------------------------------
/fastapi-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | reverse-proxy:
3 | image: nginx
4 | ports: [ "8080:80" ]
5 | volumes:
6 | - "./docker/reverse-proxy/nginx.conf:/etc/nginx/conf.d/default.conf:ro"
7 | # app:
8 | # image: example-app
9 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/classclass/ExampleEnum.java:
--------------------------------------------------------------------------------
1 | package example.classclass;
2 |
3 | public enum ExampleEnum {
4 |
5 | VALUE1,
6 | VALUE2 {
7 | @Override
8 | void m() {
9 | }
10 | };
11 |
12 | void m() {
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/graalvm-native-image-demo/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class App {
4 |
5 | public static void main(String[] args) {
6 | System.out.println("hello");
7 | System.err.println("world");
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/java-module/case1/src/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | import com.example.bar.Bar;
4 |
5 | public class Foo {
6 | public static void main(String[] args) {
7 | System.out.println("Foo, " + new Bar());
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/java-module/case2/src/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | import com.example.bar.Bar;
4 |
5 | public class Foo {
6 | public static void main(String[] args) {
7 | System.out.println("Foo, " + new Bar());
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/java-module/case5/src/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | import com.example.bar.Bar;
4 |
5 | public class Foo {
6 | public static void main(String[] args) {
7 | System.out.println("Foo, " + new Bar());
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/maven-surefire-plugin-nested-class-example/src/test/java/com/example/CccTests.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.junit.jupiter.api.Test;
4 |
5 | //実行される
6 | public class CccTests {
7 |
8 | @Test
9 | void test() {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/maven-surefire-plugin-nested-class-example/src/test/java/com/example/TestBbb.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.junit.jupiter.api.Test;
4 |
5 | // 実行される
6 | public class TestBbb {
7 |
8 | @Test
9 | void test() {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/nexus-example/python/app/pyproject.toml:
--------------------------------------------------------------------------------
1 | [project]
2 | name = "app"
3 | version = "0.1.0"
4 | description = "Add your description here"
5 | readme = "README.md"
6 | requires-python = ">=3.13"
7 | dependencies = [
8 | "click>=8.2.1",
9 | ]
10 |
--------------------------------------------------------------------------------
/pitest-demo/src/main/java/com/example/Calc.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class Calc {
4 |
5 | public int add(int a, int b) {
6 | return a + b;
7 | }
8 |
9 | public int sub(int a, int b) {
10 | return a - b;
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/dagger/dagger-get-started/README.md:
--------------------------------------------------------------------------------
1 | # dagger-get-started
2 |
3 | Go SDKの環境を整える。
4 |
5 | - https://docs.dagger.io/sdk/go/959738/get-started
6 |
7 | CIを行う。
8 | Spring Bootアプリケーションをビルドするようにしている。
9 |
10 | ```sh
11 | go run main.go
12 | ```
13 |
14 |
--------------------------------------------------------------------------------
/docker-study/oracle/run.sh:
--------------------------------------------------------------------------------
1 | #!/bin/sh
2 | docker run -d \
3 | -p 1521:1521 -p 1022:22 \
4 | -v `pwd`/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d \
5 | -v `pwd`/init-sql:/var/init-sql \
6 | --name=oracle wnameless/oracle-xe-11g
7 |
8 |
--------------------------------------------------------------------------------
/k8s/job/job.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: batch/v1
2 | kind: Job
3 | metadata:
4 | name: hello
5 | spec:
6 | template:
7 | spec:
8 | containers:
9 | - name: hello
10 | image: hello-world
11 | restartPolicy: OnFailure
12 |
13 |
--------------------------------------------------------------------------------
/maven-surefire-plugin-nested-class-example/src/test/java/com/example/DddTestCase.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.junit.jupiter.api.Test;
4 |
5 | // 実行される
6 | public class DddTestCase {
7 |
8 | @Test
9 | void test() {
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/go-solid-example/.gitignore:
--------------------------------------------------------------------------------
1 | # go buildで生成される実行ファイルを除くため、拡張子を持たないファイルを無視する
2 | *
3 | !*/
4 | !*.*
5 | !Makefile
6 | !LICENSE
7 | !Dockerfile
8 |
9 | # Windows用の成果物を無視する
10 | *.exe
11 |
12 | .*
13 | !.gitignore
14 | !.dockerignore
15 | !.github
16 |
17 |
--------------------------------------------------------------------------------
/lindera-example/pyproject.toml:
--------------------------------------------------------------------------------
1 | [project]
2 | name = "lindera-example"
3 | version = "0.1.0"
4 | description = "Add your description here"
5 | readme = "README.md"
6 | requires-python = ">=3.11"
7 | dependencies = [
8 | "lindera-py>=0.41.0",
9 | ]
10 |
--------------------------------------------------------------------------------
/dapr-sandbox/js-sdk-example/components/subscription.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: dapr.io/v1alpha1
2 | kind: Subscription
3 | metadata:
4 | name: add-pubsub
5 | spec:
6 | topic: add
7 | route: /route-pubsub-add
8 | pubsubname: pubsub
9 | scopes:
10 | - add-app
11 |
--------------------------------------------------------------------------------
/flyway-concurrent-execution-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | postgres:
3 | image: postgres
4 | environment:
5 | POSTGRES_DB: example
6 | POSTGRES_USER: example
7 | POSTGRES_PASSWORD: example
8 | ports:
9 | - 5432:5432
10 |
--------------------------------------------------------------------------------
/nexus-example/maven/app/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | /**
4 | * Hello world!
5 | */
6 | public class App {
7 | public static void main(String[] args) {
8 | System.out.println("Hello World!");
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/swr-example/src/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import ReactDOM from 'react-dom';
3 | import App from './App';
4 |
5 | ReactDOM.render(
6 |
7 |
8 | ,
9 | document.getElementById('root')
10 | );
11 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/annotation/inherited/Foo.java:
--------------------------------------------------------------------------------
1 | package example.annotation.inherited;
2 |
3 | import java.lang.annotation.Retention;
4 | import java.lang.annotation.RetentionPolicy;
5 |
6 | @Retention(RetentionPolicy.RUNTIME)
7 | public @interface Foo {
8 | }
9 |
--------------------------------------------------------------------------------
/jaxrs-async-sample/src/main/java/sample/SampleApplication.java:
--------------------------------------------------------------------------------
1 | package sample;
2 |
3 | import jakarta.ws.rs.ApplicationPath;
4 | import jakarta.ws.rs.core.Application;
5 |
6 | @ApplicationPath("api")
7 | public class SampleApplication extends Application {
8 | }
9 |
--------------------------------------------------------------------------------
/oauth2-example/README.md:
--------------------------------------------------------------------------------
1 | # OAuth 2.0 example
2 |
3 | - [The OAuth 2.0 Authorization Framework](https://openid-foundation-japan.github.io/rfc6749.ja.html)
4 | - [WWW-Authenticate - HTTP | MDN](https://developer.mozilla.org/ja/docs/Web/HTTP/Headers/WWW-Authenticate)
5 |
6 |
--------------------------------------------------------------------------------
/.devcontainer/setup-for-claude-code/devcontainer-feature.json:
--------------------------------------------------------------------------------
1 | {
2 | "id": "setup-for-claude-code",
3 | "version": "1.0.0",
4 | "name": "Setup for Claude Code",
5 | "installsAfter": [
6 | "ghcr.io/anthropics/devcontainer-features/claude-code"
7 | ]
8 | }
--------------------------------------------------------------------------------
/garakuta/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/irof/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/litellm-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | litellm:
3 | image: ghcr.io/berriai/litellm:main-latest
4 | ports: ["4000:4000"]
5 | command: ["--config", "/app/config.yaml", "--detailed_debug"]
6 | volumes:
7 | - ./litellm_config.yaml:/app/config.yaml:ro
8 |
9 |
--------------------------------------------------------------------------------
/polyglot-maven-example/.mvn/extensions.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | io.takari.polyglot
5 | polyglot-yaml
6 | 0.4.6
7 |
8 |
9 |
--------------------------------------------------------------------------------
/react19rc/src/main.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react'
2 | import ReactDOM from 'react-dom/client'
3 | import App from './App.tsx'
4 |
5 | ReactDOM.createRoot(document.getElementById('root')!).render(
6 |
7 |
8 | ,
9 | )
10 |
--------------------------------------------------------------------------------
/scripts/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/devcontainer-locally-referenced-features-example/.devcontainer/foo/install.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "Install foo"
4 |
5 | cat > /usr/local/bin/foo \
6 | << EOF
7 | #!/bin/sh
8 | echo "Foo $(TZ=Asia/Tokyo date -Iseconds)"
9 | EOF
10 |
11 | chmod +x /usr/local/bin/foo
12 |
--------------------------------------------------------------------------------
/docker-study/multi-stage-build-demo/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu as foo
2 | WORKDIR /workspace
3 | RUN touch ./foo
4 |
5 | FROM ubuntu as bar
6 | WORKDIR /workspace
7 | RUN touch ./bar
8 |
9 | FROM foo
10 | COPY --from=bar /workspace/bar ./
11 | CMD ["ls", "/workspace"]
12 |
13 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/classclass/ExampleAnnotation.java:
--------------------------------------------------------------------------------
1 | package example.classclass;
2 |
3 | import java.lang.annotation.Retention;
4 | import java.lang.annotation.RetentionPolicy;
5 |
6 | @Retention(RetentionPolicy.RUNTIME)
7 | public @interface ExampleAnnotation {
8 | }
9 |
--------------------------------------------------------------------------------
/golang/sandbox/cnst/cnst1/cnst.go:
--------------------------------------------------------------------------------
1 | package cnst1
2 |
3 | type myConstA int
4 |
5 | const (
6 | MyEnumA1 myConstA = iota
7 | MyEnumA2
8 | MyEnumA3
9 | )
10 |
11 | type MyConstB int
12 |
13 | const (
14 | MyEnumB1 MyConstB = iota
15 | MyEnumB2
16 | MyEnumB3
17 | )
18 |
--------------------------------------------------------------------------------
/golang/sandbox/types/type.go:
--------------------------------------------------------------------------------
1 | package types
2 |
3 | type TypeExample1 struct {
4 | i int
5 | s string
6 | }
7 |
8 | type TypeExample2 interface {
9 | }
10 |
11 | type DefinedTypeExample int
12 |
13 | type TypeAliasExample = int
14 |
15 | type DefinedTypeExample2 int
16 |
--------------------------------------------------------------------------------
/hello-byteman/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/hello-byteman/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class App {
4 |
5 | public static void main(final String[] args) {
6 | final TaskStore taskStore = new TaskStore();
7 | taskStore.addTask("やること1");
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/hello-fastapi/test_main.py:
--------------------------------------------------------------------------------
1 | import unittest
2 | from fastapi.testclient import TestClient
3 | from main import app
4 |
5 | class TestMain(unittest.TestCase):
6 |
7 | def test_read_root(self):
8 | with TestClient(app) as client:
9 | client.get("/")
10 |
--------------------------------------------------------------------------------
/hello-jmh/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/jwt-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/redis-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/redis-example/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: '3.8'
2 |
3 | services:
4 | redis:
5 | image: redis
6 | ports:
7 | - 6379:6379
8 | volumes:
9 | - ./redis.conf:/usr/local/etc/redis/redis.conf
10 | command: redis-server /usr/local/etc/redis/redis.conf
11 |
--------------------------------------------------------------------------------
/rust-examples/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/scripts/md/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/xml-sample/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/azure/speech-example/ui/src/main.tsx:
--------------------------------------------------------------------------------
1 | import { StrictMode } from 'react'
2 | import { createRoot } from 'react-dom/client'
3 | import App from './App.tsx'
4 |
5 | createRoot(document.getElementById('root')!).render(
6 |
7 |
8 | ,
9 | )
10 |
--------------------------------------------------------------------------------
/garakuta/src/test/java/example/javacompiler/classes/MyComponent.java:
--------------------------------------------------------------------------------
1 | package example.javacompiler.classes;
2 |
3 | import java.lang.annotation.Retention;
4 | import java.lang.annotation.RetentionPolicy;
5 |
6 | @Retention(RetentionPolicy.SOURCE)
7 | public @interface MyComponent {
8 | }
9 |
--------------------------------------------------------------------------------
/graalvm-native-image-demo/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.5.6/maven-wrapper-0.5.6.jar
3 |
--------------------------------------------------------------------------------
/greenmail-sample/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/jackson-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/junit5-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/k8s/postgres/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
3 |
--------------------------------------------------------------------------------
/mockserver-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/rabbitmq/hello/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/react-markdown-example/src/main.tsx:
--------------------------------------------------------------------------------
1 | import { StrictMode } from 'react'
2 | import { createRoot } from 'react-dom/client'
3 | import App from './App.tsx'
4 |
5 | createRoot(document.getElementById('root')!).render(
6 |
7 |
8 | ,
9 | )
10 |
--------------------------------------------------------------------------------
/rust-examples/docker/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM rust:alpine
2 | WORKDIR /workspace
3 | COPY src ./src
4 | COPY Cargo.toml .
5 | COPY Cargo.lock .
6 | RUN cargo build --release
7 |
8 | FROM alpine
9 | WORKDIR /runtime
10 | COPY --from=0 /workspace/target/release/demo .
11 | CMD ["./demo"]
12 |
--------------------------------------------------------------------------------
/serialize-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/visitor-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/algorithm-introduction/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/class-traverse-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/fp-in-scala-exercise/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/annotation/inherited/Hoge.java:
--------------------------------------------------------------------------------
1 | package example.annotation.inherited;
2 |
3 | @Foo
4 | @Bar
5 | public class Hoge {
6 |
7 | @Foo
8 | @Bar
9 | public void method1() {
10 | }
11 |
12 | @Foo
13 | @Bar
14 | public void method2() {
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/http-session-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/jsp-customtag-scriptlet/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/lambda-calc-in-groovy/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/polyglot-maven-example/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | /**
4 | * Hello world!
5 | *
6 | */
7 | public class App
8 | {
9 | public static void main( String[] args )
10 | {
11 | System.out.println( "Hello World!" );
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/scripts/js/all-sample.js:
--------------------------------------------------------------------------------
1 | const a = new Promise(resolve => setTimeout(resolve, 1000, 'hello'))
2 | const b = ' '
3 | const c = new Promise(resolve => setTimeout(resolve, 200, 'world'))
4 |
5 | // b は Promise.resolve(b) に変換される
6 | Promise.all([a, b, c]).then(x => console.log(x.join('')))
7 |
8 |
--------------------------------------------------------------------------------
/testcontainers-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/threadsafe-cache-demo/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/unreachable-statements/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/dapr-sandbox/js-sdk-example/add-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "add-app",
3 | "version": "1.0.0",
4 | "scripts": {
5 | "start": "node index.js",
6 | "dapr": "dapr run -a add-app -p 3001 npm start"
7 | },
8 | "dependencies": {
9 | "dapr-client": "^1.0.2"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/hello-property-based-testing/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/rust-examples/calc/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "calc"
3 | version = "0.1.0"
4 | authors = ["Uragami Taichi "]
5 | edition = "2018"
6 |
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8 |
9 | [dependencies]
10 |
--------------------------------------------------------------------------------
/rust-examples/docker/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "demo"
3 | version = "0.1.0"
4 | authors = ["Uragami Taichi "]
5 | edition = "2018"
6 |
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8 |
9 | [dependencies]
10 |
--------------------------------------------------------------------------------
/service-worker-study/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 | Hello, Service Worker!
6 |
7 |
8 | Hello, Service Worker!
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/servlet-jsp-dispatch-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/dagger/dagger-get-started/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.6/apache-maven-3.8.6-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.0/maven-wrapper-3.1.0.jar
3 |
--------------------------------------------------------------------------------
/dapr-sandbox/js-sdk-example/calc-app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "calc-app",
3 | "version": "1.0.0",
4 | "scripts": {
5 | "start": "node index.js",
6 | "dapr": "dapr run -a calc-app -p 3000 npm start"
7 | },
8 | "dependencies": {
9 | "dapr-client": "^1.0.2"
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/default-locale-timezone-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/uv-requests/pyproject.toml:
--------------------------------------------------------------------------------
1 | [project]
2 | name = "uv-requests"
3 | version = "0.1.0"
4 | description = "Add your description here"
5 | readme = "README.md"
6 | requires-python = ">=3.12"
7 | dependencies = [
8 | "requests>=2.32.5",
9 | ]
10 |
--------------------------------------------------------------------------------
/java-module/case4/src/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | import com.example.bar.Bar;
4 | import com.example.baz.Baz;
5 |
6 | public class Foo {
7 | public static void main(String[] args) {
8 | System.out.println("Foo, " + new Bar() + ", " + new Baz());
9 | }
10 | }
11 |
--------------------------------------------------------------------------------
/nimbus-servlet-oauth2-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/python-example/scripts/fastapi-pathparameter-example.py:
--------------------------------------------------------------------------------
1 | import uvicorn
2 | from fastapi import FastAPI
3 |
4 | app = FastAPI()
5 |
6 |
7 | @app.get("/foobars/{foo}/{bar}")
8 | async def pathparam(foo: str, bar: str):
9 | return {"foo": foo, "bar": bar}
10 |
11 |
12 | uvicorn.run(app)
13 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/src/Page1ab.tsx:
--------------------------------------------------------------------------------
1 | import { useParams } from "react-router-dom";
2 |
3 | function Page1ab() {
4 | const { pageId } = useParams()
5 | return (
6 |
7 |
Page 1{pageId}
8 |
9 | )
10 | }
11 |
12 | export default Page1ab
13 |
--------------------------------------------------------------------------------
/react-example/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/rust-examples/example/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "example"
3 | version = "0.1.0"
4 | authors = ["Uragami Taichi "]
5 | edition = "2018"
6 |
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8 |
9 | [dependencies]
10 |
--------------------------------------------------------------------------------
/solidjs-example/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite';
2 | import solidPlugin from 'vite-plugin-solid';
3 |
4 | export default defineConfig({
5 | plugins: [solidPlugin()],
6 | server: {
7 | port: 3000,
8 | },
9 | build: {
10 | target: 'esnext',
11 | },
12 | });
13 |
--------------------------------------------------------------------------------
/docker-study/build-arg/Makefile:
--------------------------------------------------------------------------------
1 | .PHONY: all
2 | all: build run
3 |
4 | .PHONY: build
5 | build:
6 | docker build -t demo --build-arg FOO1=fooxxx --build-arg BAR=barxxx .
7 |
8 | .PHONY: run
9 | run:
10 | docker run --rm demo cat foo1.txt foo2.txt bar.txt
11 | docker run --rm demo ./test.sh
12 |
--------------------------------------------------------------------------------
/dungeon-generation/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/golang/web/hello/hello.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Hello World
8 |
9 |
10 |
11 | Hello World
12 |
13 |
14 |
--------------------------------------------------------------------------------
/jpa-timeout-example/docker-compose.yml:
--------------------------------------------------------------------------------
1 | version: "3"
2 |
3 | services:
4 | db:
5 | image: postgres
6 | ports: ["5432:5432"]
7 | environment:
8 | POSTGRES_DB: demodb
9 | POSTGRES_USER: demo
10 | POSTGRES_PASSWORD: secret
11 | command: -c log_statement=all
12 |
13 |
--------------------------------------------------------------------------------
/make-demo/Makefile:
--------------------------------------------------------------------------------
1 | # 変数を定義できる。$(VAR_NAME)で参照できる。
2 | TXTFILE=hello.txt
3 |
4 | # ターゲットがファイル名でない場合に事故を防ぐため.PHONYを書く。
5 | .PHONY: all
6 | all: $(TXTFILE)
7 |
8 | .PHONY: clean
9 | clean:
10 | rm $(TXTFILE)
11 |
12 | # ターゲットはワイルドカード(%)を使える。
13 | # コマンド内では$@でターゲット名を参照できる。
14 | %.txt:
15 | touch $@
16 |
--------------------------------------------------------------------------------
/oauth2-example/oauth2-client-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/react-qrcode-examle/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/scripts/md/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "md",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "test": "node index.js"
8 | },
9 | "author": "",
10 | "license": "MIT",
11 | "dependencies": {
12 | "marked": "^0.3.6"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/garakuta/src/test/java/example/javacompiler/classes/Bar.java:
--------------------------------------------------------------------------------
1 | package example.javacompiler.classes;
2 |
3 | @MyComponent
4 | public class Bar {
5 |
6 | private Qux qux;
7 |
8 | public Bar(Qux qux) {
9 | this.qux = qux;
10 | }
11 |
12 | public Qux getQux() {
13 | return qux;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/golang/web/files/files.go:
--------------------------------------------------------------------------------
1 | package files
2 |
3 | import (
4 | "embed"
5 | "net/http"
6 | )
7 |
8 | //go:embed public
9 | var public embed.FS
10 |
11 | func RegisterHandlers(serveMux *http.ServeMux) {
12 | handler := http.FileServer(http.FS(public))
13 | serveMux.Handle("/public/", handler)
14 | }
15 |
--------------------------------------------------------------------------------
/k8s/postgres/config.yaml:
--------------------------------------------------------------------------------
1 | kind: Cluster
2 | apiVersion: kind.x-k8s.io/v1alpha4
3 | nodes:
4 | - role: control-plane
5 | image: kindest/node:v1.24.7@sha256:577c630ce8e509131eab1aea12c022190978dd2f745aac5eb1fe65c0807eb315
6 | extraPortMappings:
7 | - containerPort: 30000
8 | hostPort: 8080
9 |
10 |
--------------------------------------------------------------------------------
/postgres-as-queue-with-skip-lock/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=app-b
2 | spring.main.banner-mode=off
3 |
4 | spring.datasource.url=jdbc:postgresql://localhost:5432/demo
5 | spring.datasource.username=demo
6 | spring.datasource.password=demo
7 |
8 | logging.level.root=error
9 |
--------------------------------------------------------------------------------
/postgresql-example/src/test/resources/dbunit.yml:
--------------------------------------------------------------------------------
1 | properties:
2 | schema: "public"
3 | caseSensitiveTableNames: true
4 | connectionConfig:
5 | driver: "org.postgresql.Driver"
6 | url: "jdbc:tc:postgresql:14:///example?TC_DAEMON=true&TC_INITSCRIPT=init.sql"
7 | user: "example"
8 | password: "example"
9 |
--------------------------------------------------------------------------------
/rust-examples/refer-to-each-other/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "demo"
3 | version = "0.1.0"
4 | authors = ["Uragami Taichi "]
5 | edition = "2018"
6 |
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8 |
9 | [dependencies]
10 |
--------------------------------------------------------------------------------
/static-analysis-maven-example/example-app/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/static-analysis-maven-example/example-tools/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/java-module/case6/foo/src/main/java/com/example/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | public class Foo {
4 | public static void main(String[] args) {
5 | System.out.println("Foo, " + new com.example.bar.Bar());
6 | System.out.println("Foo, " + new com.example.bar.internal.InternalBar());
7 | }
8 | }
9 |
--------------------------------------------------------------------------------
/localhost-https-example/spa/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/python-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | db:
3 | image: postgres
4 | ports: [ '5432:5432' ]
5 | environment:
6 | POSTGRES_DB: example_db
7 | POSTGRES_USER: example_user
8 | POSTGRES_PASSWORD: example_pass
9 | volumes:
10 | - './initdb:/docker-entrypoint-initdb.d'
11 |
--------------------------------------------------------------------------------
/react-handling-error-example/src/setupTests.ts:
--------------------------------------------------------------------------------
1 | // jest-dom adds custom jest matchers for asserting on DOM nodes.
2 | // allows you to do things like:
3 | // expect(element).toHaveTextContent(/react/i)
4 | // learn more: https://github.com/testing-library/jest-dom
5 | import '@testing-library/jest-dom/extend-expect';
6 |
--------------------------------------------------------------------------------
/scripts/md/index.js:
--------------------------------------------------------------------------------
1 | const marked = require('marked')
2 | const fs = require('fs')
3 |
4 | fs.readFile('sample.md', 'UTF-8', (err, data) => {
5 | if (err) throw err
6 | const lexer = new marked.Lexer()
7 | const tokens = lexer.lex(data)
8 | console.log(tokens)
9 | console.log(lexer.rules)
10 | })
11 |
--------------------------------------------------------------------------------
/static-analysis-maven-example/example-parent/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/.mvn/wrapper/maven-wrapper.properties:
--------------------------------------------------------------------------------
1 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.9.5/apache-maven-3.9.5-bin.zip
2 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.2.0/maven-wrapper-3.2.0.jar
3 |
--------------------------------------------------------------------------------
/cloud-native-buildpacks-example/procfile-example/README.md:
--------------------------------------------------------------------------------
1 | # Procfileを使用する例
2 |
3 | ビルド。
4 |
5 | ```sh
6 | pack build demo --default-process hello
7 | ```
8 |
9 | 実行。
10 |
11 | ```sh
12 | docker run --rm demo
13 | ```
14 |
15 | ## 参考情報
16 |
17 | - https://paketo.io/docs/howto/configuration/#procfiles
18 |
19 |
--------------------------------------------------------------------------------
/devcontainer-locally-referenced-features-example/.devcontainer/install_bar.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 |
3 | echo "Install bar"
4 |
5 | cat > /tmp/bar \
6 | << EOF
7 | #!/bin/sh
8 | echo "Bar $(TZ=Asia/Tokyo date -Iseconds)"
9 | EOF
10 |
11 | sudo mv /tmp/bar /usr/local/bin/bar
12 |
13 | sudo chmod +x /usr/local/bin/bar
14 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/ShiftSample.java:
--------------------------------------------------------------------------------
1 |
2 | public class ShiftSample {
3 | public static void main(final String[] args) {
4 | final int i = 0xabcdef;
5 | System.out.printf("%02x%n", i & 0xff);
6 | System.out.printf("%02x%n", i >> 8 & 0xff);
7 | System.out.printf("%02x%n", i >> 16 & 0xff);
8 | }
9 | }
10 |
--------------------------------------------------------------------------------
/golang/parser-example/Makefile:
--------------------------------------------------------------------------------
1 | BIN=mycalc
2 |
3 | .PHONY: all
4 | all: clean test build
5 |
6 | .PHONY: build
7 | build:
8 | @go build -o $(BIN) ./cmd
9 |
10 | .PHONY: clean
11 | clean:
12 | @if [ -f $(BIN) ]; then \
13 | rm $(BIN); \
14 | fi
15 |
16 | .PHONY: test
17 | test:
18 | @go test ./...
19 |
20 |
--------------------------------------------------------------------------------
/oauth2-example/oauth2-authorization-server-example/.gitignore:
--------------------------------------------------------------------------------
1 | /.*
2 | !/.gitignore
3 | !/.gitattributes
4 | !/.mvn/
5 | !/.babelrc
6 | /bin/
7 | /build/
8 | /target/
9 | /*.log
10 | /*.iml
11 | /*.ipr
12 | /*.iws
13 | /src/main/webapp/WEB-INF/classes/
14 | /node_modules/
15 | /Cargo.lock
16 | /elm-stuff/
17 |
18 |
--------------------------------------------------------------------------------
/rust-examples/split-sourcecode/Cargo.toml:
--------------------------------------------------------------------------------
1 | [package]
2 | name = "split-sourcecode"
3 | version = "0.1.0"
4 | authors = ["Uragami Taichi "]
5 | edition = "2018"
6 |
7 | # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
8 |
9 | [dependencies]
10 |
--------------------------------------------------------------------------------
/apache-httpd_mod_proxy_balancer-example/web1/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | web1
7 |
8 |
9 | web1
10 |
11 |
12 |
--------------------------------------------------------------------------------
/apache-httpd_mod_proxy_balancer-example/web2/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | web2
7 |
8 |
9 | web2
10 |
11 |
12 |
--------------------------------------------------------------------------------
/javaee-startup-sample/src/main/java/app/JaxrsStartup.java:
--------------------------------------------------------------------------------
1 | package app;
2 |
3 | import jakarta.ws.rs.ApplicationPath;
4 | import jakarta.ws.rs.core.Application;
5 |
6 | @ApplicationPath("")
7 | public class JaxrsStartup extends Application {
8 |
9 | public JaxrsStartup() {
10 | Logs.add("JAX-RS");
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/postgres-as-queue-with-skip-lock/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | db:
3 | image: postgres
4 | ports: [ "5432:5432" ]
5 | environment:
6 | POSTGRES_DB: "demo"
7 | POSTGRES_USER: "demo"
8 | POSTGRES_PASSWORD: "demo"
9 | volumes:
10 | - "./init.sql:/docker-entrypoint-initdb.d/init.sql"
11 |
--------------------------------------------------------------------------------
/python-selenium-docker-example/README.md:
--------------------------------------------------------------------------------
1 | # Python + Selenium + Docker example
2 |
3 | ## 非Docker
4 |
5 | ```bash
6 | uv run main.py > out1.png
7 | ```
8 |
9 | ## Docker
10 |
11 | ```bash
12 | docker build --platform linux/x86_64 -t demo .
13 | ```
14 |
15 | ```bash
16 | docker run --rm demo > out2.png
17 | ```
18 |
--------------------------------------------------------------------------------
/rust-examples/ownership/src/main.rs:
--------------------------------------------------------------------------------
1 | fn main() {
2 |
3 | let v = vec![1, 2, 3];
4 |
5 | let v2 = v;
6 |
7 | //error[E0382]: use of moved value: `v`
8 | // println!("v[0] is: {}", v[0]);
9 |
10 | //Copy型
11 | let v = 1;
12 |
13 | let v2 = v;
14 |
15 | println!("v is: {}", v);
16 | }
17 |
--------------------------------------------------------------------------------
/static-analysis-maven-example/example-app/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | /**
4 | * Hello world!
5 | *
6 | */
7 | public class App
8 | {
9 | public static void main( String[] args )
10 | {
11 | System.out.println( "Hello World!" );
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/azure/speech-example/ui/vite.config.ts:
--------------------------------------------------------------------------------
1 | import react from '@vitejs/plugin-react'
2 | import { defineConfig } from 'vite'
3 |
4 | // https://vitejs.dev/config/
5 | export default defineConfig({
6 | plugins: [react()],
7 | server: {
8 | proxy: {
9 | "/api": "http://localhost:8000",
10 | },
11 | },
12 | })
13 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/uv-requests/main.py:
--------------------------------------------------------------------------------
1 | import os
2 |
3 | import requests
4 |
5 |
6 | def main():
7 | url = os.getenv("REQUEST_URL", "https://httpsserver.test")
8 | response = requests.get(url)
9 | print(response.text)
10 |
11 |
12 | if __name__ == "__main__":
13 | main()
14 |
--------------------------------------------------------------------------------
/maven-surefire-plugin-nested-class-example/src/test/java/com/example/AaaTest.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.junit.jupiter.api.Test;
4 |
5 | // 実行される
6 | public class AaaTest {
7 |
8 | @Test
9 | void test() {
10 | }
11 |
12 | // 実行されない
13 | static class AaaDto {
14 | String content;
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/postgres-as-queue-with-skip-lock/init.sql:
--------------------------------------------------------------------------------
1 | create table queue (
2 | id int primary key,
3 | processed boolean not null default false
4 | );
5 |
6 | create table gate (
7 | id int primary key
8 | );
9 |
10 | insert into queue (id) select generate_series(1, 100000);
11 |
12 | insert into gate (id) values (1);
13 |
--------------------------------------------------------------------------------
/java-module/case3/src/foo/Foo.java:
--------------------------------------------------------------------------------
1 | package com.example.foo;
2 |
3 | import com.example.bar.Bar;
4 | import com.example.baz.Baz;
5 |
6 | public class Foo {
7 | public static void main(String[] args) {
8 | System.out.println("Foo, " + new Bar());
9 | System.out.println("Foo, " + new Baz());
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/jmeter-example/demo/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "demo",
3 | "version": "0.0.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "node ./bin/www"
7 | },
8 | "dependencies": {
9 | "cookie-parser": "~1.4.4",
10 | "debug": "~2.6.9",
11 | "express": "~4.18.2",
12 | "morgan": "~1.9.1"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/python-example/tests/test_example.py:
--------------------------------------------------------------------------------
1 | # python -m unittest -v tests/test_example.py
2 |
3 | import unittest
4 |
5 |
6 | class TestExample(unittest.TestCase):
7 | def test_upper(self):
8 | self.assertEqual("foo".upper(), "FOO")
9 |
10 | def test_lower(self):
11 | self.assertEqual("BAR".lower(), "bar")
12 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/src/Page2.tsx:
--------------------------------------------------------------------------------
1 | import { Link } from "react-router-dom";
2 |
3 | function Page2() {
4 | return (
5 |
6 |
Page 2
7 |
Home
8 |
Page 1
9 |
10 | )
11 | }
12 |
13 | export default Page2
--------------------------------------------------------------------------------
/react-handling-error-example/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | React App
7 |
8 |
9 |
10 |
11 |
12 |
--------------------------------------------------------------------------------
/rust-examples/example/src/bin/pattern_match.rs:
--------------------------------------------------------------------------------
1 | use std::env;
2 |
3 | fn main() {
4 | let a: i32 = env::args().nth(0).unwrap().parse::().unwrap();
5 | let b = match a {
6 | 1 => true,
7 | 2 => true,
8 | 3 | 4 => true,
9 | _ => false,
10 | };
11 | println!("{}", b);
12 | }
13 |
--------------------------------------------------------------------------------
/streamlit-example/navigation-example.py:
--------------------------------------------------------------------------------
1 | import streamlit as st
2 |
3 |
4 | def page1() -> None:
5 | st.write("# Page 1")
6 |
7 |
8 | def page2() -> None:
9 | st.write("# Page 2")
10 |
11 |
12 | pg = st.navigation(
13 | [
14 | st.Page(page1),
15 | st.Page(page2),
16 | ]
17 | )
18 | pg.run()
19 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | db:
3 | image: postgres
4 | ports: [ "5432:5432" ]
5 | environment:
6 | POSTGRES_DB: "demo"
7 | POSTGRES_USER: "demo"
8 | POSTGRES_PASSWORD: "demo"
9 | volumes:
10 | - "./init.sql:/docker-entrypoint-initdb.d/init.sql"
11 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/annotation/inherited/Bar.java:
--------------------------------------------------------------------------------
1 | package example.annotation.inherited;
2 |
3 | import java.lang.annotation.Inherited;
4 | import java.lang.annotation.Retention;
5 | import java.lang.annotation.RetentionPolicy;
6 |
7 | @Retention(RetentionPolicy.RUNTIME)
8 | @Inherited
9 | public @interface Bar {
10 | }
11 |
--------------------------------------------------------------------------------
/golang/sandbox/interfaces/interface.go:
--------------------------------------------------------------------------------
1 | package interfaces
2 |
3 | type Greeting interface {
4 | say() string
5 | }
6 |
7 | type HelloEn struct {
8 | }
9 |
10 | func (*HelloEn) say() string {
11 | return "Hello"
12 | }
13 |
14 | type HelloJa struct {
15 | }
16 |
17 | func (*HelloJa) say() string {
18 | return "こんにちは"
19 | }
20 |
--------------------------------------------------------------------------------
/postmessage-example/README.md:
--------------------------------------------------------------------------------
1 | ```bash
2 | python -m http.server -d sender 8000
3 | ```
4 |
5 | ```bash
6 | python -m http.server -d receiver 3000
7 | ```
8 |
9 | http://localhost:8000 を開いてボタンを押す。
10 |
11 | http://localhost:3000 でメッセージを受け取って表示する。
12 |
13 |
14 | https://developer.mozilla.org/ja/docs/Web/API/Window/postMessage
15 |
--------------------------------------------------------------------------------
/javaee-startup-sample/src/main/resources/META-INF/beans.xml:
--------------------------------------------------------------------------------
1 |
4 |
5 |
--------------------------------------------------------------------------------
/nginx-reverse-proxy-example/README.md:
--------------------------------------------------------------------------------
1 | # nginx-reverse-proxy
2 |
3 | ```
4 | mvn -f api/pom.xml package
5 | docker-compose up -d
6 | ```
7 |
8 | ```
9 | curl localhost:8080/hello
10 | ```
11 |
12 | or
13 |
14 | ```
15 | docker run -it --rm --network nginx-reverse-proxy-example_default busybox sh
16 | wget proxy1/hello -O -
17 | ```
18 |
--------------------------------------------------------------------------------
/scripts/js/race-sample.js:
--------------------------------------------------------------------------------
1 | const a = new Promise(resolve => setTimeout(resolve, Math.random() * 1000, 'foo'))
2 | const b = new Promise(resolve => setTimeout(resolve, Math.random() * 1000, 'bar'))
3 | const c = new Promise(resolve => setTimeout(resolve, Math.random() * 1000, 'baz'))
4 |
5 | Promise.race([a, b, c]).then(x => console.log(x))
6 |
7 |
--------------------------------------------------------------------------------
/streamlit-example/vega-altair-example.py:
--------------------------------------------------------------------------------
1 | import altair as alt
2 | import pandas as pd
3 | import streamlit as st
4 | from vega_datasets import data
5 |
6 | url = data.cars.url
7 |
8 | c = alt.Chart(url).mark_point().encode(x="Horsepower:Q", y="Miles_per_Gallon:Q")
9 |
10 | alt.LayerChart().add_layers(c)
11 |
12 | st.altair_chart(c)
13 |
--------------------------------------------------------------------------------
/fastapi-example/docker/reverse-proxy/nginx.conf:
--------------------------------------------------------------------------------
1 | server {
2 | listen 80;
3 | listen [::]:80;
4 | server_name localhost;
5 |
6 | location / {
7 | proxy_pass http://host.docker.internal:8000;
8 | # proxy_pass http://app:8000;
9 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
10 | }
11 | }
--------------------------------------------------------------------------------
/hello-byteman/src/main/java/com/example/TaskStore.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class TaskStore {
4 |
5 | private TaskList taskList = TaskList.empty();
6 |
7 | public void addTask(final String content) {
8 | final Task addMe = Task.create(content);
9 | taskList = taskList.add(addMe);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/lambda-calc-in-groovy/README.md:
--------------------------------------------------------------------------------
1 | # Groovyで型無しラムダ計算をシミュレーション
2 |
3 | [アンダースタンディング コンピュテーション](http://www.oreilly.co.jp/books/9784873116976/)の第6章を参照してください。
4 |
5 | ## LICENSE
6 |
7 | [Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.txt)
8 |
9 | ## Author
10 |
11 | [@backpaper0](https://twitter.com/backpaper0)
12 |
13 |
--------------------------------------------------------------------------------
/nginx-reverse-proxy-example/app/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "app",
3 | "version": "0.0.0",
4 | "private": true,
5 | "scripts": {
6 | "start": "node ./bin/www"
7 | },
8 | "dependencies": {
9 | "cookie-parser": "~1.4.4",
10 | "debug": "~2.6.9",
11 | "express": "~4.18.2",
12 | "morgan": "~1.9.1"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/src/Page1.tsx:
--------------------------------------------------------------------------------
1 | import { Link } from "react-router-dom";
2 |
3 | function Page1() {
4 | return (
5 |
6 |
Page 1
7 |
Page 1a
8 |
Page 1b
9 |
10 | )
11 | }
12 |
13 | export default Page1
14 |
--------------------------------------------------------------------------------
/aws/python-lambda-docker-example/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM public.ecr.aws/lambda/python:3.11
2 |
3 | # Copy code and install dependencies
4 | COPY app.py ./
5 | COPY requirements.txt ./
6 | RUN pip install -r requirements.txt --target "${LAMBDA_TASK_ROOT}"
7 |
8 | # Set the CMD to your handler (filename.handler-function)
9 | CMD ["app.lambda_handler"]
10 |
--------------------------------------------------------------------------------
/dungeon-generation/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | const { getByText } = render();
7 | const linkElement = getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/golang/sandbox/init/init_test.go:
--------------------------------------------------------------------------------
1 | package init
2 |
3 | import (
4 | "reflect"
5 | "testing"
6 | )
7 |
8 | func TestInit(t *testing.T) {
9 | actual := example()
10 | expected := []int{1, 1, 2, 2, 3, 3, 4, 0}
11 | if !reflect.DeepEqual(actual, expected) {
12 | t.Errorf("Expected is %v but actual is %v\n", expected, actual)
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/golang/sandbox/pipe/pipe_test.go:
--------------------------------------------------------------------------------
1 | package pipe
2 |
3 | import (
4 | "fmt"
5 | "io"
6 | "os"
7 | "testing"
8 | )
9 |
10 | func TestPipe(t *testing.T) {
11 | r, w, _ := os.Pipe()
12 |
13 | msg := "Hello world"
14 | fmt.Fprint(w, msg)
15 | w.Close()
16 |
17 | b, _ := io.ReadAll(r)
18 | if string(b) != msg {
19 | t.Fail()
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/python-embedding/.env.example:
--------------------------------------------------------------------------------
1 | OPENAI_API_KEY=
2 | EMBEDDINGS_MODEL=text-embedding-3-small
3 |
4 | # AZURE_OPENAI_ENDPOINT=
5 | # AZURE_OPENAI_API_KEY=
6 | # OPENAI_API_VERSION=
7 | # EMBEDDINGS_DEPLOYMENT_NAME=
8 |
9 | DOLLER_PER_1M_TOKENS=0.020
10 | # DOLLER_PER_1K_TOKENS=0.000020
11 |
12 | YEN_PER_DOLLER=150
13 |
14 | DB_PATH=data/cache.db
15 |
--------------------------------------------------------------------------------
/python-example/data/chinese_cuisine.csv:
--------------------------------------------------------------------------------
1 | 料理名,主な食材,種類
2 | 麻婆豆腐,"[""豆腐"", ""ひき肉"", ""ニラ""]",辛い料理
3 | 回鍋肉,"[""豚肉"", ""ピーマン"", ""ニンニク""]",炒め物
4 | 酢豚,"[""豚肉"", ""パイナップル"", ""ピーマン""]",甘酢料理
5 | 餃子,"[""豚肉"", ""キャベツ"", ""ニラ""]",点心
6 | 炒飯,"[""米"", ""卵"", ""ネギ"", ""ハム""]",炒め物
7 | エビチリ,"[""エビ"", ""ピーマン"", ""ニンニク"", ""唐辛子""]",辛い料理
8 | 油淋鶏,"[""鶏肉"", ""キュウリ"", ""ニンニクソース""]",揚げ物
--------------------------------------------------------------------------------
/dagger/dagger-get-started/src/test/java/com/example/DaggerGetStartedApplicationTests.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.junit.jupiter.api.Test;
4 | import org.springframework.boot.test.context.SpringBootTest;
5 |
6 | @SpringBootTest
7 | class DaggerGetStartedApplicationTests {
8 |
9 | @Test
10 | void contextLoads() {
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/ThreadDump.java:
--------------------------------------------------------------------------------
1 | import java.lang.management.ManagementFactory;
2 | import java.util.Arrays;
3 |
4 | public class ThreadDump {
5 |
6 | public static void main(final String[] args) {
7 | Arrays.stream(
8 | ManagementFactory.getThreadMXBean().dumpAllThreads(true, true))
9 | .forEach(System.out::println);
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/golang/sandbox/interfaces/interface_test.go:
--------------------------------------------------------------------------------
1 | package interfaces
2 |
3 | import (
4 | "testing"
5 | )
6 |
7 | func TestInterface(t *testing.T) {
8 | var hello Greeting
9 |
10 | hello = &HelloEn{}
11 | if hello.say() != "Hello" {
12 | t.Fail()
13 | }
14 |
15 | hello = &HelloJa{}
16 | if hello.say() != "こんにちは" {
17 | t.Fail()
18 | }
19 | }
20 |
--------------------------------------------------------------------------------
/jpa-ignore-version-example/src/main/java/com/example/Base3Listener.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class Base3Listener {
4 |
5 | public void handlePrePersist(Base3 base) {
6 | base.setVersion(0);
7 | }
8 |
9 | public void handlePreUpdate(Base3 base) {
10 | base.setVersion(base.getVersion() + 1);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/query-string-demo/README.md:
--------------------------------------------------------------------------------
1 | # HttpServletRequest.getQueryString()を試す
2 |
3 | URLエンコードされたままの値が取得できた。
4 |
5 | ```sh
6 | % curl -s localhost:8080\?message=$(node -e 'console.log(encodeURI("こんにちは世界"))') | jq
7 | {
8 | "query": "message=%E3%81%93%E3%82%93%E3%81%AB%E3%81%A1%E3%81%AF%E4%B8%96%E7%95%8C",
9 | "message": "こんにちは世界"
10 | }
11 | ```
12 |
13 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/NormalizerExample.java:
--------------------------------------------------------------------------------
1 | package example;
2 |
3 | import java.text.Normalizer;
4 | import java.text.Normalizer.Form;
5 |
6 | public class NormalizerExample {
7 |
8 | public static void main(final String[] args) {
9 | final String s = Normalizer.normalize("アガザ ダナ", Form.NFKD);
10 | System.out.println(s);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/golang/process/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "flag"
5 | "fmt"
6 | "os"
7 | )
8 |
9 | var err *bool
10 |
11 | func init() {
12 | err = flag.Bool("err", false, "...")
13 | }
14 |
15 | func main() {
16 | flag.Parse()
17 | if *err {
18 | fmt.Fprint(os.Stderr, "Error!!!")
19 | os.Exit(1)
20 | }
21 | fmt.Print("Hello World")
22 | }
23 |
--------------------------------------------------------------------------------
/localhost-https-example/spa/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | const { getByText } = render();
7 | const linkElement = getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/python-opentelemetry-example/compose.yaml:
--------------------------------------------------------------------------------
1 | services:
2 | openobserve:
3 | image: public.ecr.aws/zinclabs/openobserve:latest
4 | environment:
5 | ZO_ROOT_USER_EMAIL: "root@example.com"
6 | ZO_ROOT_USER_PASSWORD: "pass1234"
7 | ports:
8 | - "5080:5080"
9 | volumes:
10 | - data:/data
11 |
12 | volumes:
13 | data: {}
14 |
--------------------------------------------------------------------------------
/react-handling-error-example/src/App.test.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { render } from '@testing-library/react';
3 | import App from './App';
4 |
5 | test('renders learn react link', () => {
6 | const { getByText } = render();
7 | const linkElement = getByText(/learn react/i);
8 | expect(linkElement).toBeInTheDocument();
9 | });
10 |
--------------------------------------------------------------------------------
/streamlit-example/args.py:
--------------------------------------------------------------------------------
1 | """
2 | コマンドライン引数を取得する例。
3 |
4 | uv run streamlit run args.py -- --foo xxx --bar=yyy baz qux
5 | """
6 | import streamlit as st
7 | import sys
8 | import os
9 |
10 |
11 | body = ["# arguments"]
12 | body.append("")
13 | for arg in sys.argv:
14 | body.append(f"1. `{arg}`")
15 | body.append("")
16 | st.markdown("\n".join(body))
17 |
--------------------------------------------------------------------------------
/docker-study/build-arg/Dockerfile:
--------------------------------------------------------------------------------
1 | FROM ubuntu
2 |
3 | WORKDIR /workspace
4 |
5 | # ARGはビルド時に環境変数として使える。
6 | # ENVで実行時の環境変数として設定できる。
7 | ARG FOO1
8 | ENV FOO2 $FOO1
9 |
10 | # 同じ名前で実行時の環境変数を設定できる。
11 | ARG BAR
12 | ENV BAR $BAR
13 |
14 | ADD test.sh ./
15 |
16 | RUN echo $FOO1 > foo1.txt && \
17 | echo $FOO2 > foo2.txt && \
18 | echo $BAR > bar.txt
19 |
20 |
--------------------------------------------------------------------------------
/golang/web/files/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | public/index.html
8 |
9 |
10 |
11 |
12 | public/index.html
13 |
14 |
15 |
--------------------------------------------------------------------------------
/rust-examples/calc/README.md:
--------------------------------------------------------------------------------
1 | # calc
2 |
3 | Rustで足し算パーサーを書いてみた。
4 |
5 | ```
6 | $ cargo build
7 | Compiling calc v0.1.0 (/path/to/calc)
8 | Finished dev [unoptimized + debuginfo] target(s) in 0.94s
9 | $ ./target/debug/calc "1"
10 | 1
11 | $ ./target/debug/calc "1 + 23"
12 | 24
13 | $ ./target/debug/calc "1 + 23 + 456 + 7890"
14 | 8370
15 | ```
16 |
17 |
--------------------------------------------------------------------------------
/unreachable-statements/Sample3.java:
--------------------------------------------------------------------------------
1 | public class Sample3 {
2 | public void trySample() {
3 | try {
4 | System.out.println("到達可能");
5 | } catch(RuntimeException e) {
6 | System.out.println("到達可能");
7 | } catch(IllegalArgumentException e) {
8 | System.out.println("到達不能!");
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/automaton/set_test.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import "testing"
4 |
5 | func TestSet(t *testing.T) {
6 | v1, v2, v3 := 1, 2, 3
7 | s1, s2, s3 := &v1, &v2, &v3
8 | set := NewSet()
9 | set.Add(s1)
10 | set.Add(s2, s3)
11 |
12 | if expected := NewSet(s3, s2, s1); !set.Equals(expected) {
13 | t.Errorf("Expected is %v but actual is %v", set, expected)
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/RandomSample.java:
--------------------------------------------------------------------------------
1 | import java.util.Random;
2 |
3 | public class RandomSample {
4 | public static void main(final String[] args) {
5 | final long seed = 1234567890L;
6 | for (int i = 0; i < 5; i++) {
7 | final Random r = new Random(seed);
8 | System.out.printf("%d, %d, %d%n", r.nextInt(), r.nextInt(), r.nextInt());
9 | }
10 | }
11 | }
12 |
--------------------------------------------------------------------------------
/go-solid-example/ui/vite.config.ts:
--------------------------------------------------------------------------------
1 | import { defineConfig } from 'vite';
2 | import solidPlugin from 'vite-plugin-solid';
3 |
4 | export default defineConfig({
5 | plugins: [solidPlugin()],
6 | server: {
7 | port: 3000,
8 | proxy: {
9 | '/api': 'http://localhost:8080'
10 | },
11 | },
12 | build: {
13 | target: 'esnext',
14 | },
15 | });
16 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/san.cnf:
--------------------------------------------------------------------------------
1 | [ req ]
2 | default_bits = 2048
3 | prompt = no
4 | default_md = sha256
5 | req_extensions = req_ext
6 | distinguished_name = dn
7 |
8 | [ dn ]
9 | CN = httpsserver.test
10 |
11 | [ req_ext ]
12 | subjectAltName = @alt_names
13 |
14 | [ alt_names ]
15 | DNS.1 = httpsserver.test
16 |
--------------------------------------------------------------------------------
/polyglot-maven-example/pom.yaml:
--------------------------------------------------------------------------------
1 | modelVersion: 4.0.0
2 | groupId: com.example
3 | artifactId: polyglot-maven-example
4 | version: 1.0-SNAPSHOT
5 |
6 | properties:
7 | maven.compiler.target: 17
8 | maven.compiler.source: 17
9 | project.build.sourceEncoding: UTF-8
10 |
11 | dependencies:
12 | - {groupId: junit, artifactId: junit, version: 4.11, scope: test}
13 |
14 |
--------------------------------------------------------------------------------
/azure/speech-example/ui/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Speech example
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/pubapp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pubapp",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.17.2",
14 | "node-fetch": "^2.6.6"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/subapp/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "subapp",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.18.2",
14 | "node-fetch": "^2.6.7"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/javaee-startup-sample/src/main/java/app/EjbStartup.java:
--------------------------------------------------------------------------------
1 | package app;
2 |
3 | import jakarta.annotation.PostConstruct;
4 | import jakarta.ejb.Singleton;
5 | import jakarta.ejb.Startup;
6 |
7 | @Singleton
8 | @Startup
9 | public class EjbStartup {
10 |
11 | @PostConstruct
12 | public void startup() {
13 | Logs.add("SingletonSessionBean");
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/k8s/postgres/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class App {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(App.class, args);
11 | }
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/lombok-demo/src/test/java/com/example/FoobarTest.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import static org.junit.jupiter.api.Assertions.*;
4 |
5 | import org.junit.jupiter.api.Test;
6 |
7 | public class FoobarTest {
8 |
9 | @Test
10 | void test() {
11 | Foobar sut = new Foobar("foo", "bar");
12 | assertEquals("foobar", sut.foobar());
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/python-example/scripts/misc/fastapi-downloadfile-example-static/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Download file example
8 |
9 |
10 |
11 | Download file
12 |
13 |
14 |
--------------------------------------------------------------------------------
/azure/python-function-example/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "logging": {
4 | "applicationInsights": {
5 | "samplingSettings": {
6 | "isEnabled": true,
7 | "excludedTypes": "Request"
8 | }
9 | }
10 | },
11 | "extensionBundle": {
12 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
13 | "version": "[4.*, 5.0.0)"
14 | }
15 | }
--------------------------------------------------------------------------------
/docker-study/docker-compose-scale-example/README.md:
--------------------------------------------------------------------------------
1 | ```bash
2 | cd app
3 | ```
4 |
5 | ```bash
6 | pack build app
7 | ```
8 |
9 | ```bash
10 | cd ..
11 | ```
12 |
13 | ```bash
14 | docker compose up -d --scale app1=2 --scale app2=2
15 | ```
16 |
17 | ```bash
18 | curl -s localhost:8080/app1 | jq
19 | ```
20 |
21 | ```bash
22 | curl -s localhost:8080/app2 | jq
23 | ```
24 |
25 |
--------------------------------------------------------------------------------
/doma-unified-criteria-example/src/main/java/com/example/Animal.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.seasar.doma.Entity;
4 | import org.seasar.doma.Id;
5 | import org.seasar.doma.Metamodel;
6 | import org.seasar.doma.Table;
7 |
8 | @Entity(metamodel = @Metamodel)
9 | @Table(name = "animals")
10 | public record Animal(@Id Integer id, String name, String species) {
11 | }
12 |
--------------------------------------------------------------------------------
/html-css-js-example/centering.css:
--------------------------------------------------------------------------------
1 | body {
2 | margin: 0;
3 | padding: 0;
4 | }
5 |
6 | .root {
7 | display: flex;
8 | justify-content: center;
9 | align-items: center;
10 | height: 100vh;
11 | }
12 |
13 | .container {
14 | width: 400px;
15 | height: 480px;
16 | background: #fafafb;
17 | box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1);
18 | border-radius: 12px;
19 | }
20 |
21 |
--------------------------------------------------------------------------------
/jaxrs-parameter-example/src/main/java/param/ParamConvertedImpl.java:
--------------------------------------------------------------------------------
1 | package param;
2 |
3 | public class ParamConvertedImpl implements ParamConverted {
4 |
5 | private final String value;
6 |
7 | public ParamConvertedImpl(String value) {
8 | this.value = value;
9 | }
10 |
11 | @Override
12 | public String getValue() {
13 | return value;
14 | }
15 | }
16 |
--------------------------------------------------------------------------------
/python-openai-example/app/models.py:
--------------------------------------------------------------------------------
1 | import asyncio
2 |
3 | from dotenv import load_dotenv
4 | from openai import OpenAI
5 |
6 |
7 | async def main() -> None:
8 | load_dotenv()
9 | oai = OpenAI()
10 | models = oai.models.list()
11 | for model in models:
12 | print(model.model_dump())
13 |
14 |
15 | if __name__ == "__main__":
16 | asyncio.run(main())
17 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/src/App.tsx:
--------------------------------------------------------------------------------
1 | import { Link } from "react-router-dom";
2 |
3 | function App() {
4 | return (
5 |
6 |
Root
7 |
Page 1
8 |
Page 2
9 |
Page 3
10 |
11 | )
12 | }
13 |
14 | export default App
15 |
--------------------------------------------------------------------------------
/react-example/src/Misc.tsx:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 |
3 | export default function Misc() {
4 | const a: A2 = ["abc", 123]
5 | return (
6 |
7 |
Misc
8 |
{a[0]} {a[1]}
9 |
10 | );
11 | }
12 |
13 |
14 | interface A1 {
15 | foo: string;
16 | bar: number;
17 | }
18 |
19 | type A2 = [A1["foo"], A1["bar"]];
20 |
21 |
22 |
--------------------------------------------------------------------------------
/react-qrcode-examle/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | React QR code example
8 |
9 |
10 |
11 |
12 |
13 |
--------------------------------------------------------------------------------
/react19rc/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/service-worker-study/main.js:
--------------------------------------------------------------------------------
1 | navigator
2 | .serviceWorker
3 | .register('./sw.js')
4 | .then(registration => console.table(registration))
5 | .catch(err => console.log(err));
6 |
7 | fetch('/hello.txt')
8 | .then(response => {
9 | console.log('Hendle response');
10 | return response.text();
11 | })
12 | .then(text => console.log(text));
13 |
--------------------------------------------------------------------------------
/dapr-sandbox/service-invocation/hello/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "hello",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.17.2",
14 | "node-fetch": "^2.6.6"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/dapr-sandbox/service-invocation/world/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "world",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.17.2",
14 | "node-fetch": "^3.1.0"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/dapr-sandbox/state-management/counter/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "counter",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "node index.js"
8 | },
9 | "keywords": [],
10 | "author": "",
11 | "license": "ISC",
12 | "dependencies": {
13 | "express": "^4.17.2",
14 | "node-fetch": "^2.6.6"
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/k8s/job/cronjob.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: batch/v1
2 | kind: CronJob
3 | metadata:
4 | name: date
5 | spec:
6 | schedule: "* * * * *"
7 | jobTemplate:
8 | spec:
9 | template:
10 | spec:
11 | containers:
12 | - name: date
13 | image: busybox
14 | command:
15 | - date
16 | restartPolicy: OnFailure
17 |
--------------------------------------------------------------------------------
/scripts/codepoint-length.js:
--------------------------------------------------------------------------------
1 | const text = '𩸽を食べたい'; //見た目は6文字
2 |
3 | console.log(text);
4 |
5 | console.log(text.length, 'String.length'); // 7
6 |
7 | console.log([...text].length, 'スプレッド演算子でコードポイントの配列にする'); //6
8 |
9 | console.log((() => {
10 | let size = 0;
11 | for (const i of text) {
12 | size++;
13 | }
14 | return size;
15 | })(), 'for ofでコードポイントをイテレートする'); //6
16 |
--------------------------------------------------------------------------------
/azure/python-function-container-example/host.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "2.0",
3 | "logging": {
4 | "applicationInsights": {
5 | "samplingSettings": {
6 | "isEnabled": true,
7 | "excludedTypes": "Request"
8 | }
9 | }
10 | },
11 | "extensionBundle": {
12 | "id": "Microsoft.Azure.Functions.ExtensionBundle",
13 | "version": "[4.*, 5.0.0)"
14 | }
15 | }
--------------------------------------------------------------------------------
/azure/speech-example/ui/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/golang/flag/main.go:
--------------------------------------------------------------------------------
1 | package main
2 |
3 | import (
4 | "flag"
5 | "fmt"
6 | )
7 |
8 | var foo *string
9 | var bar *int
10 | var baz *bool
11 |
12 | func init() {
13 | foo = flag.String("foo", "default", "usage")
14 | bar = flag.Int("bar", 123, "usage")
15 | baz = flag.Bool("baz", false, "usage")
16 | }
17 | func main() {
18 | flag.Parse()
19 | fmt.Println(*foo, *bar, *baz)
20 | }
21 |
--------------------------------------------------------------------------------
/html-css-js-example/image.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | Image demo
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
--------------------------------------------------------------------------------
/http-over-tls_with_self-signed-certificate_example/README.md:
--------------------------------------------------------------------------------
1 | # HTTP over TLS w/ 自己署名証明書
2 |
3 | ## 環境構築
4 |
5 | ```bash
6 | ./setup.sh
7 | ```
8 |
9 | ## 動作確認
10 |
11 | ```bash
12 | docker compose up -d nginx
13 | ```
14 |
15 | ### curl
16 |
17 | ```bash
18 | docker compose run --rm curl
19 | ```
20 |
21 | ### Python
22 |
23 | ```bash
24 | docker compose run --rm uv-requests
25 | ```
26 |
--------------------------------------------------------------------------------
/playwright-visual-comparisons-example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "playwright-visual-comparisons-example",
3 | "version": "1.0.0",
4 | "description": "",
5 | "main": "index.js",
6 | "scripts": {},
7 | "keywords": [],
8 | "author": "",
9 | "license": "ISC",
10 | "devDependencies": {
11 | "@playwright/test": "^1.45.0",
12 | "@types/node": "^20.14.9"
13 | }
14 | }
15 |
--------------------------------------------------------------------------------
/python-example/scripts/fastapi-model-example.py:
--------------------------------------------------------------------------------
1 | import uvicorn
2 | from fastapi import FastAPI
3 | from pydantic import BaseModel
4 |
5 | app = FastAPI()
6 |
7 |
8 | class Song(BaseModel):
9 | title: str
10 | singer: str
11 |
12 |
13 | @app.get("/song")
14 | async def get_song() -> Song:
15 | return Song(title="Limit", singer="LUNA SEA")
16 |
17 |
18 | uvicorn.run(app)
19 |
--------------------------------------------------------------------------------
/react-handling-error-example/src/App.module.css:
--------------------------------------------------------------------------------
1 | .button {
2 | padding: 1rem;
3 | border: 1px solid teal;
4 | cursor: pointer;
5 | min-width: 8rem;
6 | border-radius: .5rem;
7 | transition: all .2s linear;
8 | }
9 |
10 | .button {
11 | background-color: teal;
12 | color: white;
13 | }
14 |
15 | .button:hover {
16 | background-color: white;
17 | color: teal;
18 | }
19 |
20 |
--------------------------------------------------------------------------------
/react-markdown-example/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/golang/README.md:
--------------------------------------------------------------------------------
1 | # Go言語で遊ぶ
2 |
3 | ## 準備
4 |
5 | `mvn archetype:generate`みたいなもんか。
6 |
7 | ```sh
8 | go mod init <モジュール名>
9 | ```
10 |
11 | 例:
12 |
13 | ```sh
14 | go mod init hello/world
15 | ```
16 |
17 | ## 実行
18 |
19 | `mvn spring-boot:run`みたいなもん。
20 |
21 | ```sh
22 | go run main.go
23 | ```
24 |
25 | ## ビルド
26 |
27 | `mvn package`みたいなもん。
28 |
29 | ```sh
30 | go build
31 | ```
32 |
33 |
--------------------------------------------------------------------------------
/java-module/case1/README.md:
--------------------------------------------------------------------------------
1 | 
2 |
3 | ```sh
4 | javac -d bin/bar src/bar/*.java
5 | ```
6 |
7 | ```sh
8 | jar -cf lib/bar.jar -C bin/bar .
9 | ```
10 |
11 | ```sh
12 | javac -d bin/foo -p lib src/foo/*.java
13 | ```
14 |
15 | ```sh
16 | jar -cf lib/foo.jar -C bin/foo .
17 | ```
18 |
19 | ```sh
20 | java -p lib -m mod.foo/com.example.foo.Foo
21 | ```
22 |
23 |
--------------------------------------------------------------------------------
/jpa-ignore-version-example/src/main/java/com/example/CommitterListener.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | public class CommitterListener {
4 |
5 | public void handlePrePersist(Committer committer) {
6 | committer.setVersion(0);
7 | }
8 |
9 | public void handlePreUpdate(Committer committer) {
10 | committer.setVersion(committer.getVersion() + 1);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/virtual-thread-example/virtual-thread-demo/src/main/resources/application.properties:
--------------------------------------------------------------------------------
1 | spring.application.name=virtual-thread-demo
2 | spring.datasource.url=jdbc:postgresql://localhost:5432/demo
3 | spring.datasource.username=demo
4 | spring.datasource.password=demo
5 |
6 | spring.threads.virtual.enabled=true
7 | spring.main.keep-alive=true
8 |
9 | spring.datasource.hikari.maximum-pool-size=2
10 |
--------------------------------------------------------------------------------
/postgres-as-queue-with-skip-lock/src/main/java/com/example/App.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import org.springframework.boot.SpringApplication;
4 | import org.springframework.boot.autoconfigure.SpringBootApplication;
5 |
6 | @SpringBootApplication
7 | public class App {
8 |
9 | public static void main(String[] args) {
10 | SpringApplication.run(App.class, args);
11 | }
12 | }
13 |
--------------------------------------------------------------------------------
/python-embedding/README.md:
--------------------------------------------------------------------------------
1 | # 埋め込みに関する簡易ツール
2 |
3 | コスト計算。
4 |
5 | ```
6 | python -m app.main --cost -i data/input.jsonl
7 | ```
8 |
9 | 埋め込みの生成。
10 |
11 | ```
12 | python -m app.main -i data/input.jsonl -o data/output.jsonl
13 | ```
14 |
15 | DBへの埋め込みインポート。
16 |
17 | ```
18 | python -m app.main -I -i data/output.jsonl
19 | ```
20 |
21 | 静的解析など。
22 |
23 | ```
24 | poetry run task lint
25 | ```
26 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 | Vite + React + TS
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
--------------------------------------------------------------------------------
/dapr-sandbox/pub-sub/redis-pubsub.yaml:
--------------------------------------------------------------------------------
1 | apiVersion: dapr.io/v1alpha1
2 | kind: Component
3 | metadata:
4 | name: pubsub
5 | namespace: default
6 | spec:
7 | type: pubsub.redis
8 | version: v1
9 | metadata:
10 | - name: redisHost
11 | value: redis-master.default.svc.cluster.local:6379
12 | - name: redisPassword
13 | secretKeyRef:
14 | name: redis
15 | key: redis-password
16 |
--------------------------------------------------------------------------------
/garakuta/src/main/java/example/CookieExample.java:
--------------------------------------------------------------------------------
1 | package example;
2 |
3 | import java.net.HttpCookie;
4 | import java.util.List;
5 |
6 | public class CookieExample {
7 |
8 | public static void main(final String[] args) {
9 | final List cookies = HttpCookie
10 | .parse("Set-Cookie: foo=bar; Expires=Sun, 06 Nov 1994 08:49:37 GMT");
11 | System.out.println(cookies);
12 | }
13 | }
14 |
--------------------------------------------------------------------------------
/go-solid-example/ui/ui.go:
--------------------------------------------------------------------------------
1 | package ui
2 |
3 | import (
4 | "embed"
5 | "io/fs"
6 | "net/http"
7 | )
8 |
9 | //go:embed dist
10 | var dist embed.FS
11 |
12 | func RegisterHandler(serveMux *http.ServeMux) error {
13 | fs, err := fs.Sub(dist, "dist")
14 | if err != nil {
15 | return err
16 | }
17 | handler := http.FileServer(http.FS(fs))
18 | serveMux.Handle("/", handler)
19 | return nil
20 | }
21 |
--------------------------------------------------------------------------------
/python-selenium-example/example-app/.gitignore:
--------------------------------------------------------------------------------
1 | # Logs
2 | logs
3 | *.log
4 | npm-debug.log*
5 | yarn-debug.log*
6 | yarn-error.log*
7 | pnpm-debug.log*
8 | lerna-debug.log*
9 |
10 | node_modules
11 | dist
12 | dist-ssr
13 | *.local
14 |
15 | # Editor directories and files
16 | .vscode/*
17 | !.vscode/extensions.json
18 | .idea
19 | .DS_Store
20 | *.suo
21 | *.ntvs*
22 | *.njsproj
23 | *.sln
24 | *.sw?
25 |
--------------------------------------------------------------------------------
/react19rc/tsconfig.node.json:
--------------------------------------------------------------------------------
1 | {
2 | "compilerOptions": {
3 | "composite": true,
4 | "tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo",
5 | "skipLibCheck": true,
6 | "module": "ESNext",
7 | "moduleResolution": "bundler",
8 | "allowSyntheticDefaultImports": true,
9 | "strict": true,
10 | "noEmit": true
11 | },
12 | "include": ["vite.config.ts"]
13 | }
14 |
--------------------------------------------------------------------------------
/solidjs-example/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 | Solid App
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
--------------------------------------------------------------------------------
/jacoco-example/src/test/java/com/example/HelloServiceTest.java:
--------------------------------------------------------------------------------
1 | package com.example;
2 |
3 | import static org.junit.jupiter.api.Assertions.*;
4 |
5 | import org.junit.jupiter.api.Test;
6 |
7 | class HelloServiceTest {
8 |
9 | HelloService sut = new HelloService();
10 |
11 | @Test
12 | void test() {
13 | String actual = sut.sayHello("World");
14 | assertEquals("Hello World", actual);
15 | }
16 | }
17 |
--------------------------------------------------------------------------------
/jaxrs-parameter-example/src/main/java/param/PublicConstructor.java:
--------------------------------------------------------------------------------
1 | package param;
2 |
3 | /**
4 | * Stringの引数をひとつだけ受け取るpublicなコンストラクタを持つクラス。
5 | *
6 | */
7 | public class PublicConstructor {
8 |
9 | private final String value;
10 |
11 | public PublicConstructor(String value) {
12 | this.value = value;
13 | }
14 |
15 | public String getValue() {
16 | return value;
17 | }
18 | }
19 |
--------------------------------------------------------------------------------
/python-playwright-example/pyproject.toml:
--------------------------------------------------------------------------------
1 | [tool.poetry]
2 | name = "python-playwright-example"
3 | version = "0.1.0"
4 | description = ""
5 | authors = ["Uragami Taichi "]
6 | readme = "README.md"
7 |
8 | [tool.poetry.dependencies]
9 | python = "^3.11"
10 | playwright = "^1.44.0"
11 |
12 |
13 | [build-system]
14 | requires = ["poetry-core"]
15 | build-backend = "poetry.core.masonry.api"
16 |
--------------------------------------------------------------------------------
/class-traverse-example/src/main/webapp/WEB-INF/web.xml:
--------------------------------------------------------------------------------
1 |
5 |
6 |
7 | 5
8 |
9 |
10 |
11 |
--------------------------------------------------------------------------------