Skip to content

Instantly share code, notes, and snippets.

View seesmof's full-sized avatar
✝️
ІСУС ХРИСТОС Є ГОСПОДОМ БОГОМ ВСЕМОГУТНІМ

Oleg Onyshchenko seesmof

✝️
ІСУС ХРИСТОС Є ГОСПОДОМ БОГОМ ВСЕМОГУТНІМ
  • Zaporizhzhia, Ukraine
  • 03:49 (UTC +02:00)
View GitHub Profile
@seesmof
seesmof / main.json
Created November 7, 2024 14:48
Obsidian Border Gruvbox Theme Settings
{
"Components@@tab-autohide": true,
"Components@@status-bar-autohide": true,
"Components@@Ribbon-autohide": true,
"Components@@nav-header-autohide": true,
"Components@@tab-title-bar-autohide": true,
"Components@@vault-profile-autohide": true,
"Components@@CTA-BTN-enable": false,
"Components@@file-names-untrim": true,
"Components@@folder-font-bold": true,
@seesmof
seesmof / main.md
Last active October 30, 2024 16:54
30-10-2024 Як зробити бічні панелі "липкими" у TailwindCSS

Аби побачити що бічна панель прокручується разом із основною секцією треба щоби основна мала висоту більше екрану:

<div class="flex">
  <aside class="h-32 w-32 bg-teal-500"></aside>
  <main class="h-[133vh] flex-1 bg-yellow-100"></main>
</div>

Для бічної панелі задаємо фіксовану висоту обов'язково. Якщо є якийсь контент, можна поставити h-max. Всі інші класи просто аби було видно панелькі дві.

@seesmof
seesmof / main.css
Created April 21, 2024 19:16
BibleGateway UX Modifications
div.nav-content > nav {
display: none;
}
.text {
font-family: 'Noto Serif', serif;
font-size: 1.4em;
line-height: 1.4em;
}
@seesmof
seesmof / simple.c
Last active March 1, 2024 17:34
KP Lab1 Files
#include <stdio.h>
#include <stdlib.h>
#include <windows.h>
#include <synchapi.h>
int main(int argc, char **argv)
{
int sleep_time;
int input;
int failure;
if (argc != 3)
@seesmof
seesmof / get_relative_file_path.py
Created December 29, 2023 15:21
How to get a relative file path in Python using `os` module
# Import the path module from os
from os import path
# Define a path to the current directory using the path module
current_directory = path.dirname(path.abspath(__file__))
# Define the name of the file you want to access
file_name = "your_file_name.csv"
# Create a file path variable, which is a string by either combining the current directory and the file name
@seesmof
seesmof / main.py
Last active December 6, 2023 20:52
Explaining how to use `gpt4free`
# Importing the module
import g4f
# Our input prompt, can be taken as input
input_data = "Hello World!"
# Forming a message object in the following required format:
"""
"role": "user",
"content": ...our message goes here
import React, { useEffect, useRef, useState } from "react";
import { RxCross1, RxPencil1 } from "react-icons/rx";
import { BiCake } from "react-icons/bi";
import { AiOutlineMail, AiOutlineHeart, AiFillHeart } from "react-icons/ai";
// TODO: Add a box form for adding new users. Add different image for each user
const Classes = () => {
class User {
constructor(name, age, email) {