Skip to content

Instantly share code, notes, and snippets.

View raitonoberu's full-sized avatar

Denis raitonoberu

View GitHub Profile
@raitonoberu
raitonoberu / progressbar.py
Created March 23, 2021 10:35
Clone of the Fluent UI indeterminate ProgressBar (pygame)
import pygame
import pygame.draw
import pygame.locals
from math import cos, pi
FILLED_COLOR = (108, 88, 123)
UNFILLED_COLOR = (204, 204, 204)
class ProgressBar(object):
@raitonoberu
raitonoberu / progressring.py
Last active March 24, 2021 20:40
Clone of the Fluent UI ProgressRing (pygame)
import pygame
import pygame.draw
import pygame.locals
from math import sin, cos, pi
FILLED_COLOR = (108, 88, 123)
UNFILLED_COLOR = (204, 204, 204)
deg2Rad = (2 * pi) / 360
@raitonoberu
raitonoberu / navigationindicator.py
Created May 16, 2021 10:03
Clone of the Fluent UI NavigationPane indicator (pygame)
import pygame
import pygame.draw
import pygame.locals
from math import sqrt
kOneLineTileHeight = 40
kNavigationIndicatorHeight = 24
kNavigationIndicatorWidth = 2
kNavigationIndicatorGap = 4
@raitonoberu
raitonoberu / exam1.user.js
Last active December 3, 2022 19:37
exam1 english helper | tampermonkey
// ==UserScript==
// @name EXAM1 ENGLISH HELPER
// @namespace https://github.com/raitonoberu/
// @version 0.1
// @description Помогает с копированием тестов
// @author raitonoberu
// @encoding utf-8
// @homepage https://github.com/raitonoberu/
// @match https://exam1.urfu.ru/mod/quiz/review.php?*
// @grant none
@raitonoberu
raitonoberu / voidlinux_gnome.md
Last active January 16, 2024 12:08
Void Linux + GNOME quick setup

Void Linux + GNOME guide

This is a guide I wrote for my future self that will help to quickly set up a fully usable Void Linux installation with Wayland-only GNOME. This is heavily inspired by and based on nerdyslacker's guide (huge thanks!).

  1. Download the base glibc live image here and install using the official instructions. Don't forget to configure the network during installation.
  2. Install essential packages:
sudo xbps-install -Suv
sudo xbps-install -Rs void-repo-nonfree
sudo xbps-install gnome dbus xdg-user-dirs-gtk xdg-utils NetworkManager pipewire libspa-bluetooth ntp dejavu-fonts-ttf gnome-browser-connector qt5-wayland
URL = "https://up.htmlacademy.ru/univer-web-dev-start/2/module/8/item/2/{}"
TASKS = range(1, 21)
COOKIES = {
"h2": "2b43bedb9vvh...0d97b35",
"cff2ec2f6032shfkrfkrfkr2102eab2a": "RU.f2373b52ss7bda976fvb966s31bcww2",
"48bedib3nbdga01fvsd2v1073248c986": "cohort20.ddv31aa6215...1bd8fe121c",
"phpdemo": "eyJ0eXAcmrmgV1...2owZT7qv4BBL5Zc",
}
# ----------