Skip to content

Instantly share code, notes, and snippets.

View euije's full-sized avatar
🦓

Lee Euije euije

🦓
  • Chung-Ang University
  • 05:54 (UTC +09:00)
View GitHub Profile
@euije
euije / BlogitText.tsx
Created May 6, 2024 13:22
BlogitText.tsx
// a.tsx
const APage = async () => {
return (
<TextEditor>
</TextEditor>
)
}
// b.tsx
/*
* Copyright (c) 2000, 2001, 2002, 2003, 2004, 2005, 2008, 2009
* The President and Fellows of Harvard College.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
#pragma warning (disable : 4996)
#include <stdio.h>
#include <stdlib.h>
int c[8] = { 1,2,3,4,5,6,7,8 };
void createMatrix(char x, int rows, int cols);
int** getMatrix(char x);
int** a;
int** b;
int** e;//두 행렬을 더한 결과
int** f;//두 행렬을 곱한 결과
#include <iostream>
#include <cmath>
#include <cstring>
using namespace std;
int mem[1000001];
int N;
int dp(int n)
@euije
euije / 16236.cpp
Created March 18, 2023 08:42
아기상어 찾기
#include <iostream>
#include <queue>
#include <cstring>
#include <cmath>
#include <tuple>
using namespace std;
int N;
int map[20][20];
@euije
euije / 2.ts
Created January 14, 2023 11:55
import * as http from 'http';
import { promises as fs } from 'fs';
import * as path from 'path';
const users: { [key: string]: any } = {}; // 데이터 저장용
http
.createServer(async (req, res) => {
try {
if (req.method === 'GET') { // HTML 호스팅
<!DOCTYPE html>
<html lang="ko">
<head>
<meta charset="utf-8" />
<title>RESTful SERVER</title>
</head>
<body>
<div>
function solution(id_list, report, k) {
var answer = [];
let id_info = {};
for(let i = 0; i <id_list.length; i++){
id_info[id_list[i]] = {
report : [],
reported: 0
}
}
<div style={{
"position":"relative",
"width":"10vw",
"height":"10vh"
}}>
<Image
src={"https://hang-jeong-sal.s3.ap-northeast-2.amazonaws.com/image/euije.jpg"}
alt=""
fill={true}
style={{
@euije
euije / getBalance.js
Last active March 28, 2022 07:31
getBalance Code
export const getBalance = (address) => {
return caver.rpc.klay.getBalance(address).then((response) => {
const balance = caver.utils.convertFromPeb(caver.utils.hexToNumberString(response));
console.log(balance);
return balance;
})
};