forked from avinashkranjan/Amazing-Python-Scripts
-
Notifications
You must be signed in to change notification settings - Fork 0
[pull] master from avinashkranjan:master #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
81 commits
Select commit
Hold shift + click to select a range
6e6e6d1
Added starter script for scraping n problems according to varying dif...
AshuKV 068d694
Added script for scraping n leetcode problems according to varying di...
AshuKV d86aeb4
main.py
nidhivanjare e07dbb9
Merge remote-tracking branch 'upstream/master' into Instagram-Follow-...
nidhivanjare d39d3a3
Go to followers
nidhivanjare cf26abf
Delete settings.json
nidhivanjare 996fa25
Malaria Detection
ayush-raj8 99f4dba
Update Malaria/main.py
ayush-raj8 2a372b9
Delete Malaria/Dataset directory
ayush-raj8 ddf2505
Add files via upload
ayush-raj8 6d5a692
Update script.py
ayush-raj8 eb7c066
Update script.py
ayush-raj8 a6c66a0
Update script.py
ayush-raj8 e48548b
Update script.py
ayush-raj8 8ab1ce8
Delete script.py
ayush-raj8 e7a3b88
Add files via upload
ayush-raj8 d31e5eb
Update requirements.txt
ayush-raj8 3249833
Taking Path input from user
ayush-raj8 beedbf2
Updated file for leetcode scrapping
AshuKV c27551a
UI implementation complete
Ayushjain2205 68450bc
Add files via upload
codebuzzer01 10716b9
Name change to model_training.py
ayush-raj8 be570b9
Scraping and GUI integration complete
Ayushjain2205 07cbe5d
requirements file added
Ayushjain2205 b0ab3fa
Readme file added
Ayushjain2205 947285f
take input for chrome driver path
Ayushjain2205 68f0a2a
Update Malaria/main.py
ayush-raj8 92b6e6a
Delete Malaria/Model development directory
ayush-raj8 6870abf
Update main.py
ayush-raj8 63adf6a
Update main.py
ayush-raj8 faca863
Update model_training.py
ayush-raj8 8187071
Update README.md
codebuzzer01 2a8043b
Update README.md
codebuzzer01 9b5ab84
Merge pull request #1 from codebuzzer01/codebuzzer01-updateREADME-md
codebuzzer01 8ad421a
Merge remote-tracking branch 'upstream/master' into Instagram-Follow-...
nidhivanjare f5ef0a5
done
nidhivanjare fd8d784
Update README.md
nidhivanjare 829843a
final changes
nidhivanjare dd8e641
.
nidhivanjare 02a6c58
.
nidhivanjare 753f6f8
docstring
nidhivanjare b6fb576
Update Cryptography/README.md
codebuzzer01 39a95f6
Update Cryptography/README.md
codebuzzer01 cb9fdf9
Update Cryptography/README.md
codebuzzer01 d724b00
Update Cryptography/README.md
codebuzzer01 a200644
Update Cryptography/README.md
codebuzzer01 2dc821d
Update Cryptography/README.md
codebuzzer01 2d7209f
Update Cryptography/README.md
codebuzzer01 c551e26
Update Cryptography/README.md
codebuzzer01 faacc68
Update Cryptography/README.md
codebuzzer01 af3f006
Update Cryptography/README.md
codebuzzer01 04bacd7
Update README.md
codebuzzer01 84b18fc
Update crypto.py
codebuzzer01 351fe5c
Update crypto.py
codebuzzer01 c7416de
Update crypto.py
codebuzzer01 87f0e22
Update crypto.py
codebuzzer01 2db7648
Update crypto.py
codebuzzer01 cf23c26
Update Cryptography/README.md
codebuzzer01 d0ea3f9
Update Cryptography/README.md
codebuzzer01 f9e6a6e
Update README.md
codebuzzer01 1fcf06b
Update Instagram Follow- NotFollow/README.md
nidhivanjare 9d63a59
Delete settings.json
nidhivanjare 7f56653
final changes
nidhivanjare d0acc28
Merge remote-tracking branch 'upstream/master' into Instagram-Follow-...
nidhivanjare 569c0e7
Update model_training.py
ayush-raj8 30193e6
Update LeetCode-Scrapper/ques.py
AshuKV d50e8ca
Update README.md
AshuKV b78e98d
Update ques.py
AshuKV c614a71
Update ques.py
AshuKV 337ff5d
Update Instagram Follow- NotFollow/README.md
nidhivanjare 9b207ff
Delete settings.json
nidhivanjare 5d7c1ec
Merge remote-tracking branch 'upstream/master' into Instagram-Follow-...
nidhivanjare 1880799
commit on 'master'
codebuzzer01 fb45382
commit on 'master'
codebuzzer01 12d7ec3
Merge pull request #948 from nidhivanjare/Instagram-Follow--NotFollow
avinashkranjan e91c8cd
Merge pull request #943 from Ayushjain2205/NSE-stocks-GUI
avinashkranjan 389b0a2
Merge pull request #941 from codebuzzer01/master
avinashkranjan 1b51db4
Merge pull request #939 from AshuKV/LeetcodeScrapper/AshuKV
avinashkranjan b1f219d
Merge pull request #927 from ayush-raj8/master
avinashkranjan e53f7cf
[ImgBot] Optimize images
ImgBotApp fc04ec2
Merge pull request #971 from avinashkranjan/imgbot
avinashkranjan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
26 changes: 26 additions & 0 deletions
Cryptography/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# CRYPTOGRAPHY | ||
|
||
|
||
## DESCRIPTION | ||
The objective of this project is to encode and decode messages using a common key. In this project, users have to enter the message to encode or decode. Users have to select the mode to choose the encoding and decoding process. The same key must be used to process the encoding and decoding for the same message. | ||
|
||
|
||
## PROJECT REQUISITES | ||
To build this project we will use the basic concept of python, Tkinter, and base64 library. | ||
|
||
- Tkinter is a standard GUI python library. | ||
- base64 module provides a function to encode the binary data to ASCII characters and decode that ASCII characters back to binary data. | ||
- Tkinter is a standard GUI python library base64 module that provides a function to encode the binary data to ASCII characters and decode that ASCII characters back to binary data. | ||
|
||
|
||
## PROJECT STRUCTURE | ||
These are the step to build message encode – decode python project- | ||
|
||
- Import module | ||
- Create display window | ||
- Define function | ||
- Define labels and buttons | ||
|
||
|
||
## AUTHOR NAME | ||
[ANUSHKA CHITRANSHI](https://github.com/codebuzzer01) |
116 changes: 116 additions & 0 deletions
Cryptography/crypto.py
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
from tkinter import Tk | ||
from tkinter import Label | ||
from tkinter import BOTTOM | ||
from tkinter import StringVar | ||
from tkinter import Entry | ||
from tkinter import Button | ||
import base64 | ||
|
||
# initialize window | ||
root = Tk() | ||
root.geometry('500x300') | ||
root.resizable(0, 0) | ||
|
||
# title of the window | ||
root.title("Cryptography World") | ||
|
||
# label | ||
Label(root, text='ENCODE DECODE', font='arial 20 bold').pack() | ||
Label(root, text='By Anushka Chitranshi', font='arial 20 bold').pack(side=BOTTOM) | ||
|
||
# define variables | ||
Text = StringVar() | ||
private_key = StringVar() | ||
mode = StringVar() | ||
Result = StringVar() | ||
|
||
|
||
# function to encode | ||
def Encode(key, message): | ||
"""Encode the message.""" | ||
enc = [] | ||
for i in enumerate(message): | ||
key_c = key[i % len(key)] | ||
enc.append(chr((ord(message[i]) + ord(key_c)) % 256)) | ||
return base64.urlsafe_b64encode("".join(enc).encode()).decode() | ||
|
||
|
||
# function to decode | ||
def Decode(key, message): | ||
"""Decode the message.""" | ||
dec = [] | ||
message = base64.urlsafe_b64decode(message).decode() | ||
for i in enumerate(message): | ||
key_c = key[i % len(key)] | ||
dec.append(chr((256 + ord(message[i]) - ord(key_c)) % 256)) | ||
return "".join(dec) | ||
|
||
|
||
# function to set mode | ||
def Mode(): | ||
"""Take mode of cryptography.""" | ||
if mode.get() == 'e': | ||
Result.set(Encode(private_key.get(), Text.get())) | ||
elif mode.get() == 'd': | ||
Result.set(Decode(private_key.get(), Text.get())) | ||
else: | ||
Result.set('Invalid Mode') | ||
|
||
|
||
# Function to exit window | ||
def Exit(): | ||
"""Exit the window.""" | ||
root.destroy() | ||
|
||
|
||
# Function to reset | ||
def Reset(): | ||
"""Reset the screen.""" | ||
Text.set("") | ||
private_key.set("") | ||
mode.set("") | ||
Result.set("") | ||
|
||
|
||
Label( | ||
root, font='arial 12 bold', text='MESSAGE' | ||
).place(x=60, y=60) | ||
Entry( | ||
root, font='arial 10', textvariable=Text, bg='ghost white' | ||
).place(x=290, y=60) | ||
|
||
|
||
# key | ||
Label(root, font='arial 12 bold', text='KEY').place(x=60, y=90) | ||
Entry( | ||
root, font='arial 10', textvariable=private_key , bg='ghost white' | ||
).place(x=290, y=90) | ||
|
||
# mode | ||
Label( | ||
root, font='arial 12 bold', text='MODE(e-encode, d-decode)' | ||
).place(x=60, y=120) | ||
Entry( | ||
root, font='arial 10', textvariable=mode , bg='ghost white' | ||
).place(x=290, y=120) | ||
|
||
# result | ||
Entry( | ||
root, font='arial 10 bold', textvariable=Result, bg='ghost white' | ||
).place(x=290, y=150) | ||
|
||
# result button | ||
Button( | ||
root, font='arial 10 bold', text='RESULT', padx=2, bg='LightGray', command=Mode | ||
).place(x=60, y=150) | ||
|
||
# reset button | ||
Button( | ||
root, font='anson', text='RESET', width=6, command=Reset, bg='Green', padx=2 | ||
).place(x=80, y=190) | ||
|
||
# exit button | ||
Button( | ||
root, font='anson', text='EXIT', width=6, command=Exit, bg='Red', padx=2, pady=2 | ||
).place(x=180, y=190) | ||
root.mainloop() |
26 changes: 26 additions & 0 deletions
Gender-Age Detection/README.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# GENDER-AGE DETECTION | ||
|
||
## DESCRIPTION | ||
|
||
The objective of this project is to identify the gender and approximate age of a person given in an image automatically. | ||
|
||
## PROJECT REQUISITES | ||
|
||
To build this project we will use | ||
|
||
- Deep Learning to accurately identify the gender and age of a person from a single image of a face. | ||
- We will use this [dataset](https://www.kaggle.com/ttungl/adience-benchmark-gender-and-age-classification) | ||
- The predicted gender may be one of ‘Male’ and ‘Female’, and the predicted age may be one of the following 8 ranges- (0 – 2), (4 – 6), (8 – 12), (15 – 20), (25 – 32), (38 – 43), (48 – 53), (60 – 100). | ||
|
||
## PROJECT STRUCTURE | ||
|
||
These are the step to build Gender-Age Detection python project- | ||
|
||
- Detect faces | ||
- Classify into Male/Female | ||
- Classify into one of the 8 age ranges | ||
- Put the results on the image and display it | ||
|
||
## AUTHOR NAME | ||
|
||
[ANUSHKA CHITRANSHI](https://github.com/codebuzzer01) |
175 changes: 175 additions & 0 deletions
Gender-Age Detection/age_deploy.prototxt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
name: "CaffeNet" | ||
input: "data" | ||
input_dim: 1 | ||
input_dim: 3 | ||
input_dim: 227 | ||
input_dim: 227 | ||
layers { | ||
name: "conv1" | ||
type: CONVOLUTION | ||
bottom: "data" | ||
top: "conv1" | ||
convolution_param { | ||
num_output: 96 | ||
kernel_size: 7 | ||
stride: 4 | ||
} | ||
} | ||
layers { | ||
name: "relu1" | ||
type: RELU | ||
bottom: "conv1" | ||
top: "conv1" | ||
} | ||
layers { | ||
name: "pool1" | ||
type: POOLING | ||
bottom: "conv1" | ||
top: "pool1" | ||
pooling_param { | ||
pool: MAX | ||
kernel_size: 3 | ||
stride: 2 | ||
} | ||
} | ||
layers { | ||
name: "norm1" | ||
type: LRN | ||
bottom: "pool1" | ||
top: "norm1" | ||
lrn_param { | ||
local_size: 5 | ||
alpha: 0.0001 | ||
beta: 0.75 | ||
} | ||
} | ||
layers { | ||
name: "conv2" | ||
type: CONVOLUTION | ||
bottom: "norm1" | ||
top: "conv2" | ||
convolution_param { | ||
num_output: 256 | ||
pad: 2 | ||
kernel_size: 5 | ||
} | ||
} | ||
layers { | ||
name: "relu2" | ||
type: RELU | ||
bottom: "conv2" | ||
top: "conv2" | ||
} | ||
layers { | ||
name: "pool2" | ||
type: POOLING | ||
bottom: "conv2" | ||
top: "pool2" | ||
pooling_param { | ||
pool: MAX | ||
kernel_size: 3 | ||
stride: 2 | ||
} | ||
} | ||
layers { | ||
name: "norm2" | ||
type: LRN | ||
bottom: "pool2" | ||
top: "norm2" | ||
lrn_param { | ||
local_size: 5 | ||
alpha: 0.0001 | ||
beta: 0.75 | ||
} | ||
} | ||
layers { | ||
name: "conv3" | ||
type: CONVOLUTION | ||
bottom: "norm2" | ||
top: "conv3" | ||
convolution_param { | ||
num_output: 384 | ||
pad: 1 | ||
kernel_size: 3 | ||
} | ||
} | ||
layers{ | ||
name: "relu3" | ||
type: RELU | ||
bottom: "conv3" | ||
top: "conv3" | ||
} | ||
layers { | ||
name: "pool5" | ||
type: POOLING | ||
bottom: "conv3" | ||
top: "pool5" | ||
pooling_param { | ||
pool: MAX | ||
kernel_size: 3 | ||
stride: 2 | ||
} | ||
} | ||
layers { | ||
name: "fc6" | ||
type: INNER_PRODUCT | ||
bottom: "pool5" | ||
top: "fc6" | ||
inner_product_param { | ||
num_output: 512 | ||
} | ||
} | ||
layers { | ||
name: "relu6" | ||
type: RELU | ||
bottom: "fc6" | ||
top: "fc6" | ||
} | ||
layers { | ||
name: "drop6" | ||
type: DROPOUT | ||
bottom: "fc6" | ||
top: "fc6" | ||
dropout_param { | ||
dropout_ratio: 0.5 | ||
} | ||
} | ||
layers { | ||
name: "fc7" | ||
type: INNER_PRODUCT | ||
bottom: "fc6" | ||
top: "fc7" | ||
inner_product_param { | ||
num_output: 512 | ||
} | ||
} | ||
layers { | ||
name: "relu7" | ||
type: RELU | ||
bottom: "fc7" | ||
top: "fc7" | ||
} | ||
layers { | ||
name: "drop7" | ||
type: DROPOUT | ||
bottom: "fc7" | ||
top: "fc7" | ||
dropout_param { | ||
dropout_ratio: 0.5 | ||
} | ||
} | ||
layers { | ||
name: "fc8" | ||
type: INNER_PRODUCT | ||
bottom: "fc7" | ||
top: "fc8" | ||
inner_product_param { | ||
num_output: 8 | ||
} | ||
} | ||
layers { | ||
name: "prob" | ||
type: SOFTMAX | ||
bottom: "fc8" | ||
top: "prob" | ||
} |
Binary file added
Gender-Age Detection/age_net.caffemodel
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.