Skip to content

Instantly share code, notes, and snippets.

View lgrachov's full-sized avatar

Lev Grachov lgrachov

View GitHub Profile
@lgrachov
lgrachov / index.html
Last active July 22, 2024 18:10
HTML boilerplate
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<!-- Add your code here -->
</body>
@lgrachov
lgrachov / arrayToSelect.js
Created July 22, 2024 17:52
Convert array to select
const selects = [
{
name: "Select 1",
options: ["Option 1", "Option 2"],
},
{
name: 'Select 2',
options: ['Option 1, 'Option 2']
}
];
@lgrachov
lgrachov / fib.py
Created July 20, 2024 19:29
Fibonacci GUI in Python
# fib.py
# Written by Lev Grachov
# Import Tkinter
# If you get module not installed, then run this command:
# For Linux: `sudo apt-get install python3-tk`
# For Windows: `pip install tk`
# For macOS: `brew install python-tk`
from tkinter.simpledialog import askinteger
from tkinter import *
@lgrachov
lgrachov / README.markdown
Created July 8, 2024 21:30
Toggle screenshot shadow on macOS

Toggle screenshot shadow

This is a simple Bash script I made to toggle the screenshot shadow on Mac computers.

Requirements

Bash 2 or later macOS Mojave 10.14.0 or later

Usage

To toggle, just run the script. If it says access denied, run this command:

# You must be in the folder where you downloaded the .sh file
$ chmod +x toggleScreenshotShadow.sh
@lgrachov
lgrachov / Welcome! (.txt
Created September 5, 2023 11:19
Welcome!
@Leo Grachov@
Hello! I'm focused on *JavaScript*
development and love coding when
it's fun.
@lgrachov
lgrachov / CardView.markdown
Last active January 7, 2023 15:42
CardView