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

[pull] master from avinashkranjan:master #7

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
pull merged 62 commits into Uncodedtech:master from avinashkranjan:master
Apr 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
62 commits
Select commit Hold shift + click to select a range
9bb2ea5
Merge branch 'master' of https://github.com/avinashkranjan/Amazing-Py...
Amit366 Apr 4, 2021
1c1c9c7
initial build
jhamadhav Apr 10, 2021
e235455
Merge branch 'master' of https://github.com/avinashkranjan/Amazing-Py...
Amit366 Apr 13, 2021
db61165
title, description, and image link scraper added
jhamadhav Apr 13, 2021
a0be21a
Expense tracker
Amit366 Apr 13, 2021
d50a216
db gets created on it's own
jhamadhav Apr 13, 2021
41c401f
"First reads from db then request" method added
jhamadhav Apr 13, 2021
69f677d
error with empty db removed
jhamadhav Apr 13, 2021
4bac05b
readme updated
jhamadhav Apr 13, 2021
b943908
expiry time added to data
jhamadhav Apr 13, 2021
85ba02f
minor changes
jhamadhav Apr 13, 2021
85e16ee
title, description, and image link scraper added
jhamadhav Apr 13, 2021
25dedc2
Merge branch 'link-preview' of https://github.com/jhamadhav/Amazing-P...
jhamadhav Apr 13, 2021
b74a49c
Add files via upload
RohiniRG Apr 14, 2021
e627c57
if data is not found. output = "Not available"
jhamadhav Apr 15, 2021
30c1a00
extended filepath
RohiniRG Apr 15, 2021
16c5ce2
extended filepath
RohiniRG Apr 15, 2021
1b0faeb
Update
Amit366 Apr 15, 2021
29db36d
Update
Amit366 Apr 15, 2021
94fcd3d
Create todolist.py
Avishake007 Apr 15, 2021
74728fc
Create README.md
Avishake007 Apr 15, 2021
8593274
update
Amit366 Apr 16, 2021
e067af2
update
Amit366 Apr 16, 2021
dd44224
update
Amit366 Apr 16, 2021
29e816f
files removed from .gitignore
jhamadhav Apr 16, 2021
6608c6c
Update todolist.py
Avishake007 Apr 16, 2021
cffed41
Update todolist.py
Avishake007 Apr 16, 2021
2f4d556
Added piglatin scripts
archanagandhi Apr 16, 2021
c1177ca
Added Piglatin scripts
archanagandhi Apr 16, 2021
a51daa4
Added Piglatin scripts
archanagandhi Apr 16, 2021
deeb542
Merge pull request #1 from avinashkranjan/master
ShubhamGupta577 Apr 16, 2021
22d7d18
Create ORB_Algorithm.py
ShubhamGupta577 Apr 16, 2021
430ef17
Create Readme.md
ShubhamGupta577 Apr 16, 2021
4e6cc80
Create README.md
archanagandhi Apr 17, 2021
0cd0d8d
Update todolist.py
Avishake007 Apr 17, 2021
731f33a
modified
archanagandhi Apr 17, 2021
501f400
Merge https://github.com/archanagandhi/Amazing-Python-Scripts
archanagandhi Apr 17, 2021
0f5ac9f
Update README.md
archanagandhi Apr 17, 2021
0e9d0c9
Update
Amit366 Apr 18, 2021
8a3bf48
Added code for Waterfall,Funnel,Ternary and Contour Plots
dsrao711 Apr 18, 2021
20064b9
Update ORB_Algorithm.py
ShubhamGupta577 Apr 18, 2021
8967cf3
Update Readme.md
ShubhamGupta577 Apr 18, 2021
6d2ea41
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
15b0288
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
eee39e9
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
b19c55d
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
bb66992
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
ae98e91
Update Piglatin_Translator/README.md
archanagandhi Apr 19, 2021
c83f4f2
Added Dark Theme to all four plots and updated the screenshots in the...
dsrao711 Apr 19, 2021
b197404
Requested changes have made.
ShubhamGupta577 Apr 19, 2021
c23bed1
Update ORB Algorithm/ORB_Algorithm.py
ShubhamGupta577 Apr 19, 2021
f20ac3b
Update ORB_Algorithm.py
ShubhamGupta577 Apr 19, 2021
e529328
print function improved
jhamadhav Apr 20, 2021
b159e6e
Merge pull request #926 from dsrao711/issue-917
avinashkranjan Apr 23, 2021
2d98c5d
Merge pull request #921 from archanagandhi/master
avinashkranjan Apr 23, 2021
10478aa
Merge pull request #918 from ShubhamGupta577/ORB-Algorithm
avinashkranjan Apr 23, 2021
5d5af7b
Merge pull request #907 from Avishake007/todolist
avinashkranjan Apr 23, 2021
55b4307
Merge pull request #903 from RohiniRG/RohiniRG-twitterb
avinashkranjan Apr 23, 2021
c6c1911
Merge pull request #896 from jhamadhav/link-preview
avinashkranjan Apr 23, 2021
6c326e1
Merge pull request #892 from Amit366/Amit
avinashkranjan Apr 23, 2021
d6175ef
[ImgBot] Optimize images
ImgBotApp Apr 23, 2021
056b6b8
Merge pull request #954 from avinashkranjan/imgbot
avinashkranjan Apr 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -678,4 +678,4 @@ geoip/
test.py
Test/
reddit_tokens.json
scriptcopy.py
scriptcopy.py
48 changes: 48 additions & 0 deletions Data-Visualization/Contour Plots/contour_plot.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
import plotly.graph_objects as go
import numpy as np

