Skip to content

Instantly share code, notes, and snippets.

View Praful932's full-sized avatar
💜
Learning

Praful Praful932

💜
Learning
View GitHub Profile
@Praful932
Praful932 / run_pod_post_start_setup.sh
Last active April 11, 2024 06:06
Runpod post start setup
# 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"
@Praful932
Praful932 / run_pod_setup.sh
Last active April 14, 2024 07:45
Runpod env setup
#!/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
@Praful932
Praful932 / regex.txt
Created July 29, 2021 06:27
Regex snippets
. - 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
pip install numpy pandas jupyter jupyter_contrib_nbextensions && jupyter contrib nbextension install --user && jupyter nbextension enable hinterland/hinterland && pip install jedi==0.17.2
{"lastUpload":"2021-12-22T17:15:06.523Z","extensionVersion":"v3.4.3"}
Skip to content
Search or jump to…
Pull requests
Issues
Marketplace
Explore
@Praful932
#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);
@Praful932
Praful932 / PY0101EN-1-1-Types.ipynb
Created July 4, 2019 03:33
Created on Cognitive Class Labs
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
//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
{
// Copies a BMP file
#include <stdio.h>
#include <stdlib.h>
#include "bmp.h"
int main(int argc, char *argv[])
{
// ensure proper usage