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
# Check if sufficient arguments are provided | |
if [ "$#" -ne 4 ]; then | |
echo "Usage: $0 <username> <repository-name> <env-var-name-for-pat> <destination-path>" | |
exit 1 | |
fi | |
# Assign command-line arguments to variables | |
username="$1" | |
repo_name="$2" | |
env_var_name="$3" # Captures the environment variable name for the PAT |
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
# cd into directory after running conda init | |
cd /workspace | |
# Define the Personal Access Token and repo name | |
pat="$GITHUB_PAT" | |
repo_name="$GITHUB_REPO" | |
username="praful932" | |
repo_url="https://github.com/Praful932/${repo_name}.git" |
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
#!/bin/bash | |
# run pod command | |
# bash -c 'curl -s https://gist.githubusercontent.com/Praful932/246173142223a0495565dcb7b163ab5d/raw/46f73902027b0e44d1c114f71cd7b27893487164/run_pod_setup.sh | bash && /start.sh' | |
# Step 1: Create a directory for Miniconda | |
mkdir -p ~/miniconda3 | |
# Step 2: Download Miniconda installer script | |
wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda3/miniconda.sh |
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
. - Any Character Except New Line | |
\d - Digit (0-9) | |
\D - Not a Digit (0-9) | |
\w - Word Character (a-z, A-Z, 0-9, _) | |
\W - Not a Word Character | |
\s - Whitespace (space, tab, newline) | |
\S - Not Whitespace (space, tab, newline) | |
\b - Word Boundary |
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
pip install numpy pandas jupyter jupyter_contrib_nbextensions && jupyter contrib nbextension install --user && jupyter nbextension enable hinterland/hinterland && pip install jedi==0.17.2 |
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
{"lastUpload":"2021-12-22T17:15:06.523Z","extensionVersion":"v3.4.3"} |
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
Skip to content | |
Search or jump to… | |
Pull requests | |
Issues | |
Marketplace | |
Explore | |
@Praful932 |
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
#include <stdio.h> | |
void accept(int [][10],int ,int); | |
void acceptp(int ) | |
void display(int [][10],int,int); | |
void add(int [][10],int [][10],int,int,int,int); | |
void transpose(int[][10],int,int); | |
void multi(int [][10],int [][10],int m,int n,int x,int y); | |
void saddle(int [][10],int m,int n); | |
int minrow(int a[][10],int ccol,int n,int crow); | |
int maxcol(int a[][10],int crow,int m,int ccol); |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
//greedy least no of coins for change | |
#include<stdio.h> | |
#include<cs50.h> | |
#include<math.h> | |
int main(void) | |
{ | |
float n; | |
int coin=0; | |
do | |
{ |
NewerOlder