Skip to content

Instantly share code, notes, and snippets.

View Tynik's full-sized avatar
🎯
Focusing

Mykhailo Aliinyk Tynik

🎯
Focusing
View GitHub Profile
@Tynik
Tynik / task.md
Last active October 4, 2021 19:59
Implement TreeView component

Description

Implement TreeView component with React library.

The component should render options list in the tree view. The tree view is given by the data structure mentioned below.

Requirements

  1. The component should be named as TreeView.
  2. The component should have next properties: data and indent. The data property is used to accept the data and the indent property for accepting the number of spaces before name of item in its category.
@Tynik
Tynik / code-review.md
Created January 27, 2021 10:12 — forked from ArthurArslanaliev/code-review.md
code review checklist

Code review checklist

  1. Checkout target branch to your local environment.

  2. Try to run the project from that revision. Ideally, you should start an application from scratch to reset any cached state on your local machine (for example - cached Celery modules). In the case of the Docker-based local environment, I would recommend to:

    • stop all containers: docker stop $(docker ps -a -q)
    • remove all containers: docker rm $(docker ps -a -q)
    • remove all images: docker rmi $(docker images -q)
@Tynik
Tynik / settings.py
Created August 22, 2016 05:56
Django DB queries logging
LOGGING = {
'version': 1,
'disable_existing_loggers': False,
'handlers': {
'db_queries': {
'class': 'logging.handlers.TimedRotatingFileHandler',
'level': 'DEBUG',
'filename': os.path.join(LOG_DIR, 'db_queries.log'),
'when': 'midnight',
'formatter': 'verbose',