This file contains hidden or 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 urllib3 | |
import json | |
import os | |
from datetime import datetime, timezone, timedelta | |
seoul = timezone(timedelta(hours=9) ,name="Asia/Seoul") | |
http = urllib3.PoolManager() | |
url = os.environ["SLACK_WEBHOOK_URL"] | |
slack_channel = os.environ["SLACK_CHANNEL"] |
This file contains hidden or 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 json | |
import re | |
import urllib.request | |
from bs4 import BeautifulSoup | |
NAME_RULE = r"(\d+)/\d+.py" | |
CLIENT_HEADER = {'User-Agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:86.0) Gecko/20100101 Firefox/86.0'} | |
def search_solved_ac(problem): |
This file contains hidden or 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
#!/usr/bin/python3 | |
import sys | |
import os | |
import subprocess | |
POE_PATH = "drive_c/Daum Games/Path of Exile/" | |
POE_CLIENT_PATH = POE_PATH + "PathOfExile_KG.exe" | |
def parseURL(url): | |
# URL 구분자 삭제 |
This file contains hidden or 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
package main | |
func BootstrapTemplate() string { | |
jquery := "<script src=\"https://code.jquery.com/jquery-3.1.0.min.js\" integrity=\"sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s=\" crossorigin=\"anonymous\"></script>" | |
css := "<link href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css\" rel=\"stylesheet\" integrity=\"sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u\" crossorigin=\"anonymous\">" | |
option := "<link rel=\"stylesheet\" href=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css\" integrity=\"sha384-rHyoN1iRsVXV4nD0JutlnGaslCJuC7uwjduW9SVrLvRYooPp2bWYgmgJQIXwl/Sp\" crossorigin=\"anonymous\">" | |
script := "<script src=\"https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js\" integrity=\"sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa\" crossorigin=\"anonymous\"></script>" | |
return jquery + "\n" + css + "\n" + option + "\n" + script + "\n" | |
} |
This file contains hidden or 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
package SplitLineRe | |
import "regexp" | |
func SplitLineRe(raw string) []string{ | |
return regexp.MustCompile("((\r)\n)").Split(raw,-1) | |
} |
This file contains hidden or 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
package SplitLine | |
func SplitLine(raw string) (lines []string){ | |
lines = make([]string,1) | |
temp := "" | |
for _,ch := range raw{ | |
if ch == '\r'{ | |
continue | |
}else if ch == '\n'{ | |
lines = append(lines,temp) |
This file contains hidden or 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
using System; | |
using System.Threading; | |
namespace FuncSleep{ | |
class Program{ | |
void FuncA(){ | |
System.Threading.Sleep(1000); | |
Console.WriteLine("Hello, World"); | |
} | |
This file contains hidden or 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
using System; | |
using System.Threading; | |
namespace FuncASuspendResum{ | |
class Program{ | |
static Thread A; | |
static Thread B; | |
static void FuncA(){ | |
A.Suspend(); |
This file contains hidden or 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
using System; | |
using System.Threading; | |
namespace FuncAStop{ | |
class Program{ | |
static Thread A; | |
static Thread B; | |
static void FuncA(){ | |
for (int i = 0; i < 100; i++){ |
This file contains hidden or 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
using System; | |
using System.Threading; | |
namespace FuncAB{ | |
class Program{ | |
static void FuncA(){ | |
for (int i = 0; i < 100; i++){ | |
Console.WriteLine("A : " + i); | |
} | |
} |
NewerOlder