Skip to content

Instantly share code, notes, and snippets.

View hanjae-jea's full-sized avatar

Hanjae hanjae-jea

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<definitions xmlns:wsr="http://www.openuri.org/2002/10/soap/reliability/"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns="http://schemas.xmlsoap.org/wsdl/"
xmlns:soap12enc="http://www.w3.org/2003/05/soap-encoding"
xmlns:s="http://www.w3.org/2001/XMLSchema"
xmlns:tns="http://api.nhic.or.kr/services/nhic"
xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
xmlns:conv="http://www.openuri.org/2002/04/wsdl/conversation/"
xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
@hanjae-jea
hanjae-jea / login.mjs
Created August 1, 2023 08:53
2023 08 01
import bodyParser from "body-parser";
import express from "express";
import passport from "passport";
import localPass from "passport-local";
import jwtPass from "passport-jwt";
import jwt from "jsonwebtoken";
const app = express();
app.use(bodyParser.json());
const fs = require("fs");
const input = fs.readFileSync("dev/stdin").toString();
const lines = input.trim().split("\n");
const N = Number(lines[0]);
const SWITCH = [undefined].concat(lines[1].trim().split(" ").map(Number));
const M = Number(lines[2]);
for (let l = 3; l < 3 + M; l++) {
const fs = require('fs');
const input = fs.readFileSync('/dev/stdin').toString()
const lines = input.split("\n");
const [n, ...twoNumbers] = lines;
twoNumbers.map(twoString => {
const [a, b] = twoString.split(" ").map((num) => parseInt(num));
for( let i = 1 ; i <= b ; i ++ ){
if( a * i % b == 0 ) {
console.log(a*i);
@hanjae-jea
hanjae-jea / 02.27.js
Created February 27, 2023 13:04
02.27
let fs = require("fs");
let line = fs.readFileSync("/dev/stdin").toString(); // line "3 5"
let numbers = line.split(" "); // ["3", "5"]
let a = parseInt(numbers[0]); // 3
let b = parseInt(numbers[1]); // 5
console.log(a + b);
// var input = fs.readFileSync("/dev/stdin").toString().split(" ");
# 1 객체 생성 확인
try:
my = Account("제한재", "2231")
print("채점 #1 : 객체 생성 ✅")
except:
print("채점 #1 : 객체 생성 ❌")
# 2 통장 번호 확인
try:
qid = my.getId()
@hanjae-jea
hanjae-jea / Brewfile
Last active November 28, 2022 05:39
My Brewfile
tap "homebrew/bundle"
tap "homebrew/cask"
tap "homebrew/core"
brew "zsh-autosuggestions"
brew "zsh-syntax-highlighting"
brew "python3"
brew "node"
brew "exa"
brew "git"
brew "openjdk"
@hanjae-jea
hanjae-jea / depth.js
Created July 1, 2022 03:39
1depth, 2depth
export const location1 = [
"서울",
"경기",
"인천",
"강원",
"경남",
"경북",
"광주",
"대구",
"대전",
<!--
프로젝트 작업 추천 순서
0. 강의자료 한 번 따라해보기
1. html / javascript 만 완성해보기
-> "서버 연동 처리 전에 작업하는 코드" 참고해서, 서버 연동 결과를 있다고 치고, 변수에 미리 넣고 작업해보기
2. python 서버 완성해보기
-> python 코드를 참고하되, DB 연동 결과는 있다고 치고, 변수에 미리 넣고 서버 만들어보기
3. 1에서 완성한 html과, 2에서 완성한 서버를 연동해보기 (난이도: 상)
4. DB 만들어서, python 서버와 연동해보기
-->
def verify(k: int, n: int, box):
for i in range(k):
s1 = set()
for n1 in range(n):
for n2 in range(n1 + 1, n):
s1.add(abs(box[i][n1] - box[i][n2]))
for j in range(i+1, k):
s2 = set()
for n1 in range(n):
for n2 in range(n1 + 1, n):