Skip to content
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

fix minor mistakes/errors in code #399

Merged
merged 1 commit into from
Jul 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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 2]. Technical Subjects/4]. Computer Network (CN)/Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
- **LAN (Local Area Network):**
- It is used for a small geographical location like office, hospital, school, etc.

- **HAN (House Area Network):**
- **HAN (Home Area Network):**
- It is actually a LAN that is used within a house and used to connect homely devices like personal computers, phones, printers, etc.

- **CAN (Campus Area Network):**
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#Author : Akash Khandelwal

#Importing Important Library
#Importing Important Libraries
from pygame import mixer
import wolframalpha
import time
Expand Down Expand Up @@ -49,7 +49,7 @@ def news():
except Exception as e:
speak("No Internet connection")

#Function for fecthing weather report
#Function for fetching weather report
def Weather_Report(cityname):
api_address = 'http://api.openweathermap.org/data/2.5/weather?appid=1ee020e53372311cc5131630c27b7427&q='

Expand Down Expand Up @@ -104,7 +104,7 @@ def wishMe():
time.sleep(2)


#Function for Taking command From User
#Function for Taking commands From User
def takeCommand():
# It takes Microphone input from user
r = sr.Recognizer()
Expand All @@ -126,7 +126,7 @@ def takeCommand():
return "None"
return query

#It's Validate to User
#It Validates the User
def check_password():
global i
speak("Enter Your Password:")
Expand Down Expand Up @@ -184,7 +184,7 @@ def check_password():
time.sleep(5)

elif 'open stack overflow' in query:
speak("PLease Wait sir Opeaning Stack Overflow")
speak("Please wait sir, opening Stack Overflow")
webbrowser.open("stackoverflow.com")
time.sleep(10)

Expand All @@ -204,7 +204,7 @@ def check_password():
os.startfile(codepath)

elif 'goodbye' in query or 'you can go now' in query:
speak("ok sir goodbye it's nice conservation with you")
speak("goodbye sir it's nice conversation with you")
exit()
elif 'open instagram' in query:
speak("Ok sir, Opening Instagram")
Expand All @@ -229,7 +229,7 @@ def check_password():


elif 'who is akash khandelwal' in query:
speak("Akash khandelwal is a Computer Science Graduate Apart from that he well qualified Programmer and developer")
speak("Akash Khandelwal is a Computer Science Graduate Apart from that he is a well-qualified Programmer and developer")

elif 'i am coming' in query:
speak("Where are you going")
Expand Down Expand Up @@ -379,7 +379,7 @@ def check_password():
speak("tell me only time")

elif 'write a note' in query:
speak("waht should i write,sir")
speak("what should i write, sir")
note = takeCommand()
file = open("jarvis.txt",'w')
speak("sir,Should i include date and time")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,30 +56,22 @@ function saveIssue(e) {
}

// close status
function setStatusClosed (id) {
var issues = JSON.parse(localStorage.getItem('issues'));

for(var i = 0; i < issues.length; i++) {
if (issues[i].id == id) {
issues[i].status = "Closed";
}
}

localStorage.setItem('issues', JSON.stringify(issues));
fetchIssues();
function setStatusClosed(id) {
var issues = JSON.parse(localStorage.getItem('issues'));
let issue = issues.find(issue => issue.id == id);
if (issue) {
issue.status = "Closed";
}
localStorage.setItem('issues', JSON.stringify(issues));
fetchIssues();
}

// delete issue
function deleteIssue (id) {
var issues = JSON.parse(localStorage.getItem('issues'));

for(var i = 0; i < issues.length; i++) {
if (issues[i].id == id) {
issues.splice(i, 1);
}
}
localStorage.setItem('issues', JSON.stringify(issues));
fetchIssues();
function deleteIssue(id) {
var issues = JSON.parse(localStorage.getItem('issues'));
issues = issues.filter(issue => issue.id != id);
localStorage.setItem('issues', JSON.stringify(issues));
fetchIssues();
}

//clear all issues
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
clone this repo

```
gti clone https://github.com/Sukhendra523/google-clone.git
git clone https://github.com/Sukhendra523/google-clone.git
```

- Step-2:
Expand Down
Loading