Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
8edb60e
Merge pull request #27 from Shubhamjain287/master
Shubhamjain287 Oct 3, 2023
1891edd
leep year / arraylist
deepanshu1201 Oct 3, 2023
922b549
Merge pull request #28 from deepanshu1201/main
Shubhamjain287 Oct 4, 2023
e88a185
Add files via upload
Sarthak88-tech Oct 5, 2023
a019a8e
Create CustomStack.java
PMorey22 Oct 5, 2023
2a8f890
Merge pull request #29 from Sarthak88-tech/main
Shubhamjain287 Oct 5, 2023
904c386
Merge pull request #30 from PMorey22/patch-1
Shubhamjain287 Oct 5, 2023
1efa401
added snake-water-gun game
ankitjhagithub21 Oct 5, 2023
e4f9f2e
added my name in userData
ankitjhagithub21 Oct 5, 2023
f69cd87
Merge pull request #31 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 6, 2023
27d57ce
Create HeapSort.java
tyagi-data-wizard Oct 6, 2023
94e3afc
Update HeapSort.java
tyagi-data-wizard Oct 6, 2023
b470d00
Added Pixel Quest Game in JavaScript
akash-rajak Oct 7, 2023
8ddd19c
added recipe-finder-app
ankitjhagithub21 Oct 7, 2023
3668786
Update README.md
ankitjhagithub21 Oct 7, 2023
16c194d
Merge pull request #32 from tyagi-data-wizard/patch-1
Shubhamjain287 Oct 7, 2023
49e792c
Merge pull request #34 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 7, 2023
8b25264
Merge pull request #33 from akash-rajak/pixequesbranch
Shubhamjain287 Oct 7, 2023
0d2e2a1
added guess-number game
ankitjhagithub21 Oct 7, 2023
5aa35fa
Merge branch 'new_branch' of https://github.com/ankitjhagithub21/Web-…
ankitjhagithub21 Oct 7, 2023
05d8d26
Added Hill Climb Race Game in JS
akash-rajak Oct 7, 2023
87a0a7c
Merge pull request #36 from akash-rajak/hillclimbbranch
Shubhamjain287 Oct 8, 2023
f14b897
Merge pull request #35 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 8, 2023
4af2b77
added note-taking-app
ankitjhagithub21 Oct 9, 2023
6ff34f1
Create readme.md
ankitjhagithub21 Oct 9, 2023
ae0a3ef
Merge pull request #37 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 9, 2023
8d19757
Add a new project
Rusty-98 Oct 9, 2023
ce95c75
Create Read Me
Rusty-98 Oct 9, 2023
7e5ddc0
added quiz-app
ankitjhagithub21 Oct 9, 2023
4585c02
Update readme.md
ankitjhagithub21 Oct 9, 2023
c3d2eb7
Merge pull request #38 from Rusty-98/main
Shubhamjain287 Oct 10, 2023
3531b7e
Merge pull request #39 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 10, 2023
0ba6ad5
Added airline reservation system source code
NikhilTaneja98 Oct 10, 2023
ab5ac52
Merge pull request #40 from NikhilTaneja98/hack-nikhil
Shubhamjain287 Oct 11, 2023
1b5ff89
added language-translator app
ankitjhagithub21 Oct 12, 2023
6b30063
Update readme.md
ankitjhagithub21 Oct 12, 2023
c4e9f1c
Merge pull request #43 from ankitjhagithub21/new_branch
Shubhamjain287 Oct 12, 2023
a11b40c
Add files via upload
nk101sharma1 Oct 13, 2023
25e95df
Add files via upload
nk101sharma1 Oct 13, 2023
42e2d6a
added resume-builder app
nk101sharma1 Oct 13, 2023
a934417
Merge pull request #45 from nk101sharma1/main
Shubhamjain287 Oct 14, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
56 changes: 56 additions & 0 deletions CustomStack.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import java.security.PublicKey;

public class CustomStack {

protected int[] data;
private static final int DEFAULT_SIZE = 10;

int ptr = -1;

public CustomStack() {
this.data = new int[DEFAULT_SIZE];
}

public CustomStack(int size) {
this.data = new int[size];
}

public boolean push(int item) {

if (isFull()) {
System.out.println("Stack is Full");
return false;
}

ptr++;
data[ptr] = item;
return true;
}

public int pop() throws StackException {
if (isEmpty()) {
throw new StackException("Cannot pop an empty stack!!! ");
}
// int removed=data[ptr];
// ptr--;
// return removed;

return data[ptr--];
}

public int peek() throws StackException {
if (isEmpty()) {
throw new StackException("Cannot peek an empty stack!!! ");
}
return data[ptr];
}

public boolean isFull() {
return ptr == data.length - 1;
}

public boolean isEmpty() {
return ptr == -1;
}

}
57 changes: 57 additions & 0 deletions DSA/HeapSort.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
/**
* HeapSort: a sort algorithm based on max heap, where the largest item is
* stored at the root of the heap.
*
* Time Complexity: O(Logn).
* Space Complexity: O(n).
*
*/

import java.util.Arrays;
public class HeapSort {
public static void sort(int[] arr) {
int n = arr.length;
for (int i = n/2 - 1; i >= 0; i--)
heapify(arr, n, i);

for (int i=n-1; i>=0; i--) {
swap(arr, 0, i);
heapify(arr, i, 0);
}
}

private static void heapify(int arr[], int n, int i) {
int largest = i;
int l = 2*i + 1;
int r = 2*i + 2;

if (l < n && arr[l] > arr[largest]) largest = l;
if (r < n && arr[r] > arr[largest]) largest = r;

if (largest != i) {
swap(arr, i, largest);
heapify(arr, n, largest);
}
}

private static void swap(int[] nums, int i, int j) {
int temp = nums[i];
nums[i] = nums[j];
nums[j] = temp;
}

public static void main(String[] args) {
int[] arr1 = {10, 3, 7, 5, 20, 15, 1};
HeapSort.sort(arr1);
System.out.println(Arrays.toString(arr1));

int[] arr2 = {};
HeapSort.sort(arr2);
System.out.println(Arrays.toString(arr2));

int[] arr3 = {10};
HeapSort.sort(arr3);
System.out.println(Arrays.toString(arr3));
}

}
165 changes: 27 additions & 138 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,138 +1,27 @@
# 🎃 HacktoberFest Starter Project 🎃

Use this project to make your first contribution to an open source project on GitHub. Practice making your first pull request to a public repository before doing the real thing!

Celebrate [Hacktoberfest](https://hacktoberfest.digitalocean.com/) by getting involved in the open source community by completing some simple tasks in this project.

This repository is open to all members of the GitHub community. Any member may contribute to this project without being a collaborator.

[https://github.com/Shubhamjain287](https://github.com/Shubhamjain287)

## What is Hacktoberfest?

A month-long celebration from October 1st - 31st sponsored by [Digital Ocean](https://hacktoberfest.com/) and [GitHub](https://dev.to/this-is-learning/hacktoberfest-2022-is-almost-there-get-ready-4ifb) to get people involved in [Open Source](https://github.com/open-source). Create your very first pull request to any public repository on GitHub and contribute to the open source developer community.

[https://hacktoberfest.com/](https://hacktoberfest.com/)

## How to contribute to this project

Here are 3 quick and painless ways to contribute to this project:

- Display your name and profile in the list of contributors by adding your name to the `public/userdata` file !!
- Add Your Web Development Project in `Web Devlopment` Folder !!
- And If You want to improve that webiste of [List of Contributors](https://web-devlopment-projects-iw9kyul5k-shubhamjain287.vercel.app/) , You can also Contribute to that !!

Choose 1 or all , and make a pull request for your work and wait for it to be merged!

## Getting started

- Fork this repository (Click the Fork button in the top right of this page, click your Profile Image)
- Clone your fork down to your local machine

```markdown
git clone https://github.com/Shubhamjain287/Web-Devlopment-Projects.git
```

- Create a branch

```markdown
git checkout -b branch-name
```

- Make your changes (choose from any task below)
- Commit and push

```markdown
git add .
git commit -m 'Commit message'
git push origin branch-name
```

- Create a new pull request from your forked repository (Click the `New Pull Request` button located at the top of your repo)
- Wait for your PR review and merge approval!
- **Star this repository** if you had fun !

## Choose from these tasks

### 1. Add Your Web Development Project in Web Devlopment Folder !!

- Display your name and profile in the list of contributors by adding your name to the `public/userdata` file !!

```markdown
{
id : 1,
Name : "Shubham Jain",
Description : "Open Source Contribution",
imgsrc : "https://1.bp.blogspot.com/-23yVlT_sCP4/YLS4fGUfbPI/AAAAAAAAHvo/TkZ2xSnXTHs2XRlRa3q4do5tgfvjozaSwCLcBGAsYHQ/s320/PicsArt_05-31-03.50.1",
github : "https://github.com/Shubhamjain287"
}
```

### 3. If You want to improve that webiste of [List of Contributors](https://web-devlopment-projects-iw9kyul5k-shubhamjain287.vercel.app/) You can also Contribute to that !!


## BONUS!

- Merging All Pull Requests
- See profiles submitted by fellow coders from around the globe ... from Indore to Sohagpur.
- Check out some very creative projects in `web Development` Folder !!

## Reference links

Here is a great tutorial for creating your first pull request by [Roshan Jossey](https://github.com/Roshanjossey):
[https://github.com/Roshanjossey/first-contributions](https://github.com/Roshanjossey/first-contributions)

Managing your Forked Repo: [https://help.github.com/articles/fork-a-repo/](https://help.github.com/articles/fork-a-repo/)

Syncing a Fork: [https://help.github.com/articles/syncing-a-fork/](https://help.github.com/articles/syncing-a-fork/)

Keep Your Fork Synced: [https://gist.github.com/fineanmol/f9b8943230e7031ae78cdcd1755bef32](https://gist.github.com/fineanmol/f9b8943230e7031ae78cdcd1755bef32)

Checkout this list for README examples - Awesome README [![Awesome](https://cdn.rawgit.com/sindresorhus/awesome/d7305f38d29fed78fa85652e3a63e154dd8e8829/media/badge.svg)](https://github.com/sindresorhus/awesome)

Github-Flavored Markdown [https://guides.github.com/features/mastering-markdown/](https://guides.github.com/features/mastering-markdown/)

## Additional references added by contributors

GitHub license explained [https://choosealicense.com](https://choosealicense.com)

## Additional references for Contributors
- Contributions make the open source community such an amazing place to learn, inspire, and create.
- Any contributions you make are **truly appreciated**.
- Check out our [contributiors](./CONTRIBUTING.md) for more information.


This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.

[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.

The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
# Resume generator
Web based editor to create Resume in a customizable template

Try it : https://nitish6174.github.io/resume-generator/

**Note** : Click the "VIEW INSTRUCTIONS" button in the editor to read usage instructions.

#### Features
- Resume content can be edited just like a normal document editor (cut,copy,undo etc).
- Entire sections can be added, reordered, removed just by cut,copy,pasting method.
- Section visibility can be toggled while retaining the content.
- Options provided in the left panel to modify the template and formatting.
- Sub-points can be added with various bullet styles and adjustable indentation.
- Script provided to merge multiple pages and compress the PDF.

#### Using the merge & compress script
- You must be able to run python file on your system for this.
- Save the individual pages in PDF format with name ```1.pdf``` , ```2.pdf```
- Download the ```compress_pdf.py``` file and open it in a text editor.
- Set the following variables :
- ```dir_path``` : Directory path where you saved the PDFs for individual page
- ```num_of_pages``` : Number of files to merge (i.e. pages in your Resume)
- ```out_file``` : Name of output file
- Run this python file.
- Note: As this creates a new PDF file, you may have to see permission settings or run with sudo on terminal.

**Note** : Use Google Chrome
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# Airline-Reservation-System
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<project-shared-configuration>
<!--
This file contains additional configuration written by modules in the NetBeans IDE.
The configuration is intended to be shared among all the users of project and
therefore it is assumed to be part of version control checkout.
Without this configuration present, some functionality in the IDE may be limited or fail altogether.
-->
<properties xmlns="http://www.netbeans.org/ns/maven-properties-data/1">
<!--
Properties that influence various parts of the IDE, especially code formatting and the like.
You can copy and paste the single properties, into the pom.xml file and the IDE will pick them up.
That way multiple projects can share the same settings (useful for formatting rules for example).
Any value defined here will override the pom.xml file value but is only applicable to the current project.
-->
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>1.7-web</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_j2eeVersion>
<org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>Tomcat</org-netbeans-modules-maven-j2ee.netbeans_2e_hint_2e_deploy_2e_server>
</properties>
</project-shared-configuration>
Loading