Skip to content

Instantly share code, notes, and snippets.

View kaineer's full-sized avatar
:octocat:
⌨️ 🖱️

Sergey Kluchkovsky kaineer

:octocat:
⌨️ 🖱️
View GitHub Profile
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
p { font-size: 24px; }
</style>
</head>
<body>
@kaineer
kaineer / index.html
Last active December 24, 2024 06:52
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
</head>
<body>
<form action="">
<input type="text" name="token">
<button>Connect</button>
@kaineer
kaineer / arrow.js
Created December 6, 2024 12:49
arrow functions
const reset = (r) => {r.setVal(0)}
function reset(r) {r.setVal(0)}
isQuestionEditingDisabled(state) {
const isEditable = editableQuestionStates.includes(
state.wrapper.status
);
return !isEditable;
}
@kaineer
kaineer / 09.md
Last active November 5, 2024 06:08
@kaineer
kaineer / 09.md
Last active November 5, 2024 06:02

kazah0s, задание 09

  • index.js:90 Нужно добавить вызов handler, чтобы исправленный тест отрабатывал. Та же история с CheckboxInput#subscribe
@kaineer
kaineer / 09.md
Last active November 5, 2024 05:52

Dekuhub, задание 09

  • index.js:72 Лишняя строчка
  • index.js:107 Имя переменной при создании lebel, при использовании label.
  • index.js:109 Объект с именем div не был создан.
const context = ['sin', 'cos', 'exp']
.map((name) => ('const ' + name + ' = Math.' + name + '; '))
.join('');
export const buildFunction = (fn: string): (x: number) => number => {
const fullFn = '(x) => { ' + context + ' return (' + fn + '); }';
return eval(fullFn);
}
onInput={() =>
setGroupState({
...state,
mentorsGroupName: groupNameRef.current?.value || '',
})
}
PostAnswerVerificationAndRemoveFiles: build.mutation<unknown, AnswerCheckAndRemoveFilesPayload>({
async queryFn(payload, _queryApi, _extraOptions, fetchWithBQ) {
const checkPayload: AnswerCheckPayload = {
playerId: payload.playerId,
nodeId: payload.nodeId,
answerStatus: payload.answerStatus,
mentorsComment: payload.mentorsComment
};
const reviewResult = await fetchWithBQ({