🙇♂️
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release to Cloudflare Page | |
on: | |
push: | |
branches: [main] | |
workflow_dispatch: | |
permissions: | |
contents: write | |
pages: write |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: chinook | |
services: | |
postgres: | |
image: postgres:15.3-alpine | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: chinook_db | |
ports: | |
- "5432:5432" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
JAVA_TOOL_OPTIONS="-javaagent:build/agent/opentelemetry-javaagent.jar" | |
OTEL_SERVICE_NAME="gout" | |
OTEL_EXPORTER_OTLP_ENDPOINT="http://localhost:4317" | |
OTEL_EXPORTER_OTLP_PROTOCOL="grpc" | |
OTEL_RESOURCE_ATTRIBUTES="service.name=gout,service.instance.id=gout,env=dev" | |
# Logs are disabled by default | |
OTEL_LOGS_EXPORTER="otlp" | |
OTEL_METRIC_EXPORT_INTERVAL=500 | |
OTEL_BSP_SCHEDULE_DELAY=500 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS category ( | |
id SERIAL NOT NULL, | |
name VARCHAR(50) NOT NULL, | |
CONSTRAINT category_pkey PRIMARY KEY (id) | |
); | |
CREATE TABLE IF NOT EXISTS menu ( | |
id SERIAL PRIMARY KEY, | |
category_id INT NOT NULL, | |
name VARCHAR(100) NOT NULL, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const TARGET = 3; | |
const OBSTACLE = 2; | |
/** | |
* | |
* @param {Number} height : ความสูงของตาราง; | |
* @param {Number} width : ความกว้างของตาราง; | |
* @param {Number} ob : สิ่งกีดขวาง; | |
*/ | |
function generateMap(height, width, ob) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.tpcoder.interaction.domain.progression | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import jakarta.annotation.PostConstruct | |
import jakarta.annotation.PreDestroy | |
import org.slf4j.LoggerFactory | |
import org.springframework.beans.factory.annotation.Qualifier | |
import org.springframework.stereotype.Service | |
import reactor.core.Disposable | |
import reactor.core.Disposables |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.tpcoder.contentdelivery.domain.course | |
import com.fasterxml.jackson.databind.ObjectMapper | |
import dev.tpcoder.contentdelivery.configuration.properties.KafkaChannelProperties | |
import dev.tpcoder.contentdelivery.domain.course.model.Course | |
import dev.tpcoder.contentdelivery.domain.course.model.KafkaPayload | |
import dev.tpcoder.contentdelivery.domain.course.model.ProgressEvent | |
import dev.tpcoder.contentdelivery.domain.course.model.Section | |
import org.apache.kafka.clients.producer.ProducerRecord | |
import org.slf4j.LoggerFactory |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.tpcoder.medicalcheckup.appointment | |
import dev.tpcoder.medicalcheckup.appointment.dto.CheckupResultCreation | |
import dev.tpcoder.medicalcheckup.appointment.entity.CheckupResult | |
import org.springframework.web.bind.annotation.* | |
@RestController | |
@RequestMapping("/checkups") | |
class CheckupController(private val checkupResultService: CheckupResultService, private val appointmentService: AppointmentService) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController | |
@RequestMapping("/appointments") | |
class AppointmentController(private val appointmentService: AppointmentService) { | |
private val logger = LoggerFactory.getLogger(AppointmentController::class.java) | |
// Appointment - For Patient | |
@PostMapping | |
fun createAppointment(@RequestBody payload: CreateAppointmentRequest): CreateAppointmentResponse { | |
val createdAppointment = appointmentService.createAppointment(payload) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package dev.tpcoder.medicalcheckup.newsletter | |
import dev.tpcoder.medicalcheckup.common.entity.Patient | |
import org.springframework.data.annotation.Id | |
import org.springframework.data.jdbc.core.mapping.AggregateReference | |
import org.springframework.data.relational.core.mapping.Table | |
@Table("subscriptions") | |
data class Subscription( | |
@Id val id: Long? = null, |