This file contains hidden or 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
all: webserver | |
webserver: webserver.o tcp.o request.o | |
gcc webserver.o tcp.o request.o -o webserver -g -lpthread | |
webserver.o: webserver.c | |
g cc -Wall -g -c webserver.c -o webserver.o | |
tcp.o: tcp.c tcp.h | |
gcc -Wall -g -c tcp.c -o tcp.o |
This file contains hidden or 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 pywhatkit as kt | |
import getpass as gp | |
from datetime import datetime,timedelta | |
print("Let's Automate Python") | |
p_num = gp.getpass(prompt="Phone Number:",stream=None) | |
msg = "Hello Coders!! \nIt's Jayant" |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 pywhatkit as kt | |
import matplotlib.pyplot as plt | |
filename = input("Enter the filename : ") | |
target_image = filename.split('.')[0] + ".txt" | |
img = plt.imread(filename) | |
plt.imshow(img) | |
plt.show() |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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 | |
import PyPDF2 | |
book = open('poem.pdf', 'rb') | |
pdf_reader = PyPDF2.PdfFileReader(book) | |
num_pages = pdf_reader.numPages | |
play = pyttsx3.init() | |
print("Play the audio book") |
This file contains hidden or 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 tkinter import * | |
from time import strftime | |
def clock(): | |
current_time = strftime('%H:%M:%S %p') | |
label.config(text=current_time) | |
label.after(1000, clock) | |
This file contains hidden or 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
# pip install pypng | |
import pyqrcode | |
data = "Hi!! I am Jayant Goel." | |
img = pyqrcode.create(data) | |
img.png("Jayant Goel.png", scale=10) |
This file contains hidden or 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 zipfile as z | |
filename = input() | |
print("Starting Unzip of Folder.") | |
files = z.ZipFile(filename) | |
files.extractall() | |
print("Unzip Files!!!") |
This file contains hidden or 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 socket as sk | |
try: | |
hostname = sk.gethostname() | |
ip_address = sk.gethostbyname(hostname) | |
print("HostName : "+hostname) | |
print("IP Address : "+ip_address) | |
URL = input("Enter a URL:") |
OlderNewer