Skip to content

Instantly share code, notes, and snippets.

View pyscriptor's full-sized avatar

pyscriptor

View GitHub Profile
@pyscriptor
pyscriptor / chromoscope.py
Last active May 25, 2023 03:12
Script for displaying X11 colors.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'chromoscope.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / !kryptographia.py
Last active May 20, 2023 09:01
Scripts for encryption and decryption of text.
n=int(input("To encode text enter 1. To decode text enter 2. "))
if n==1:
with open("encoder.py") as f:
exec(f.read())
elif n==2:
with open("decoder.py") as g:
exec(g.read())
@pyscriptor
pyscriptor / !steganographia.py
Last active May 20, 2023 09:04
Scripts for hiding and unhiding text in png image files.
n=int(input("To hide text enter 1. To unhide text enter 2. "))
if n==1:
with open("hider.py") as f:
exec(f.read())
elif n==2:
with open("unhider.py") as g:
exec(g.read())
@pyscriptor
pyscriptor / baseconverter.py
Created May 11, 2023 11:20
Script for converting numbers between bases.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'baseconverter.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / BMI.py
Created May 10, 2023 12:23
Script for calculating body mass index.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'BMI.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / dateconverter.py
Created May 5, 2023 09:52
Script for converting Gregorian dates to Julian dates and vice versa.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'numeroconverter.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / numeroconverter.py
Last active May 5, 2023 01:47
Script for converting arabic numbers to roman numerals and vice versa.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'numeroconverter.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / cryptex.py
Last active May 17, 2023 05:50
Script for creating password protected zip files.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'cryptex.ui'
#
# Created by: PyQt5 UI code generator 5.15.9
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
@pyscriptor
pyscriptor / numerolab.py
Last active May 10, 2024 05:06
Script for finding digital root of date
from tkinter import *
import tkinter.messagebox
from tkinter.ttk import Frame, Label, Entry, Button, Style
root = Tk()
root.geometry('300x300')
root.resizable(0,0)
root.title('Numerolab')
global expr
@pyscriptor
pyscriptor / divisibilityby7.py
Last active May 13, 2023 02:15
Implementation of divisibility rule of seven.
num=abs(int(input("Enter number: ")))
def rule(num):
stop=len(str(num))
while stop > 2:
num=abs(int(str(num)[:stop-2])*5-int(str(num)[-2:]))
stop=len(str(num))
if num%7==0:
return "Number is divisible by 7"
else:
return "Number is not divisible by 7"