Skip to content

Instantly share code, notes, and snippets.

View alekxeyuk's full-sized avatar
⚒️
Workers of the world, unite!

LeLuCh B0й alekxeyuk

⚒️
Workers of the world, unite!
  • Tanelorn
  • United Russian Kingdom
View GitHub Profile
@alekxeyuk
alekxeyuk / main.cpp
Created April 5, 2024 12:07
bizzarechat
#include <iostream>
#include <unordered_set>
typedef std::unordered_set<int> int_set;
enum AccessLevel : int
{
ADMIN, // Может регистрировать новых пользователей, давать роль админа или модератора другим пользователям, а также полностью останавливать чат
MODERATOR, // Может банить пользователей, создавать других модераторов, а также полностью редактировать все сообщения
BANNED, // Не может ничего, предполагается, что ни ADMIN, ни MODERATOR не станут BANNED
@alekxeyuk
alekxeyuk / list.cpp
Created February 17, 2024 05:53
List struct
#include <iostream>
struct Node {
Node* next;
int value;
};
struct List
{
Node* first;
@alekxeyuk
alekxeyuk / main.cpp
Created January 12, 2024 14:56
std::list with iterator pointing to the middle of the list
#include <iostream>
#include <list>
// std::list with iterator pointing to the middle of the list
int main() {
std::list<int> lst{};
size_t N;
char op;
int i;
@alekxeyuk
alekxeyuk / domino.py
Created September 13, 2021 12:05
Domino game with basic AI
from enum import Enum, auto
from itertools import cycle
from typing import Counter, List, Tuple
import random
class GameState(Enum):
INIT = auto()
RUN = auto()
@alekxeyuk
alekxeyuk / server.py
Last active September 12, 2021 06:43
URL shortener
from http.server import BaseHTTPRequestHandler
from http.server import ThreadingHTTPServer
from typing import Dict
from uuid import uuid4
import json
database: Dict[str, str] = dict()
class HttpGetHandler(BaseHTTPRequestHandler):
def _set_headers(self, status: int = 200, c_type: str = "text/html"):
@alekxeyuk
alekxeyuk / game.py
Last active August 8, 2021 10:23
Hangman game
import random
import string
word_list = ['python', 'java', 'kotlin', 'javascript']
class GameState:
def __init__(self):
self.turns = 8
self.alive = True
package ru.cmtt.osnova.sdk.methods;
import com.facebook.share.internal.ShareConstants;
import com.google.android.gms.actions.SearchIntents;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.gson.JsonElement;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.util.List;
import kotlin.Metadata;
package ru.cmtt.osnova.sdk.methods;
import com.facebook.appevents.internal.ViewHierarchyConstants;
import com.facebook.internal.NativeProtocol;
import com.google.android.exoplayer2.text.ttml.TtmlNode;
import com.google.android.gms.actions.SearchIntents;
import com.google.firebase.analytics.FirebaseAnalytics;
import com.google.firebase.remoteconfig.FirebaseRemoteConfig;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
#EXTINF:-1,HOME - Way, Shape, And Form (320)
https://psv4.vkuseraudio.net/c611125/u50907945/audios/e1e1efc8b125.mp3?extra=i3JOb-K0EOSjI_uAuPhyzYurh4NOU_Ooxifxy0dLK62nNX74NQjHVfoc8Uo2lK2l_GAUP3rEhowG83ElJBUs4Vs7IxXU5m_TP5L_pOPWDaDnXg7nFKi5KLdRNh1hf38W1c-jiX8uQrnFXlV_
#EXTINF:-1,HOME - Resonance (320)
https://cs1-74v4.vkuseraudio.net/p16/737228d2dd2989.mp3?extra=FSKOveHJzZlSNyQbr56sSNEVzPeOXdFkPiVXIfyly0bgN_HEY-MKqeJHRf3U-XOFsJfvXiVabn7HzNUBaIjq4dJQoXHqMYwKkslIEGZYaBg8caTG0IGT6FYIs0dpinTWNrrgX-VVp2kQbXtn
#EXTINF:-1,HOME - Windows (320)
https://cs1-73v4.vkuseraudio.net/p8/b1acb7c746b44e.mp3?extra=a8c7iSaXCqMYoNziEGFHlV2W6dikP8figwpLtaI1kLw8n2WAx2kJ3M2ZnF1t_swYOJ8oawciHo9K6Ktf-kXSA7ZSJhwBVbgfM6a7ttEGJbZ6bGqJaCp0xeE_DuHMiKFcOHSPxgmJ7dMEBV_f
#EXTINF:-1,HOME - Decay (320)
https://cs1-42v4.vkuseraudio.net/p9/8af25b9a231ddb.mp3?extra=kjZJIuO6qbLPG7K1vkI1p4B71zg-cvNpT76zHws302EeJDscy0_B7p6LpT1UG7DIHNHyZD81a3CY3gY4tfm5RFjHRh9ZeHx9eOLem9rtmkcSawZLMdBG1BW8LnUAuIf6RaH-x5JJIZUOsw_g
#EXTINF:-1,HOME - Hold (320)
https://cs1-7
{
"type": "playlist",
"ownerId": 196090362,
"id": 3,
"isOfficial": 0,
"title": "HOME Discographic",
"subTitle": null,
"description": "",
"rawDescription": "",
"authorLine": "",