Skip to content

Instantly share code, notes, and snippets.

View evdokimovm's full-sized avatar

Mikhail Evdokimov evdokimovm

View GitHub Profile
@evdokimovm
evdokimovm / get_rank_by_RP.py
Created January 17, 2024 12:33
get rainbow six siege r6s rank by rp mmr ranked points
def value_to_rank(RP):
titles_list = ['Copper', 'Bronze', 'Silver', 'Gold', 'Platinum', 'Emerald', 'Diamond', 'Champion']
min_value = 1000
rank_interval = 500
increment = 100
if RP <= 1000:
return 'Copper 5'
@evdokimovm
evdokimovm / index.html
Last active January 26, 2024 02:44
drag a box around the screen and drop it onto one of three target areas. check if the draggable element is inside any of the target elements
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body {
margin: 0;
padding: 0;
}
@evdokimovm
evdokimovm / index.html
Last active August 5, 2024 00:25
chess puzzles from The Password Game with answers
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Chess Puzzles from The Password Game with Solutions</title>
</head>
<body>
<style>
#container {
display: flex;
@evdokimovm
evdokimovm / Microsoft.PowerShell_profile.ps1
Created February 14, 2024 09:29
My PowerShell 7 Microsoft.PowerShell_profile.ps1 profile
oh-my-posh init pwsh --config "$env:POSH_THEMES_PATH\amro.omp.json" | Invoke-Expression
Import-Module Terminal-Icons
Import-Module PSReadLine
New-Alias code code-insiders
New-Alias curl C:\curl-7.81.0-win64-mingw\bin\curl.exe
Remove-Alias md
function md {
param (
@evdokimovm
evdokimovm / pomodoro.py
Last active March 20, 2024 04:58
pomodoro timer in python
import winsound
import tkinter as tk
from PIL import Image, ImageDraw, ImageTk
class PomodoroClock:
def __init__(self, master):
self.master = master
self.total_time_in_seconds = 0
self.elapsed_time_in_seconds = 0
self.timer_running = False