🙇♂️
This file contains 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 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 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 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 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 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, |
This file contains 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
import dev.tpcoder.reactivedockercompose.book.Book; | |
import dev.tpcoder.reactivedockercompose.book.BookRepository; | |
import org.springframework.boot.ApplicationRunner; | |
import org.springframework.boot.SpringApplication; | |
import org.springframework.boot.autoconfigure.SpringBootApplication; | |
import org.springframework.context.annotation.Bean; | |
import reactor.core.publisher.Flux; | |
import java.util.List; |
This file contains 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
public record Book(Long id, String title, String isbn) { | |
} |
This file contains 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
version: '3.1' | |
services: | |
db: | |
image: postgres | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: p@ssw0rd | |
POSTGRES_DB: book | |
ports: |
This file contains 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
FROM rust:1.68.0 as builder | |
WORKDIR /app | |
COPY ./Cargo.lock ./Cargo.lock | |
COPY ./Cargo.toml ./Cargo.toml | |
COPY ./src ./src | |
RUN cargo build --release | |
RUN rm src/*.rs |
NewerOlder