Skip to content

Instantly share code, notes, and snippets.

View cjaewon's full-sized avatar

cjaewon cjaewon

View GitHub Profile
@cjaewon
cjaewon / memo.html
Last active March 22, 2025 14:42
simple memo html (just copy and past to browser url input, not support save as html, just use cp for saving)
data:text/html;charset=utf-8,<!DOCTYPE html><html contenteditable style="font-family:sans-serif; white-space:pre-wrap;"><head><meta charset="UTF-8"><title>%EA%B0%84%EB%8B%A8%ED%95%9C %EB%A9%94%EB%AA%A8%EC%9E%A5</title><script>window.addEventListener('beforeunload', function (e) { const confirmationMessage = '%EC%A0%95%EB%A7%90%EB%A1%9C %EC%B0%BD%EC%9D%84 %EB%8B%AB%EC%9C%BC%EC%8B%9C%EA%B2%A0%EC%8A%B5%EB%8B%88%EA%B9%8C? %EC%9E%91%EC%84%B1 %EC%A4%91%EC%9D%B8 %EB%82%B4%EC%9A%A9%EC%9D%B4 %EC%A0%80%EC%9E%A5%EB%90%98%EC%A7%80 %EC%95%8A%EC%9D%84 %EC%88%98 %EC%9E%88%EC%8A%B5%EB%8B%88%EB%8B%A4.'; (e || window.event).returnValue = confirmationMessage; return confirmationMessage; });</script></head><body>%EA%B0%84%EB%8B%A8%ED%95%9C %EB%A9%94%EB%AA%A8%EC%9E%A5%EC%9E%85%EB%8B%88%EB%8B%A4. %EC%97%AC%EA%B8%B0%EC%97%90 %EB%A9%94%EB%AA%A8%ED%95%98%EC%8B%AD%EC%8B%9C%EC%98%A4!</body></html>
@cjaewon
cjaewon / pandoc.css
Last active March 9, 2025 15:54 — forked from killercup/pandoc.css
pandoc css
/*
* I add this to html files generated with pandoc.
* pandoc file.md -c https://gist.github.com/cjaewon/699d3c84f1c33756021d720bf74d1e2b/raw/75f890a363a433438ee136fd23ee012d12028ea3/pandoc.css -o file.html -s --embed-resources
*/
html {
font-size: 100%;
overflow-y: scroll;
-webkit-text-size-adjust: 100%;
-ms-text-size-adjust: 100%;
@cjaewon
cjaewon / link.txt
Created November 15, 2024 05:10
my p5.js projects
@cjaewon
cjaewon / filter-uBlockOrigin.txt
Created October 12, 2024 11:35
uBlock Origin filter that hides typing effect in chatgpt
! hiding typing effect
chatgpt.com##.result-streaming
@cjaewon
cjaewon / data.json
Last active December 18, 2023 06:38
busan metro with dijkstra algorithm
{
"1호선": "001-노포+002-범어사+003-남산+004-두실+005-구서+006-장전+007-부산대+008-온천장+009-명륜+010-동래+011-교대+012-연산+013-시청+014-양정+015-부전+016-서면+017-범내골+018-범일+019-좌천+020-부산진+021-초량+022-부산역+023-중앙+024-남포+025-자갈치+026-토성+027-동대신+028-서대신+029-대티+030-괴정+031-사하+032-당리+033-하단+034-신평+035-동매+036-장림+037-신장림+038-낫개+039-다대포항+040-다대포해수욕장",
"1호선-시간": "001-05:08+002-05:09+003-05:11+004-05:13+005-05:15+006-05:17+007-05:19+008-05:21+009-05:23+010-05:24+011-05:26+012-05:28+013-05:31+014-05:33+015-05:35+016-05:37+017-05:41+018-05:42+019-05:44+020-05:46+021-05:47+022-05:49+023-05:51+024-05:53+025-05:54+026-05:57+027-06:00+028-06:02+029-06:04+030-06:06+031-06:08+032-06:09+033-06:11+034-06:14+035-06:17+036-06:20+037-06:21+038-06:23+039-06:25+040-06:28",
"2호선": "001-양산+002-남양산+003-부산대양산캠퍼스+004-증산+005-호포+006-금곡+007-동원+008-율리+009-화명+010-수정+011-덕천+012-구명+013-구남+014-모라+015-모덕+016-덕포+017-사상+018-감전+019-주례+020-냉정+021-개금+022-동의대+023-가야+024-부암+025-서면+026-전포+027-국제금융.부산은행+028-문현+029-지게골+030-못골+031-대연+032-경성대.부경대+033-남천+034-금련산+035-광안+036-수영+037-민락+038-센텀시
@cjaewon
cjaewon / wfc.py
Last active November 30, 2023 07:13
very-simple-wfc-algorithm
"""
규칙
파동 함수 붕괴 알고리즘을 이용하여 실제로 학교 시간표를 결정하는 코드를 작성해보겠다.
먼저 규정한 규칙은 다음과 같다.
+ 물I과 물II는 연속으로 배치되면 안된다.
+ 화I과 화II는 연속으로 배치되면 안된다.
+ 지I과 지II는 연속으로 배치되면 안된다.
@cjaewon
cjaewon / better.css
Last active April 15, 2023 14:50
better text viewer for txt file in chrome
body {
margin: 0 auto;
padding: 0;
box-sizing: border-box;
font-family: -apple-system,BlinkMacSystemFont,apple sd gothic neo,pretendard variable,Pretendard,Roboto,noto sans kr,segoe ui,malgun gothic,apple color emoji,segoe ui emoji,segoe ui symbol,sans-serif;
text-shadow: 0 0 0.1px rgba(0,0,0,.3);
-webkit-font-smoothing: antialiased;
-webkit-font-smoothing: antialiased;
-moz-font-smoothing: antialiased;
max-width: 672px;
@cjaewon
cjaewon / gist:2459431f9f63789014e0f101d75e48b8
Created December 25, 2021 06:57
Mysql, MariaDB connection URI
root:(password)@tcp(127.0.0.1:3306)/(databasename)?charset=utf8mb4&parseTime=True&loc=Local
@cjaewon
cjaewon / media.ts
Created March 28, 2021 02:09
Styles Toolkit
const mediaQuery = (maxWidth: number) => `
@media (max-width: ${maxWidth}px)
`;
const media = {
xxlarge: mediaQuery(1920),
xlarge: mediaQuery(1440),
large: mediaQuery(1200),
medium: mediaQuery(1024),
small: mediaQuery(768),
@cjaewon
cjaewon / main.go
Last active April 17, 2023 00:08
golang echo validator (password)
package main
import (
"v/utils"
"os"
"github.com/go-playground/validator/v10"
)