Skip to content

Instantly share code, notes, and snippets.

View pyscriptor's full-sized avatar

pyscriptor

View GitHub Profile
from flask import Flask, render_template_string, request
from sympy import kronecker_symbol, nextprime
from sympy.ntheory.primetest import is_square
import ast
import operator
# --- Start of code from cheby.py ---
# map AST operators to Python functions
_binops = {
@pyscriptor
pyscriptor / funup.py
Created August 7, 2023 09:28
Jokes for programmers
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'funup.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 / text2speech.py
Last active August 7, 2023 01:22
Voice generator
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'text2speech.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 / pdf2mp4.py
Created June 16, 2023 06:10
Script for making MP4 videos of documents in PDF format.
from PIL import Image
from PIL import GifImagePlugin
import os
import moviepy.editor as mp
from wand.image import Image as wi
name=input('PDF: ')
image_path_list=[]
@pyscriptor
pyscriptor / hangman.ipynb
Last active June 14, 2023 07:16
hangman.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pyscriptor
pyscriptor / maiachess.ipynb
Last active June 11, 2023 15:52
maiachess.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pyscriptor
pyscriptor / pgn2mp4.py
Last active March 24, 2025 03:42
Script for making MP4 videos of chess games in PGN format.
from PIL import Image
from PIL import ImageFont
from PIL import ImageDraw
from PIL import GifImagePlugin
from chess_gif.gif_maker import GIFMaker
import os
import moviepy.editor as mp
import chess.pgn
path=input('PATH: ')
@pyscriptor
pyscriptor / voxodigitron.ipynb
Last active June 1, 2023 06:02
Voice-controlled digitron.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pyscriptor
pyscriptor / voxochess.ipynb
Last active June 8, 2023 08:45
voxochess.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@pyscriptor
pyscriptor / voxochess.py
Last active June 1, 2023 02:44
Voice-controlled chess board.
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'voxochess.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.