Skip to content

Instantly share code, notes, and snippets.

@shininghyunho
shininghyunho / app.py
Created January 16, 2023 11:04
예측모델
from flask import Flask, request
from flask_sqlalchemy import SQLAlchemy
import pickle
import config
import json
from apscheduler.schedulers.background import BackgroundScheduler
from geoalchemy2 import Geometry
# init app
app=Flask(__name__)
@shininghyunho
shininghyunho / save.kt
Created December 28, 2022 13:47
실거래가 저장
import com.google.gson.Gson
import org.apache.http.client.config.RequestConfig
import org.apache.http.client.methods.HttpPost
import org.apache.http.entity.StringEntity
import org.apache.http.impl.client.HttpClients
import java.io.BufferedReader
import java.io.File
import java.util.LinkedList
// apache http client
@shininghyunho
shininghyunho / NotificationController.java
Created March 28, 2022 08:19
sse 채팅 컨트롤러 테스트
package com.around.wmmarket.controller;
import com.around.wmmarket.common.Constants;
import com.around.wmmarket.common.ResponseHandler;
import com.around.wmmarket.common.SuccessResponse;
import com.around.wmmarket.controller.dto.notification.NotificationSearchRequestDto;
import com.around.wmmarket.domain.notification.NotificationType;
import com.around.wmmarket.domain.user.Role;
import com.around.wmmarket.domain.user.SignedUser;
import com.around.wmmarket.domain.user.User;
@shininghyunho
shininghyunho / sse.html
Created March 28, 2022 08:17
sse 채팅 프론트 테스트
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>SSE TEST</title>
</head>
<body>
<input id="userId"/>
<button id="enter">enter</button>
<br>
@shininghyunho
shininghyunho / view-image.html
Last active August 6, 2022 17:06
이미지 불러오기 예제 코드입니다.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>TEST IMAGE</title>
</head>
<body>
<input id="userId"/>
<button id="enter">enter</button>
<br><img id="user-image">
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
class B11779_SOL{
private static int n,m,from,to;
private static final int INF=987654321;
private static List<List<Node>> graph=new ArrayList<>();
private static int[] dist,route;