Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
87be683
Create Keylogger Using python
D3VILx0 Sep 30, 2022
d9d5b93
Merge pull request #2 from D3VILx0/patch-1
Ghost-Ashu Sep 30, 2022
630c083
two sum problem in c
Harshit101 Sep 30, 2022
38e01ab
Create Voice Assistant using python
D3VILx0 Oct 1, 2022
5b57a1d
Merge pull request #4 from D3VILx0/patch-2
Ghost-Ashu Oct 1, 2022
27f7f24
Merge pull request #3 from Harshit101/main
Ghost-Ashu Oct 1, 2022
d8fd8cf
Create simple harmless virus
D3VILx0 Oct 1, 2022
dbfdfa9
Merge pull request #5 from D3VILx0/patch-3
Ghost-Ashu Oct 1, 2022
efd2a1c
Create Chat Bot in Python
D3VILx0 Oct 1, 2022
2b78f49
Merge pull request #6 from D3VILx0/patch-4
Ghost-Ashu Oct 1, 2022
bb80382
Create Python program to implement Rock Paper Scissor game
LinuxGenic Oct 1, 2022
290c1a4
Merge pull request #7 from LinuxGenic/patch-1
Ghost-Ashu Oct 1, 2022
03a232f
Create Python | ToDo GUI Application using Tkinter
LinuxGenic Oct 1, 2022
20669cc
Merge pull request #8 from LinuxGenic/patch-2
Ghost-Ashu Oct 1, 2022
7f51fde
Merge pull request #1 from D3VILx0/main
Ghost-Ashu Oct 1, 2022
35b5ddf
Create Text detection using Python
LinuxGenic Oct 1, 2022
3c0ee85
Merge pull request #9 from LinuxGenic/patch-3
Ghost-Ashu Oct 1, 2022
5192b12
Create Generating Password and OTP in Java
Ghost-Ashu Oct 1, 2022
8652b59
Delete Generating Password and OTP in Java
Ghost-Ashu Oct 1, 2022
768f46d
Create Generating Password and OTP in Java
LinuxGenic Oct 1, 2022
1baabe5
Create CONTRIBUTING.md
Ghost-Ashu Oct 1, 2022
ad7fb2e
Merge pull request #10 from LinuxGenic/patch-4
Ghost-Ashu Oct 1, 2022
2b3712a
Create LICENSE.md
Ghost-Ashu Oct 1, 2022
86909d7
Merge pull request #11 from Ghost-Ashu/add-license-1
Ghost-Ashu Oct 1, 2022
876b655
Create Tic-Tac-Toe game in C++
Ghostx0 Oct 1, 2022
7f96050
Create Snake Game in Java
Ghostx0 Oct 1, 2022
4a7e019
Create Naive algorithm for Pattern Searching in Java
Ghostx0 Oct 1, 2022
68b4a0c
Merge pull request #12 from Ghostx0/patch-1
Ghost-Ashu Oct 1, 2022
b1a3222
Merge pull request #13 from Ghostx0/patch-2
Ghost-Ashu Oct 1, 2022
c233e50
Merge pull request #14 from Ghostx0/patch-3
Ghost-Ashu Oct 1, 2022
5844daa
Create Manacher’s Algorithm in Java
Ghostx0 Oct 1, 2022
afd28e2
Merge pull request #15 from Ghostx0/patch-4
Ghost-Ashu Oct 1, 2022
ffa7a23
Create Python | Random Password Generator using Tkinter
Sh4d0wx0 Oct 1, 2022
51419fa
Create Python to Pseudocode converter
Sh4d0wx0 Oct 1, 2022
139a89f
Merge pull request #16 from Sh4d0wx0/patch-1
Ghost-Ashu Oct 1, 2022
40749d4
Merge pull request #17 from Sh4d0wx0/patch-2
Ghost-Ashu Oct 1, 2022
91af10c
Create LICENSE
Ghost-Ashu Oct 1, 2022
3d7c70e
Merge pull request #18 from Ghost-Ashu/add-license-2
Ghost-Ashu Oct 1, 2022
df0fac8
Update README.md
Ghost-Ashu Oct 1, 2022
41f3e0f
Create Open Applications using Python
Sh4d0wx0 Oct 1, 2022
52a2f9a
Create Build a Virtual Assistant Using Python
Sh4d0wx0 Oct 1, 2022
e89a5df
Merge pull request #20 from Sh4d0wx0/patch-3
Ghost-Ashu Oct 1, 2022
772498d
Merge pull request #21 from Sh4d0wx0/patch-4
Ghost-Ashu Oct 1, 2022
538b592
Create Tap-the-Geek | Simple HTML CSS and JavaScript Game
Sh4d0wx0 Oct 1, 2022
f980b3c
Merge pull request #22 from Sh4d0wx0/patch-5
Ghost-Ashu Oct 1, 2022
5b4d0bc
Add files via upload
sonumahajan Oct 1, 2022
53f8089
Merge pull request #1 from sonumahajan/sonumahajan-patch-1
sonumahajan Oct 1, 2022
3eddb82
Circle Queue program
sonumahajan Oct 1, 2022
ad5d0d1
Stone paper sessior game using python
sonumahajan Oct 2, 2022
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
35 changes: 35 additions & 0 deletions 2sum.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
#include<bits/stdc++.h>
using namespace std;
vector<int> solve(int n, vector<int> nums, int target){
//CODE HERE
unordered_map<int,int> mpp;

for(int i=0;i<n;i++)
{
int rem = abs(target - nums[i]);

if(mpp.find(rem) != mpp.end())
return {mpp[rem] , i};
else
mpp[nums[i]] = i;
}

return {-1,-1};
}
int main(){
int n;
vector<int> nums;
int target;
cin >> n;
for (int i = 0; i < n; i++){
int temp;
cin >> temp;
nums.push_back(temp);
}
cin >> target;
vector<int> out = solve(n, nums, target);
for (int i: out){
cout << i << ' ';
}
return 0;
}
60 changes: 60 additions & 0 deletions Build a Virtual Assistant Using Python
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
def Take_query():

