---
title: 1 lab
---
erDiagram
workers {
integer id PK
varchar name
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from PIL import Image | |
| import pillow_heif | |
| os.chdir(input('Enter the full path to the folder with heic-images: ')) | |
| for path in os.listdir(): | |
| extension = path.split('.') | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| from PIL import Image | |
| os.chdir(input('Enter the full path to the folder with images: ')) | |
| for path in os.listdir(): | |
| extension = path.split('.') | |
| if extension[-1].lower() != 'png': |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "delay": 5, | |
| "path": "D:\\Backgrounds\\" | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| # list of the platforms: https://go.dev/doc/install/source#environment | |
| platforms=( | |
| "aix:ppc64" | |
| "android:386" | |
| "android:amd64" | |
| "android:arm" | |
| "android:arm64" | |
| "darwin:amd64" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "image" | |
| "image/color" | |
| "image/draw" | |
| "image/png" | |
| "golang.org/x/image/font" | |
| "golang.org/x/image/font/basicfont" | |
| "golang.org/x/image/math/fixed" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <iostream> | |
| #include <fstream> | |
| #include <cstring> | |
| const char *sourceFileName = "source_file.txt"; | |
| const char *encodedFileName = "encoded_file.txt"; | |
| const char *decodedFileName = "decoded_file.txt"; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE IF NOT EXISTS Product( | |
| Id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, | |
| ProductName VARCHAR NOT NULL, | |
| Manufacturer VARCHAR NOT NULL, | |
| ProductCount INT NOT NULL, | |
| Price MONEY NOT NULL | |
| ); | |
| CREATE TABLE IF NOT EXISTS Customer( | |
| Id BIGINT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "terminal.integrated.defaultProfile.windows": "Command Prompt", | |
| "editor.formatOnPaste": true, | |
| "editor.largeFileOptimizations": true, | |
| "editor.renderWhitespace": "none", | |
| "editor.autoClosingBrackets": "always", | |
| "editor.autoClosingOvertype": "always", | |
| "editor.autoClosingQuotes": "always", | |
| "editor.autoClosingDelete": "always", | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function scrollToElement(el: HTMLElement, onScrollEnd = () => { }) { | |
| const { top } = el.getBoundingClientRect() | |
| var step = 75 | |
| var iterationsCount = Math.abs(Math.floor(top / step)) | |
| if (top < 0) { | |
| step = -step | |
| iterationsCount += 1 | |
| } |
OlderNewer