This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import tkinter as tk | |
from tkinter import * | |
import math | |
from functools import reduce | |
def reverse(s): | |
str = "" | |
for i in s: | |
str = i + str | |
return str |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from logging import exception | |
import os | |
import shutil | |
import time | |
path = "C:/Users/dhrav/Downloads/Organiser" | |
files = os.listdir(path) | |
listOfDirectories = { | |
'Picture_Folder': ['jpeg', 'jpg', 'gif', 'png'], |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyttsx3 # pip install pyttsx3 | |
import speech_recognition as sr # pip install speechRecognition | |
import datetime | |
import wikipedia # pip install wikipedia | |
import webbrowser | |
import os | |
import smtplib | |
engine = pyttsx3.init('sapi5') | |
voices = engine.getProperty('voices') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame #pip install pygame | |
import time | |
from sudokugen.generator import generate, Difficulty #pip install sudokugen | |
from inputimeout import inputimeout, TimeoutOccurred #pip install inputimout | |
import os | |
new_puzzle = generate(difficulty=Difficulty.MEDIUM) | |
def chunk(l, n): | |
n = max(1, n) | |
return (l[i:i+n] for i in range(0, len(l), n)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Multiplayer and single player | |
# Tic Tac Toe game with GUI | |
# using tkinter | |
# importing all necessary libraries | |
import random | |
import tkinter | |
from tkinter import * | |
from functools import partial |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
``` | |
added: | |
Minor GUI Changes | |
Numeroscope finder | |
missing numbers finder | |
To be added : | |
Number of occurences counter | |
Test to find out results | |
way to display the numeroscope in a better way | |
Beautification of GUI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from pkg_resources import working_set | |
from random_word import RandomWords | |
from win10toast import ToastNotifier | |
import time | |
from PyDictionary import PyDictionary | |
r = RandomWords() | |
x = 0 | |
word = r.get_random_word(hasDictionaryDef="true") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Sequence | |
import random | |
def owofy(text: Sequence, *, wanky: bool = False): | |
"""translates your given text to owo! | |
""" | |
def last_replace(s, old, new): | |
li = s.rsplit(old, 1) | |
return new.join(li) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Sequence | |
def strong_british_accent( | |
text: Sequence | |
): | |
"""Converts your given string/array to a kind-of strong british accent (if you're nonsensical about it...) | |
""" | |
def brit(brsentence): | |
brsentence = brsentence.replace("it was ", "it was quite ") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio, functools, itertools, math, random | |
import spotipy, youtube_dl, discord, lyricsgenius | |
from spotipy.oauth2 import SpotifyClientCredentials | |
from async_timeout import timeout | |
from discord.ext import commands | |
from otherfiles.utils import voteembed, Votelink |
OlderNewer