# X , Y , Z cordinates
x_cord = np.arange(0, 50, 2)
y_cord = np.arange(0, 50, 2)
z_function = np.sin((x_cord + y_cord)/2)

fig = go.Figure(data=go.Contour(x=x_cord,
y=y_cord,
z=z_function,
colorscale='darkmint',
contours=dict(
showlabels=False, # show labels on contours
labelfont=dict( # label font properties
size=12,
color='white',
)
),
colorbar=dict(
thickness=25,
thicknessmode='pixels',
len=1.0,
lenmode='fraction',
outlinewidth=0,
title='Title',
titleside='right',
titlefont=dict(
size=14,
family='Arial, sans-serif')

),

)
)

fig.update_layout(
title='Contour Plot',
xaxis_title='X Axis Title',
yaxis_title='Y Axis Title',
autosize=False,
width=900,
height=600,
margin=dict(l=50, r=50, b=100, t=100, pad=4)
)

fig.layout.template = 'plotly_dark'
fig.show()
Binary file added Data-Visualization/Contour Plots/contourplot.png
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
Binary file added Data-Visualization/FunnelChart/FunnelChart.png
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
33 changes: 33 additions & 0 deletions Data-Visualization/FunnelChart/FunnelCharts.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
from plotly import graph_objects as go

fig = go.Figure()

fig.add_trace(go.Funnel(
name = 'India',
y = ["McDonalds", "Dominoz", "PizzaHut", "Subway" , "MadOverDonuts" , "Keventers"],
x = [150, 140, 40, 50, 40 , 20],
textposition = "inside",
textinfo = "value+percent initial"))

fig.add_trace(go.Funnel(
name = 'Bangladesh',
orientation = "h",
y = ["McDonalds", "Dominoz", "PizzaHut", "Subway"],
x = [50, 60, 40, 30],
textposition = "inside",
textinfo = "value+percent previous"))

fig.add_trace(go.Funnel(
name = 'SriLanka',
orientation = "h",
y = ["McDonalds", "Dominoz", "PizzaHut", "Subway" ,"MadOverDonuts" ],
x = [90, 70, 50, 30, 10],
textposition = "outside",
textinfo = "value+percent total"))

