Skip to content

Instantly share code, notes, and snippets.

View shorodilov's full-sized avatar
🇺🇦

Serhii Horodilov shorodilov

🇺🇦
View GitHub Profile
@shorodilov
shorodilov / django-intro.mmd
Created March 4, 2024 15:40
Introduction to Django mindmap
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@shorodilov
shorodilov / multipliers.py
Created December 19, 2023 14:05
The multipliers of the number's digits
"""
This script will ask the user for an integer number and print out its
multipliers
"""
# collect data
number = int(input("Enter a number: "))
# cast the user's input to a string and print back the multipliers
for power_of_10, multiplier in enumerate(str(number)[::-1]):
@shorodilov
shorodilov / assignments_tm.csv
Last active November 16, 2023 02:55
Crowdin translation memories for the Python course assignments
en uk
Instructions Інструкції
Overview Опис
Additional info Додаткова інформація
Objective Завдання
Instructions Інструкції
Overview Опис
Additional info Додаткова інформація
`DataSet` `DataSet`
`DataEntry` `DataEntry`
@shorodilov
shorodilov / bartender.py
Created October 5, 2023 12:00
Code refactoring demo
"""
Bartender: conditions workflow demo (never-nester)
"""
MENU = ["juice", "beer"] # available drinks list
# The function below serves the user's order.
# It takes a drink name as its argument, and checks user's age if needed.
@shorodilov
shorodilov / movie_database.md
Created September 15, 2023 09:26
Movie DB - Assignment

Movie database assignment

Зробити для того, щоб:

  • ініціалізувати БД
  • створити необхідні таблиці
  • заповнити таблиці даними

Допускається використання синтетичних даних.

@shorodilov
shorodilov / happiness-meter-spec.md
Created July 13, 2023 08:10
Happiness Meter Specification

Happiness Meter

The Happiness Application is a Django RestFul application designed to monitor the happiness levels of teams and team members. It allows users to join teams or leave team they are already members. Also, it provides a functionality to report happiness level once per day for each user. These datas are used to gather the statistics on an average happiness level for all teams, per team or per a single user.

Functional requirements

[
{
"model": "auth.user",
"pk": 1,
"fields": {
"password": "pbkdf2_sha256$390000$8FaAgZMidw8EYNIW7xGVSf$Be1pQJb61YVfL9KshcOQSs5y3datSUSiS8iIOeWKi7M=",
"last_login": "2023-08-03T21:58:06.877Z",
"is_superuser": true,
"username": "admin",
"first_name": "",
@shorodilov
shorodilov / tasks.csv
Created January 25, 2023 21:01
dummy task data
We can make this file beautiful and searchable if this error is corrected: It looks like row 5 should actually have 8 columns, instead of 3. in line 4.
uid,title,description,created_at,updated_at,completed,reporter,assignee
0d7eb078-c648-47aa-a205-f3090b5482e5,shake magazine ahead share maintain,Feeling strategy ball a news information the customer. Message against something media. Your population inside economic serve.,2023-01-17T08:27:14T,2023-01-17T08:27:14T,true,5,5
ba6583f6-15f7-4495-a683-4df03eabff5f,create air life business room,Reach carry above medical. Yard play without goal traditional fight after. Court large response official. Against look area lay. Attack home moment.,2023-01-19T03:51:55T,2023-01-19T03:51:55T,false,4,5
75853f2a-400b-4861-bdbc-47278026487a,theory poor bag get best,Land section card set skin ok. No weight score describe during. Right friend need different mission. North collection quickly summer. Let region cell. Seek which nearly generation.,2023-01-16T18:14:31T,2023-01-19T03:23:16T,false,5,3
93eb633c-a291-4b96-89bb-d3164e3b826a,beyond decide poor realize quality,Hundred too land person expert. Exactly year many should informati
@shorodilov
shorodilov / pg_local.rst
Last active November 21, 2023 19:13
Deploy local PostgreSQL server from binaries

Local PostgreSQL server deployment from binaries

This document describes a process of a local PostgreSQL server deployment for development needs.

Definitions