version: '3'
services:
node:
build: .
volumes:
- .:/usr/src
working_dir: /usr/src
restart: unless-stopped
shm_size: 256M
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
[[Name]] | |
OSBot | |
[[Description]] | |
영어 말하기 시험인 OPIc 시험을 도와준다. | |
[[Instructions]] | |
너는 영어 말하기 시험인 OPIc 시험의 연습을 도와주는 봇이야 | |
너는 두가지 상태에 맞게 응답해야 해, 기본적으로는 한국어로 대답해 |
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
@echo off | |
if exist "patcher.ps1" ( | |
del "patcher.ps1" 2>nul | |
) | |
for /f %%a in ('type "%~0" ^| find /c /v ""') do set TotalLines=%%a | |
for /f "tokens=1,* delims=:" %%a in ('findstr /n /c:":PATCHER" "%~0"') do set StartLine=%%a | |
for /f "skip=%StartLine% delims=" %%i in ('type "%~0"') do ( | |
echo %%i >> patcher.ps1 | |
) |
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
@echo off | |
if exist "patcher.ps1" ( | |
del "patcher.ps1" 2>nul | |
) | |
for /f %%a in ('type "%~0" ^| find /c /v ""') do set TotalLines=%%a | |
for /f "tokens=1,* delims=:" %%a in ('findstr /n /c:":PATCHER" "%~0"') do set StartLine=%%a | |
for /f "skip=%StartLine% delims=" %%i in ('type "%~0"') do ( | |
echo %%i >> patcher.ps1 | |
) |
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
function writeMessage(text) { | |
document.querySelector('textarea').value = text; | |
} | |
function clickSendButton() { | |
document.querySelector('button.absolute').click(); | |
} | |
function waitResponse() { | |
return new Promise(resolve => { |
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
function waitFor(checkFunction, checkDelay = 100) { | |
return new Promise(resolve => { | |
let i = setInterval(_ => { | |
try { | |
let check = checkFunction(); | |
check ? clearInterval(i) || resolve(check) : void 0 | |
} catch (e) {} | |
}, checkDelay); | |
}); | |
} |
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
// ==UserScript== | |
// @name DownloadAllSolvedProblem | |
// @version 0.1 | |
// @author refracta | |
// @match https://www.acmicpc.net/* | |
// ==/UserScript== | |
function waitFor(vf, t) { | |
return new Promise(r => { | |
let i = setInterval(_ => { |
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
value.replaceAll('\\', '\').replaceAll('/', '/').replaceAll(':', ':').replaceAll('*', '*').replaceAll('?', '?').replaceAll('"', '"').replaceAll('<', '').replaceAll('>', '').replaceAll('|', '|') |
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
class Solution: | |
def findMedianSortedArrays(self, nums1, nums2): | |
len1 = len(nums1) | |
len2 = len(nums2) | |
totalLen = len1 + len2 | |
# 연산에 쓰이는 길이 상수 초기화 | |
nums1Cursor = nums2Cursor = totalCursor = 0 | |
# 커서 변수 초기화 | |
total = [None for i in range(totalLen)] | |
# nums1 + nums2 길이의 빈 배열 생성 |
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
let ls = new Proxy(localStorage, { | |
get: (o1, p1) => o1[p1] ? new Proxy(JSON.parse(o1[p1]), { | |
get: (o2, p2) => typeof o2[p2] === 'function' ? function () { let r = o2[p2].apply(o2, arguments); ls[p1] = o2; return r; } : o2[p2], | |
set: (o2, p2, v2) => { o2[p2] = v2; ls[p1] = o2 } | |
}) : null, | |
set: (o, p, v) => o[p] = JSON.stringify(v) | |
}); | |
/* | |
let ls = new Proxy(localStorage, |
NewerOlder