Skip to content

Instantly share code, notes, and snippets.

View RootTool0's full-sized avatar

Root Tool RootTool0

View GitHub Profile
#include <iostream>
#include <vector>
#include <string>
#include <filesystem>
#include <conio.h>
#define RESET "\033[0m"
#define BOLD "\033[1m"
#define RED "\033[31m"
const appletName = Object.keys(window).filter(k => k.startsWith('ggbApplet'))[1];
function parseParabola(str) {
str = str.replace(/\s+/g, '');
const regex = /y=([+-]?\d*\.?\d*)\(x([+-]\d+)\)\^\{2\}([+-]\d+)?/;
const match = str.match(regex);
if (!match) {
console.error('Формула не соответствует формату! Нажми "Новая формула"');
return null;