fig.update_layout(
title = "Funnel Chart for Food Sales in Asian Countries",
showlegend = True
)
fig.layout.template = 'plotly_dark'
fig.show()
13 changes: 13 additions & 0 deletions Data-Visualization/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,16 @@ pip install plotly
# Author
[Elita Menezes](https://github.com/ELITA04/)

## 8. Contour Plot
[![contourplot.png](https://i.postimg.cc/DyCHL12x/contourplot.png)](https://postimg.cc/1fqvZnVF)

## 9. Ternary Plot
[![ternaryplot.png](https://i.postimg.cc/Xv5zRh9P/ternaryplot.png)](https://postimg.cc/8F14WZKd)
## 10. Waterfall Chart
[![Water-Fall.png](https://i.postimg.cc/KvspRFNV/Water-Fall.png)](https://postimg.cc/TpgJ4zBq)
## 11. Funnel Chart
[![Funnel-Chart.png](https://i.postimg.cc/503n1Mys/Funnel-Chart.png)](https://postimg.cc/YGv1fZ1F)


# Author
[Divya Rao](https://github.com/dsrao711/)
30 changes: 30 additions & 0 deletions Data-Visualization/TernaryPlots/TernaryPlot.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
import plotly.express as px
import plotly.graph_objects as go

df = px.data.election()

fig = go.Figure(go.Scatterternary({
'mode': 'markers',
'a': df['Joly'],
'b': df['Coderre'],
'c': df['Bergeron'],
'marker': {
'color': 'green',
'size': 14,
} ,

}))
fig.update_layout({
'title': 'Ternary Scatter Plot',
'ternary':
{
'sum':1,
'aaxis':{'title': 'Joly', 'min': 0.01, 'linewidth':2, 'ticks':'outside' },
'baxis':{'title': 'Coderre', 'min': 0.01, 'linewidth':2, 'ticks':'outside' },
'caxis':{'title': 'Bergeron', 'min': 0.01, 'linewidth':2, 'ticks':'outside' }
},
'showlegend': False
})

fig.layout.template = 'plotly_dark'
fig.show()
Binary file added Data-Visualization/TernaryPlots/ternaryplot.png
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
Binary file added Data-Visualization/WaterfallChart/WaterFall.png
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
24 changes: 24 additions & 0 deletions Data-Visualization/WaterfallChart/Waterfall.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
import plotly.express as px
import plotly.graph_objects as go

fig = go.Figure(go.Waterfall(
name = "20",
orientation = "v",
measure = ["relative", "relative", "relative", "relative", "relative", "total"],
x = ["Exp1", "Exp2", "Exp3", "Exp4", "Exp5", "Exp6"],
textposition = "outside",
text = ["100", "50", "130", "200", "40", "Total"],
y = [100, +50, 130, 200, 40, 0 ],
connector = {"line":{"color":"rgb(63, 63, 63)"}},
increasing = {"marker":{"color":"green"}},
totals = {"marker":{"color":"blue"}}
))

fig.update_layout(
title = "Waterfall Chart",
showlegend = True ,
xaxis_title='X Axis Title',
yaxis_title='Y Axis Title',
)
fig.layout.template = 'plotly_dark'
fig.show()
37 changes: 37 additions & 0 deletions Expense Tracker/Readme.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# <b>Expense Tracker</b>

[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com)

## Expense Tracker Functionalities : 🚀

- This is used to store the daily expenses.
- The daily expenses are stored in a format of date, items, and amount spent.
- This also has a database which shows already stored expenses.

## Expense Tracker Instructions: 👨🏻‍💻

### Step 1:

Open Termnial 💻

### Step 2:

Locate to the directory where python file is located 📂

### Step 3:

Run the command: python script.py/python3 script.py 🧐

### Step 4:

Sit back and Relax. Let the Script do the Job. ☕

## Requirements

- tkinter
- tkcalendar
- sqlite3

## Author

Amit Kumar Mishra
111 changes: 111 additions & 0 deletions Expense Tracker/script.py
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
from tkinter import ttk
from tkinter import messagebox
from tkinter import *
from tkinter.ttk import Notebook
from tkcalendar import DateEntry
import sqlite3


def Addexpense():
x = Edate.get()
y = Item.get()
z = Eexpense.get()
data = [x,y,z]

with db:
c = db.cursor()
c.execute("INSERT INTO expense(Dates, Items, Expense) VALUES(?,?,?)",(x,y,z))



def show():
x = Edate.get()
y = Item.get()
z = Eexpense.get()
data = [x,y,z]
connt=sqlite3.connect('./Expense Tracker/expense.db')
cursor=connt.cursor()
cursor.execute("SELECT * FROM expense")
for row in cursor.fetchall():
TVExpense.insert('','end',values=row)

def delete():
with db:
dee = Delete.get()
c = db.cursor()
c.execute("DELETE FROM expense WHERE Items = ?", (dee,))
db.commit()
show()

db = sqlite3.connect('./Expense Tracker/expense.db')
c = db.cursor()

c.execute("""CREATE TABLE IF NOT EXISTS expense(
Dates varchar,
Items varchar,
Expense integer
)""")
db.commit()

gui = Tk()
gui.title('Expense Tracker')
gui.geometry('700x600')


Tab = Notebook(gui)
F1 = Frame(Tab, width=500, height=500)

Tab.add(F1, text="Expense")


Tab.pack(fill=BOTH, expand=1)

ldate = ttk.Label(F1, text="Date", font=(None,18))
ldate.grid(row=0, column=0, padx=5, pady=5, sticky='w')

Edate = DateEntry(F1, width=19, background = 'blue', foreground='white', font=(None,18))
Edate.grid(row=0, column=1, padx=5,pady=5, sticky='w')

ltitle = ttk.Label(F1, text="Items",font=(None,18))
ltitle.grid(row=1, column=0, padx=5, pady=5, sticky='w')

Item = StringVar()

Etitle = ttk.Entry(F1, textvariable=Item,font=(None,18))
Etitle.grid(row=1, column=1, padx=5, pady=5, sticky='w')

lexpense = ttk.Label(F1, text="Expense",font=(None,18))
lexpense.grid(row=2, column=0, padx=5, pady=5, sticky='w')

Expense = StringVar()

Eexpense = ttk.Entry(F1, textvariable=Expense,font=(None,18))
Eexpense.grid(row=2, column=1, padx=5, pady=5, sticky='w')

btn = ttk.Button(F1,text='Add', command=Addexpense)
btn.grid(row=3, column=1, padx=5, pady=5, sticky='w', ipadx=10, ipady=10)


Ldel = ttk.Label(F1, text='Delete',font=(None,18))
Ldel.grid(row=4, column=0, padx=5, pady=5, sticky='w')
Delete = StringVar()

dell = ttk.Entry(F1, textvariable=Delete,font=(None,18))
dell.grid(row=4, column=1, padx=5, pady=5, sticky='w')

btn2 = ttk.Button(F1,text='Delete', command=delete)
btn2.grid(row=5, column=1, padx=5, pady=5, sticky='w', ipadx=10, ipady=10)

btn1 = ttk.Button(F1,text='Show', command=show)
btn1.grid(row=3, column=2, padx=5, pady=5, sticky='w', ipadx=10, ipady=10)

TVList = ['Date','Item','Expense']
TVExpense = ttk.Treeview(F1, column=TVList, show='headings', height=5)

for i in TVList:
TVExpense.heading(i, text=i.title())

TVExpense.grid(row=6, column=0, padx=5, pady=5, sticky='w', columnspan=3)

gui.mainloop()
db.close()
Binary file modified Fast Algorithm (Corner Detection)/Output.png
View file Open in desktop
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
[フレーム]
33 changes: 33 additions & 0 deletions Link-Preview/README.md
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# Link Preview

A script to provide the user with a preview of the link entered.

- When entered a link, the script will provide with title, description, and link of the website that the URL points to.
- The script will do so by fetching the Html file for the link and analyzing the data from there.
- The data will be saved in a `JSON` file named `db.json` for further reference
- Every entry will have a time limit after which it will be updated (*Data expires after 7 days*)

## Setup instructions

Download the required packages from the following command in you terminal.(Make sure you're in the same project directory)

```
pip3 install -r requirements.txt
```

## Running the script:
After installing all the requirements,run this command in your terminal.

```
python3 linkPreview.py
```

## Output

The script will provide you with Title, Description, Image Link and URL.

![demo gif](https://i.imgur.com/uoIG2io.gif)

## Author(s)
Hi, I'm [Madhav Jha](https://github.com/jhamadhav) author of this script 🙋‍♂️

Loading

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