Skip to content

Instantly share code, notes, and snippets.

View pastuhov's full-sized avatar
💭
I may be slow to respond.

Pastuhov Kirill pastuhov

💭
I may be slow to respond.
View GitHub Profile
{
"id": "base",
"properties": {
"prop1": {
"type": "number"
},
"prop2": {
"type": "number"
},
"prop_obj": {
package stack
// Stack is a LIFO collection.
//
// Concurrency: not safe for concurrent use.
type Stack[T any] struct {
elements []T
}
func (s *Stack[T]) Push(element T) {
package queue
// Queue is a FIFO collection.
//
// Concurrency: not safe for concurrent use.
type Queue[T any] struct {
elements []T
head int
}
@pastuhov
pastuhov / docker-compose.yml
Last active October 15, 2025 13:30
Simple mock web server with a delayed response
services:
nginx:
image: openresty/openresty:alpine
ports:
- "8080:80"
volumes:
- ./nginx.conf:/usr/local/openresty/nginx/conf/nginx.conf:ro