Skip to content

Instantly share code, notes, and snippets.

View dan0nchik's full-sized avatar
🎧
Always focused

Daniel Khromov dan0nchik

🎧
Always focused
  • Student at HSE University
  • Moscow, Russia
  • 16:45 (UTC +03:00)
View GitHub Profile
#include <fstream>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
struct Employee {
std::string name;
std::vector<int> salaries;
};
@dan0nchik
dan0nchik / downloads.py
Created April 7, 2023 17:21
[EXPERIMENTAL] Download files in parallel from S3 Storage using boto3
from asyncio import as_completed
from functools import partial
import os
import boto3
import tqdm
from concurrent.futures.thread import ThreadPoolExecutor
from dotenv import load_dotenv
load_dotenv()
LOCAL_WEIGHTS_DIR = 'model-weights-skills'
@dan0nchik
dan0nchik / main.cpp
Created May 10, 2023 08:14
'23 HSE Course Contest 5 task 1
#include <algorithm>
#include <iostream>
#include <map>
#include <vector>
typedef unsigned int UInt;
struct Date
{
UInt day;
addi x17, x0, 5 # read a (a is put in x10)
ecall
add x6, x0, x10 # store "a" in x6
srli x5, x10, 31 # store sign of "a" in x5
ecall
add x29, x0, x10 # store "b" in x29
srli x28, x10, 31 # store sign of "b" in x28
beq x6, x0, if_a_zero # branch if a is zero (???)
beq x29, x0, if_b_zero #branch if b is zero (???)
beq x5, x0, if_a_less_0 # branch if "a" < 0 then inverse it