This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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++) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var ENG = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLVBNM"; | |
var 영어타이핑 = "rRseEfaqQtTdwWczxvgkoiOjpuPhynbml"; | |
var 한글타이핑 = "ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅛㅜㅠㅡㅣ"; | |
var 초성모음 = "ㄱㄲㄴㄷㄸㄹㅁㅂㅃㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎ"; | |
var 중성모음 = "ㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣ"; | |
var 종성모음 = "ㄱㄲㄳㄴㄵㄶㄷㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅄㅅㅆㅇㅈㅊㅋㅌㅍㅎ"; | |
function 한글조합하기(src) { | |
if (src == null) { | |
return ''; |