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
inps = document.getElementsByClassName('test_inp') | |
Array.from(document.getElementsByClassName('prob_nums')).map((e, i) => { | |
$.get('/problem?id=' + e.children[0].innerHTML).then(html => { | |
const answer_txt = $(html).find('.answer')[0].innerText | |
if (answer_txt.indexOf('|') !== -1) inps[i + 5].value = answer_txt.slice(7, answer_txt.indexOf('|')) | |
else inps[i + 5].value = answer_txt.slice(7) | |
}, (e) => console.error(e)) | |
}) |
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 | |
set winsd=%~dp0 | |
set winsd=%winsd:~0,-1% | |
echo %winsd% | |
:: BatchGotAdmin | |
:------------------------------------- | |
REM --> Check for permissions | |
IF "%PROCESSOR_ARCHITECTURE%" EQU "amd64" ( | |
>nul 2>&1 "%SYSTEMROOT%\SysWOW64\cacls.exe" "%SYSTEMROOT%\SysWOW64\config\system" |