Skip to content

Instantly share code, notes, and snippets.

View vinitshahdeo's full-sized avatar
🚀
Building world's first Large Pricing Model (LPM)

Vinit Shahdeo vinitshahdeo

🚀
Building world's first Large Pricing Model (LPM)
View GitHub Profile
@vinitshahdeo
vinitshahdeo / hacktoberfest.md
Last active May 31, 2022 17:48
Create a React App to display the Hacktoberfest issues in tabular form

Problem Statement

Hacktoberfest is well known open-source celebration that encourages participation in the open source community. The open issues of public repositories on GitHub that are labelled as hacktoberfest are eligible for contribution through Hacktoberfest.

Although there are ways provided by GitHub to filter the issues, we have a npm module (hacktoberfest-issues-hunt) to list Hacktoberfest Issues.

Let's create a React App using hacktoberfest-issues-hunt module to display all the Hacktoberfest issues in tabular form.

If you're looking for online IDEs, it's recommended to use CodeSandbox.

@vinitshahdeo
vinitshahdeo / chickenOrEgg.js
Created February 22, 2021 21:24
What came first, the chicken or the egg?
/**
* Please use any online IDE or browser's console to see the output
* Link to online IDE: https://repl.it/languages/nodejs
*
*/
const chicken = () => egg();
const egg = () => chicken();
console.log(`${chicken()} came first`);
// ...and the debate continues!
@vinitshahdeo
vinitshahdeo / portScanner.py
Created June 3, 2020 10:20
A basic Port Scanner using Python
#!/usr/bin/env python
import socket
import subprocess
import sys
from datetime import datetime
# Clear the screen
subprocess.call('clear', shell=True)
# Ask for input
@vinitshahdeo
vinitshahdeo / pipelines.yml
Created August 7, 2019 10:14 — forked from nicobytes/pipelines.yml
Install chrome for CI
image: node:6.9.4
pipelines:
branches:
master:
- step:
script:
- apt-get update; apt-get install -y gettext-base;
- echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list
- wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
- set -x && apt-get update && apt-get install -y xvfb google-chrome-stable
@vinitshahdeo
vinitshahdeo / happy_birthday.php
Created March 3, 2019 09:57
Coder's way of wishing happy birthday
/*
@author vinitshahdeo
*/
<?php
$data = base64_decode('SGFwcHkgQmlydGhkYXkh');
echo $data;
?>
@vinitshahdeo
vinitshahdeo / happy_birthday.c
Created March 3, 2019 09:46
Coder's way of wishing Happy Birthday
/*
@author vinitshahdeo
*/
#include <stdio.h>
char *secret = "ziBbeqjAs+cu";
unsigned long message = 10521325414783145265U;
int main(void) {
while (message) {
putchar(secret[message & 15] - 33);
message >>= 4;
@vinitshahdeo
vinitshahdeo / happybirthday.c
Last active March 3, 2019 09:53
Coder's Way of Saying Happy Birthday
/*
@author vinitshahdeo
*/
#include<stdio.h>
main(){
char str[]="Ibqqz!Cjsuiebz",*p;
p=str;
while(*p!='\0')
--*p++;
printf("%s",str);
/*
Author - Vinit Shahdeo
Copyright - CodeChef VIT Chapter
*/
#include<bits/stdc++.h>
using namespace std;
bool check(int n)
{
int prev=0;
while(n)
@vinitshahdeo
vinitshahdeo / 2sum.cpp
Last active September 15, 2018 10:32
LeetCode Problems
class Solution {
public:
vector<int> twoSum(vector<int>& nums, int target) {
map<int,int> m;
vector<int> v;
for(int i=0;i<nums.size();i++)
{
if(m.find(target-nums[i])!=m.end())
{
v.push_back(m[target-nums[i]]);
@vinitshahdeo
vinitshahdeo / 3sum.cpp
Created September 14, 2018 21:25
LeetCode Problems
class Solution {
public:
vector<vector<int>> threeSum(vector<int>& nums) {
set<vector<int> > st;
sort(num.begin(), num.end());
int i, j, k;
int n = num.size();
for (i = 0; i < n - 2; i++) {
j = i+1;
k = n-1;