# calling the Hello function for
# making it more interactive
Hello()

# This loop is infinite as it will take
# our queries continuously until and unless
# we do not say bye to exit or terminate
# the program
while(True):

# taking the query and making it into
# lower case so that most of the times
# query matches and we get the perfect
# output
query = takeCommand().lower()
if "open geeksforgeeks" in query:
speak("Opening GeeksforGeeks ")

# in the open method we just to give the link
# of the website and it automatically open
# it in your default browser
webbrowser.open("www.geeksforgeeks.com")
continue

elif "open google" in query:
speak("Opening Google ")
webbrowser.open("www.google.com")
continue

elif "which day it is" in query:
tellDay()
continue

elif "tell me the time" in query:
tellTime()
continue

# this will exit and terminate the program
elif "bye" in query:
speak("Bye. Check Out GFG for more exciting things")
exit()

elif "from wikipedia" in query:

# if any one wants to have a information
# from wikipedia
speak("Checking the wikipedia ")
query = query.replace("wikipedia", "")

# it will give the summary of 4 lines from
# wikipedia we can increase and decrease
# it also.
result = wikipedia.summary(query, sentences=4)
speak("According to wikipedia")
speak(result)

elif "tell me your name" in query:
speak("I am Jarvis. Your desktop Assistant")
52 changes: 52 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
### Hacktoberfest is an annual event that occurs in October. It is created by DigitalOcean. Thousands of developers participate in this event across the globe.

This article explains what Hacktoberfest is, how you can participate, and more!

What is Hacktoberfest?
As mentioned in the introduction, Hacktoberfest occurs every year during October. It encourages developers to contribute to open source projects and practice programming by participating in solving problems across projects.

Who Can Participate in Hacktoberfest?
All developers of different levels and backgrounds can participate in Hacktoberfest. Whether you're a beginner or an expert, or a junior or a senior, you can participate in Hacktoberfest.

There are two ways to participate in Hacktoberfest: as a contributor or as a maintainer.

A contributor is someone that helps open source projects resolve issues they have opened. Whereas a maintainer manages an open source project and presents issues that they need help with.

New in Hacktoberfest 2022
Hacktoberfest 2022 encourages low-code and non-code contributions, which can be done through blog posts, translating content, graphic design, and more. The contributions must be tracked through GitHub Pull Requests (PRs) as other types of contributions.

How to Participate in Hacktoberfest 2022?
Registration to Hacktoberfest
Registration to Hacktoberfest opens on September 26th. When you register, you'll be able to choose whether you're participating as a contributor or as a maintainer.

Participating as a Contributor
As a contributor, during October you must have four PRs that either:

Are merged into a participating repository;
Or have the hacktoberfest-accepted label;
Or have an approving review, but not closed or draft.
A participating repository is a repository that has the hacktoberfest topic. Participation can be done through GitHub or GitLab.

Participating as a Maintainer
To participate as a maintainer, you must facilitate participation for contributors. The first step is to either:

