This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Add it in task scheduler. as python as binary and arguemeent as location of this script. | |
import requests | |
import smtplib | |
import os | |
from plyer import notification | |
# Email configuration | |
smtp_server = 'smtp-mail.outlook.com' # SMTP server address | |
smtp_port = 587 # SMTP server port |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void insertionSort(vector<int>& arr){ | |
int lastIndex = arr.size() - 1; | |
// Repeat from second element to last element. | |
for(int i = 1; i <= lastIndex; i++){ | |
// Store the current element in a variable. | |
int element = arr[i]; | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void bubbleSort(vector<int>& arr) | |
{ | |
int lastIndex = arr.size() - 1; | |
// n-1 passes | |
for(int i = 0; i < lastIndex; i++){ | |
bool swapped = false; | |
// from first element to last/secondLast/thirdLast element depending on pass count. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void sortArray(vector<int>& nums) { | |
int lastIndex = nums.size() - 1; | |
// Run for Every Index except last one as it will be sorted anyways. | |
for (int runningIndex = 0; runningIndex < lastIndex; runningIndex++){ | |
// Find Minimum/Maximum from running index to lastIndex. | |
int min = runningIndex; | |
for(int i = runningIndex + 1; i <= lastIndex; i++){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## HOW TO DOWNLOAD Youtube Videos from playlist on a mac?. | |
## list.txt file should contain a link of playlist. | |
## To Get binary visit https://github.com/yt-dlp/yt-dlp on readme see alternatives downlaod mac legacy binary | |
## Also get binary of ffmepg for conversion. | |
## Place it in folder in which we need to download video and then just do chmod +x binary_name. | |
## OR even Better put it in /usr/local/bin. | |
sudo ./binary_name -a list.txt --no-check-certificate -o "%(playlist_index)s-%(title)s.%(ext)s" | |
## To Download And Convert it to mp4 use this arguement |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @file DynamicMatrix.cpp | |
* @author Jugal Shah (shahjugalr@gmail.com) | |
* @brief How to allocate a 2-D(True) array dynamically. | |
* @version 0.1 | |
* @date 17/04/2022 | |
* | |
* @copyright Copyright (c) 2022 | |
* | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @author Shah Jugal R. | |
* shahjugalr@gmail.com | |
* GitHub.com/shahjugalr | |
* | |
* @brief CodeChef Template v0.0.1 | |
* | |
*/ | |
#include <bits/stdc++.h> |