Skip to content

Instantly share code, notes, and snippets.

View argraur's full-sized avatar
🔥
Studying

Arseniy Graur argraur

🔥
Studying
View GitHub Profile
@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"
@vladdenisov
vladdenisov / reshu-ege.js
Last active May 20, 2020 09:47
Solving ReshuOge/Ege tests
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))
})