Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 49ecbf5

Browse files
Fix typos
1 parent 68f65c6 commit 49ecbf5

File tree

3 files changed

+24
-19
lines changed

3 files changed

+24
-19
lines changed

‎README.md‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
### Inspiration 💡
66

7-
Some of the programs in this repository are inspired from the projects given in [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/) by Al Sweigart and some other are born out of redundant curiosity of a boring mind during lazy afternoons.
7+
Some of the programs in this repository are inspired from the projects given in [Automate the Boring Stuff with Python](https://automatetheboringstuff.com/) by [Al Sweigart](https://github.com/asweigart) and some other are born out of redundant curiosity of a boring mind during lazy afternoons.
88

99
This repository would contain python scripts, some of which might come of use occasionally. The purpose of creating this is to explore the various modules and implementations of the language through creating programs that are as much fun to use as they are to make.
1010

1111
## How to Use? 😀
1212

1313
- Clone the repository `$ git clone https://github.com/thepushkarp/JFF-Python-Scripts.git`
14-
- Create a virtual environment ([click here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) to learn abou Virtual Environment)
14+
- Create a virtual environment ([click here](https://packaging.python.org/guides/installing-using-pip-and-virtual-environments/) to learn about Virtual Environment)
1515

1616
```sh
1717
python3 -m venv env
@@ -47,7 +47,7 @@ pip install -r requirements.txt
4747

4848
### Code Destroyer
4949

50-
This program, inspired by [benbjohnson](https://github.com/benbjohnson)'s [tweet](https://twitter.com/benbjohnson/status/533848879423578112?lang=en) replaces semicolon ";" (U+003B) in files with a Greek Question Mark ";" (U+037E), that looks alike, but shows syntax errors (since it is a different character) leaving the programmer scratching their heads in confusion. ;-)
50+
Code Destroyer, inspired by a [tweet](https://twitter.com/benbjohnson/status/533848879423578112?lang=en) by Ben Johnson, replaces semicolon ";" (U+003B) in files with a Greek Question Mark ";" (U+037E), that looks alike, but shows syntax errors (since it is a different character) leaving the programmer scratching their heads in confusion. ;-)
5151

5252
#### Usage:
5353

@@ -63,7 +63,7 @@ Enter the full filename (like helloWorld.c) in the prompt that follows.
6363

6464
### Phone Number and Email Extractor
6565

66-
This program takes in the text from your clipboard and saves the Phone Numbers and Email Addresses found in it to .txt files. It searches for Indian Mobile Phone Numbers, Toll-Free Numbers, Telephone Numbers and Emails using Regular Expressions.
66+
Phone Number and Email Extractor takes in the text from your clipboard and saves the Phone Numbers and Email Addresses found in it to .txt files. It searches for Indian Mobile Phone Numbers, Toll-Free Numbers, Telephone Numbers and Emails using Regular Expressions.
6767

6868
#### Usage:
6969

‎codeDestroyer/codeDestroyer.py‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
1-
# codeDestroyer.py - Replaces semicolon(;) in files with Greek
2-
# Question Mark(;) that looks alike but shows syntax errors,
3-
# (since it is a different character) leaving the programmer
4-
# scratching their heads in confusion. ;-)
1+
"""
2+
codeDestroyer.py - Replaces semicolon(;) in files with Greek
3+
Question Mark(;) that looks alike but shows syntax errors,
4+
(since it is a different character) leaving the programmer
5+
scratching their heads in confusion. ;-)
56
6-
# Usage: Put the file in the same folder as this script and run
7-
# "python3 codeDestroyer.py". Enter the full filename
8-
# (like helloWorld.c) in the prompt that follows.
7+
Usage: Put the file in the same folder as this script and run
8+
"python3 codeDestroyer.py". Enter the full filename
9+
(like helloWorld.c) in the prompt that follows.
10+
"""
911

1012
import sys
1113
import os

‎phoneAndEmailExtractor/phoneAndEmail.py‎

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,22 @@
1-
# phoneAndEmail.py - Finds Indian phone numbers and email addresses
2-
# form the clipboard and saves them to a file.
1+
"""
2+
phoneAndEmail.py - Finds Indian phone numbers and email addresses
3+
from the clipboard and saves them to a file.
34
4-
# Usage: Copy the text from where phone numbers and emails are to be
5-
# extracted, to the clipboard and run "python3 phoneAndEmail.py".
6-
# The phone numbers and emails from the text would be saved in
7-
# phoneNumbers.txt and emails.txt files respectively.
5+
Usage: Copy the text from where phone numbers and emails are to be
6+
extracted, to the clipboard and run "python3 phoneAndEmail.py".
7+
The phone numbers and emails from the text would be saved in
8+
phoneNumbers.txt and emails.txt files respectively.
9+
"""
810

911
import re
1012
import pyperclip
1113

1214
# Mobile phone number regex
1315
# Pata nahi log ek universal mobile number format kyu nahi follow
1416
# karte ̄\_(ツ)_/ ̄ The number could be in the form of AAA-BBB-CCCC,
15-
# AAAAA-BBBBB, AAAA-BBBBBB or AA-BBB-CCCCC, AAAAAAAAAA or maybe
16-
# something else (╯°しろいしかく°)╯( ┻━┻. This regex follows the style given on
17+
# AAAAA-BBBBB, AAAA-BBBBBB or AA-BBB-CCCCC, AAAAAAAAAA or maybe
18+
# something else (╯°しろいしかく°)╯( ┻━┻. However, this regex checks for the
19+
# form of AAAA-BBBBBB and AAAAAAAAAA, as given on
1720
# https://en.wikipedia.org/wiki/Telephone_numbers_in_India#mobile_numbers
1821
mobileRegex = re.compile(r'''(
1922
(?: # prefixes

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /