This file contains hidden or 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
#pragma once | |
#include <cassert> | |
#include <cstdlib> | |
#include <iterator> | |
#include <utility> | |
#include <memory> | |
#include <algorithm> | |
template <typename T> |
This file contains hidden or 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
#![allow(dead_code)] | |
#![allow(unused_imports)] | |
use { | |
std::{ | |
io::{ | |
self, | |
Read, | |
Write, | |
Stdin, |
This file contains hidden or 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
import telebot | |
def clean_word(word: str): | |
return "".join(filter(lambda x: str.isalnum(x), word.lower())) | |
def IpatovMarkize(string: str): | |
words = string.split() | |
has_mipatov = False |
This file contains hidden or 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
from fourth import * | |
weight_addition_on_pole_newtons = a_to_center * m_stone | |
weight_addition_on_pole_micronewtons = weight_addition_on_pole_newtons * 1e6 | |
if __name__ == '__main__': | |
print(weight_addition_on_pole_micronewtons) |
This file contains hidden or 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
#include <Arduino.h> | |
#include <SoftwareSerial.h> | |
class Joystick{ | |
int m_up = 0; | |
int m_down = 0; | |
int m_right = 0; | |
int m_left = 0; | |
bool m_button = false; |
This file contains hidden or 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
import numpy as np | |
from matplotlib import pyplot as plt | |
from scipy.optimize import curve_fit | |
data = [(float(i[0]), float(i[1])) for i in list(map(str.split, open("data1.txt", "r").read().strip().split("\n")))] | |
def line(_x, _k, b): | |
return _x * _k + b |
This file contains hidden or 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
from typing import * | |
class edge: | |
def __init__(self, s, e, l): | |
self.start = s | |
self.end = e | |
self.length = l | |
def __repr__(self): | |
return f"({self.start}, {self.end}, {self.length})" | |
start : int |
This file contains hidden or 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
import random | |
from typing import Any | |
from matplotlib import pyplot as plt | |
import numpy as np | |
class linear_regression: | |
b : float | |
k : float | |
def __init__(self, init_k : float, init_b : float): |