Add the hacktoberfest topic to your repository;
Or add the hacktoberfest-accepted label into your repository to be used on pull requests.
Then, you must merge four PRs into your repository during October. If you decide to use the second option mentioned in the first step, make sure to add the hacktoberfest-accepted label into these PRs.

Rules
For PRs to be counted into your participation in Hacktoberfest, they must be merged between October 1st and October 31st.
Contributions must be made to public repositories.
If a PR has a label that contains the word spam in it, the PR will not be counted. Also, if a participant has 2 or more spam PRs, they'll be disqualified from Hacktoberfest.
If a PR has a label that contains the word invalid, it will not be counted. The exception for this is if the PR also has the label hacktoberfest-accepted.
Unwritten Rules
This section covers rules that aren't necessarily covered by Hacktoberfest, but, from personal experience, are highly recommended to follow for both contributors and maintainers.

For Contributors
Do not spam any maintainer: Hacktoberfest is a busy season for maintainers, so they'll highly likely take time to take a look at your PR. Spamming maintainers does not speed up the process and only ruins the experience for maintainers.
Make valuable contributions: During Hacktoberfest, many repositories are created with the purpose of participating in Hacktoberfest but without providing any value. For example, repositories where you just contribute by adding your name to a list. A lot of these repositories are caught by Hacktoberfest eventually, are disqualified, and contributions from them are labeled as invalid. There's no point in wasting time on this.
Give back to your favorite projects: There are many projects out there that you have benefitted from throughout the year. Take this time to give back to these projects by helping them with the issues they have.
Follow rules set by each project: Projects should have contributing guidelines that explain how you can contribute to them. Make sure you read those first before you contribute.
For Maintainers
Create contributing guidelines: Whether you have a small or big project, contributing guidelines make it easier for your contributors to know how they can contribute to your project.
Welcome all developers: Many beginner developers participate in Hacktoberfest. They may lack experience when it comes to contributing, but they're eager to do it. Make sure to be welcoming to all developers of different experiences. If possible, try creating issues of different levels of expertise.
56 changes: 56 additions & 0 deletions CircleQueue.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
public class CircleQueue {
static int arr[] = new int[5];
static int front = -1, rear = 0;
static void enqueue(int val) {
if (front == -1 && rear == 0) {
arr[rear] = val;
front = 0;
rear = 0;
} else if (rear == arr.length - 1 && front == 0
|| front != 0 && rear == (front - 1) % (arr.length - 1)) {
System.out.println("overflow");
} else if (front != 0 && rear == arr.length - 1) {
rear = (rear) % (arr.length - 1);
arr[rear] = val;
} else {
rear = rear + 1;
arr[rear] = val;
}
}
static void dequeue() {
if (front == -1 && rear == 0) {
System.out.println("lodu lalit");
} else {
front++;
}
}
static void print() {
if (front <= rear) {
for (int i = front; i <= rear; i++) {
System.out.println(arr[i] + " ");
}
} else {
for (int i = front; i <= arr.length - 1; i++) {
System.out.println(arr[i] + " ");
}
for (int i = 0; i <= rear; i++) {
System.out.println(arr[i] + " ");
}
}
}
public static void main(String[] args) {
// dequeue();
enqueue(45);
enqueue(67);
enqueue(78);
enqueue(89);
enqueue(789);
print();
System.out.println("");
dequeue();
print();
enqueue(1000);
System.out.println("");
print();
}
}
53 changes: 53 additions & 0 deletions Generating Password and OTP in Java
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// Java code to explain how to generate random
// password

// Here we are using random() method of util
// class in Java
import java.util.*;

public class NewClass
{
public static void main(String[] args)
{
// Length of your password as I have choose
// here to be 8
int length = 10;
System.out.println(geek_Password(length));
}

// This our Password generating method
// We have use static here, so that we not to
// make any object for it
static char[] geek_Password(int len)
{
System.out.println("Generating password using random() : ");
System.out.print("Your new password is : ");

// A strong password has Cap_chars, Lower_chars,
// numeric value and symbols. So we are using all of
// them to generate our password
String Capital_chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
String Small_chars = "abcdefghijklmnopqrstuvwxyz";
String numbers = "0123456789";
String symbols = "!@#$%^&*_=+-/.?<>)";


String values = Capital_chars + Small_chars +
numbers + symbols;

// Using random method
Random rndm_method = new Random();

char[] password = new char[len];

for (int i = 0; i < len; i++)
{
// Use of charAt() method : to get character value
// Use of nextInt() as it is scanning the value as int
password[i] =
values.charAt(rndm_method.nextInt(values.length()));

}
return password;
}
}
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2022 Ashutosh

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading