KWOC 2020 Project Report

KWOC 2020

Projects: Rotten Scripts, Leet-code, Draw, Codemon, SpeakEd

Mentors : Harsh Bardhan Mishra, Shruti Shreyasi, Garima Singh, Ankush Bharadwaj

Project Description [Rotten-Scripts]: It is a project contains amazing and awesome scripts written in Python, JavaScript, Bash, PowerShell, and more.

Project Description [Leet-code]: It is a project for the solutions of various Leetcode problems in C++

Project Description [Draw]: It is a project on a drawing app made using p5.js library!

Project Description [Codemon]: It is a CLI tool to ace competitive programming contests

Project Description [SpeakEd]: It is an Open Community Platforms connecting Speakers to Community Leads while building their Portfolio

KWoC (Kharagpur Winter Of Code) is an annual open source program conducted by Kharagpur Open Source Society, IIT Kharagpur. It is a five week long program that runs during the month of December. It is aimed at promoting open source participation and helping students prepare for events like GSoC.

Contribution #1

Pull Request: Added Binary Search Problems’ Solutions in C++ in Leet-Code

In this contribution I added a Binary Search Solutions of Leetcode in C++.

Binary Search Solutions Added by Siddhant-K-code · Pull Request #16 · shruti170901/Leetcode (github.com)

This PR request was created in response of the following issue.

Leetcode questions(unsolved) related to BinSearch · Issue #4 · shruti170901/Leetcode (github.com)

Contribution #2

Pull Request: Added TSV to CSV Python Script in Rotten-Scripts

In this contribution, I added a script for convert TSV to CSV file in Python.

Added TSV to CSV Python Script by Siddhant-K-code · Pull Request #577 · HarshCasper/Rotten-Scripts (github.com)

This PR request was created in response of the following issue.

TSV to CSV converter. · Issue #571 · HarshCasper/Rotten-Scripts (github.com)

Code:

file_path = input("Enter the tsv file path : ")
tsv_file = open(file_path, 'r')
tsv_content = tsv_file.read()
csv_content = tsv_content.replace("\t", ",")
file_name = input("Enter the file name with extension name .csv : ")
csv_file = open(file_name, 'w')
csv_file.write(csv_content)
csv_file.close()
print("Task Completed, TSV Converted to CSV")

Contribution #3

Pull Request: Added DFS Solutions in C++ in Leet-code

Added DFS solutions of Leetcode problems in C++

Added 2 DFS Solutions by Siddhant-K-code · Pull Request #94 · shruti170901/Leetcode (github.com)

This PR request was created in response of the following issue.

Solve one/more leetcode questions(unsolved in this repo) related to BFS/ DFS · Issue #5 · shruti170901/Leetcode (github.com)

Contribution #4

Pull Request: Deployed Project on Heroku in Draw

Deployed the whole Project on Heroku

Deployed On Heroku by Siddhant-K-code · Pull Request #11 · garimasingh128/Draw (github.com)

This PR request was created in response of the following issue.

Hosting on Heroku · Issue #2 · garimasingh128/Draw (github.com)

Code:

Since, HTML/CSS/JS Project can’t be directly deploy to Heroku, so I deploy it as PHP, for this i created these two files

Added composer.json

{ }

Added index.php

<?php include_once("index.html"); ?>

Contribution #5

Pull Request: Added Python Template in Codemon

Added Python Template for Competitive Programming

Added Python Template by Siddhant-K-code · Pull Request #74 · ankingcodes/codemon (github.com)

This PR request was created in response of the following issue.

Add a sensible default template (python) · Issue #69 · ankingcodes/codemon (github.com)

Code:

from os import path
from io import BytesIO, IOBase
import sys
from heapq import heappush,heappop
from functools import cmp_to_key as ctk
from collections import deque,Counter,defaultdict as dd
from bisect import bisect,bisect_left,bisect_right,insort,insort_left,insort_right
from itertools import permutations
from datetime import datetime
from math import ceil,sqrt,log,gcd
def ii():return int(input())
def si():return input().rstrip()
def mi():return map(int,input().split())
def li():return list(mi())
# mod=1000000007
mod=998244353
inf = float("inf")
file = 1

# write fastio for getting fastio template.


def solve():


# Your Solution



if __name__ =="__main__":

if(file):

if path.exists('input.txt'):
sys.stdin=open('input.txt', 'r')
sys.stdout=open('output.txt','w')
else:
input=sys.stdin.readline
solve()

Contribution #6

Pull Request: Added DeepSource Static Code Analysis in SpeakEd

Deepsource Static Code Analysis Added, created .deepsource.toml file in root

Added DeepSource Static Code Analysis by Siddhant-K-code · Pull Request #24 · HarshCasper/SpeakEd (github.com)

This PR request was created in response of the following issue.

Add DeepSource Static Code Analysis · Issue #9 · HarshCasper/SpeakEd (github.com)

Code:

version = 1

[[analyzers]]
name = "python"
enabled = true

[analyzers.meta]
runtime_version = "3.x.x"

[[analyzers]]
name = "javascript"
enabled = true

[analyzers.meta]
environment = [
"browser",
"nodejs"
]
plugins = ["react"]

Contribution #7

Pull Request (Open): Added Restaurants Scrapper using Zomato API in Rotten-Scripts

In this contribution, I added a script for adding restaurants scrapper using Zomato API in Python.

Added Restaurants Scrapper using Zomato API by Siddhant-K-code · Pull Request #655 · HarshCasper/Rotten-Scripts (github.com)

This PR request was created in response of the following issue.

Scrap Restaurants using the Zomato API · Issue #585 · HarshCasper/Rotten-Scripts (github.com)

Verdict:

I want to thank my all mentors for their guidance in this project. It was a great learning experience for me . I want to thank KOSS, IIT KGP for conducting this beginner friendly program . This program helped me to learn what open source projects are and how to contribute to them.

Siddhant Khare

I am a Junior pursuing a Bachelor’s degree in Computer Science, Also a Full Stack Developer & Open Source Contributor