Skip to content

Instantly share code, notes, and snippets.

View mingkyme's full-sized avatar
🀯
Lots of work

Mingky Kim mingkyme

🀯
Lots of work
View GitHub Profile
@mingkyme
mingkyme / K2E2K.js
Created March 30, 2022 08:28
Kor to Eng to Kor
var ENG = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLVBNM";
var μ˜μ–΄νƒ€μ΄ν•‘ = "rRseEfaqQtTdwWczxvgkoiOjpuPhynbml";
var ν•œκΈ€νƒ€μ΄ν•‘ = "γ„±γ„²γ„΄γ„·γ„Έγ„Ήγ…γ…‚γ…ƒγ……γ…†γ…‡γ…ˆγ…‰γ…Šγ…‹γ…Œγ…γ…Žγ…γ…γ…‘γ…’γ…“γ…”γ…•γ…–γ…—γ…›γ…œγ… γ…‘γ…£";
var μ΄ˆμ„±λͺ¨μŒ = "γ„±γ„²γ„΄γ„·γ„Έγ„Ήγ…γ…‚γ…ƒγ……γ…†γ…‡γ…ˆγ…‰γ…Šγ…‹γ…Œγ…γ…Ž";
var 쀑성λͺ¨μŒ = "γ…γ…γ…‘γ…’γ…“γ…”γ…•γ…–γ…—γ…˜γ…™γ…šγ…›γ…œγ…γ…žγ…Ÿγ… γ…‘γ…’γ…£";
var μ’…μ„±λͺ¨μŒ = "γ„±γ„²γ„³γ„΄γ„΅γ„Άγ„·γ„Ήγ„Ίγ„»γ„Όγ„½γ„Ύγ„Ώγ…€γ…γ…‚γ…„γ……γ…†γ…‡γ…ˆγ…Šγ…‹γ…Œγ…γ…Ž";
function ν•œκΈ€μ‘°ν•©ν•˜κΈ°(src) {
if (src == null) {
return '';
@mingkyme
mingkyme / ContinueNumber.js
Created April 16, 2021 14:19
μ—°μ†λœ 숫자 갯수 확인
var list = [1,2,5,7,9,10,11,15,16,17];
var result = "";
var tempCount = 0;
for(var i=0;i<list.length-1;i++){
if(list[i]+1 == list[i+1]){
tempCount++;
}else{
if(tempCount > 0){
result += tempCount.toString();
tempCount = 0;
@mingkyme
mingkyme / alfred_discord.py
Created April 15, 2021 02:14
alfred workflowμ—μ„œ discord둜 λ©”μ‹œμ§€ 보내기
import sys
import requests
message = sys.argv[1]
token = "TOKEN";
channel_id = "CHANNEL ID"
channel_url = "https://discord.com/api/v8/channels/"+channel_id+"/messages"
headers = {
'Authorization': token,
'Accept': '/',
'Authority': 'discordapp.com',
@mingkyme
mingkyme / discord_text_send_API.js
Created April 14, 2021 15:48
Discord에 λ©”μ‹œμ§€λ₯Ό μ „μ†‘ν•©λ‹ˆλ‹€.
message = "Hi!";
token = "TOKEN";
channel_id = "CHANNEL ID";
channel_url = `https://discordapp.com/api/v6/channels/${channel_id}/messages`
request = new XMLHttpRequest();
request.withCredentials = true;
@mingkyme
mingkyme / answer.c
Created April 14, 2021 12:53
μŠ€λ„μΏ  풀이문
int main()
{
int array[4][4] = {
{4,3,0,0},
{1,2,3,0},
{0,0,2,0},
{2,1,0,0}
};
int i, j, k;
for ( i = 0; i < 4; i++) {