Skip to content

Instantly share code, notes, and snippets.

View fastfingertips's full-sized avatar
🧶
knitting..

fastfingertips

🧶
knitting..
  • Istanbul
  • 00:30 (UTC +03:00)
View GitHub Profile
@fastfingertips
fastfingertips / get_desktop_path.bat
Created March 16, 2024 04:32
This batch script retrieves the path of the desktop folder on a Windows system using PowerShell and then echoes (displays) the path.
@echo off
SETLOCAL
FOR /F "usebackq" %%d IN (`PowerShell -NoProfile -Command "Write-Host([Environment]::GetFolderPath('Desktop'))"`) DO (
SET "DESKTOP_FOLDER_PATH=%%d"
)
@ECHO Desktop Path: %DESKTOP_FOLDER_PATH%
@fastfingertips
fastfingertips / responsive_font_size.html
Created March 14, 2024 10:02
This HTML file demonstrates the use of responsive font size.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Responsive Font Size Example</title>
<style>
:root {
font-size: calc(1rem + 0.25vw);
}
@fastfingertips
fastfingertips / detect_capslock.js
Created March 13, 2024 15:04
Detect Caps Lock with JavaScript "w3c.github.io/uievents/#event-modifier-initializers"
document.querySelector('input[type=password]').addEventListener('keyup', function (keyboardEvent) {
const capsLockOn = keyboardEvent.getModifierState('CapsLock');
if (capsLockOn) {
console.log('Caps Lock is ON');
} else {
console.log('Caps Lock is OFF');
}
});
@fastfingertips
fastfingertips / secret_notes_app.py
Created March 13, 2024 09:59
This application allows users to save and encrypt their secret notes using a master key. It provides functionalities to both save notes by encrypting them and decrypt previously encrypted notes using the same master key.
from tkinter import PhotoImage, messagebox, Canvas, Button, Entry, Label, Text, END, Tk
import base64
def encode(key, clear):
"""
Encrypts the given text using Vigenere cipher with the provided key.
Args:
key (str): The encryption key.
clear (str): The text to be encrypted.
@fastfingertips
fastfingertips / BMICalculator.py
Created March 12, 2024 14:13
This application is a BMI (Body Mass Index) calculator. It calculates BMI based on the weight and height inputs provided by the user, and then categorizes the BMI value into different weight categories such as underweight, normal weight, overweight, and various levels of obesity.
from tkinter import Tk, Label, Entry, Button
def calculate_bmi():
"""
Calculate the BMI based on the provided weight and height inputs.
"""
weight = get_weight()
height = get_height()
# Check if both weight and height are provided
https://ouo.io/4496I tt0111161 The Shawshank Redemption 1994 1080p TRSub
https://ouo.io/WOmGR7T tt0068646 The Godfather Part I 1972 1080p TRSub v2
import random
import turtle
# instances
screen = turtle.Screen()
count_down_turtle = turtle.Turtle()
score_turtle = turtle.Turtle()
# colors
screen.bgcolor("black")
{
"ali2.ru": "ali2.ru",
"web.telegram.org": "web.telegram.org",
"samo.is-a.dev": "samo.is-a.dev",
"www.bartrove.com": "www.bartrove.com",
"msn.com": "msn.com",
"ask.com": "ask.com",
"hdvidzpro.com": "hdvidzpro.com",
"musicbrainz.org": "musicbrainz.org",
"hdvidzpro.me": "hdvidzpro.me",
from github import Github
from github import Auth
import github.InputFileContent
import json
def update_gist_file(gist_id, file_name, content):
if isinstance(content, dict):
content = json.dumps(content)
content = github.InputFileContent(content)
gist = g.get_gist(gist_id)
@fastfingertips
fastfingertips / parse_film_id.js
Last active February 9, 2024 20:30
Letterboxd bookmarklets
// https://letterboxd.com/film/<film-slug>
// https://letterboxd.com/<user-name>/film/<film-slug>
javascript:(function(){var e=document.querySelector('a[data-film-id]');if(e){var t=e.getAttribute("data-film-id");alert("Film ID: "+t);}else{alert("Film ID not found.");}})();