Skip to content

Instantly share code, notes, and snippets.


Pushkar Patel thepushkarp

View GitHub Profile
thepushkarp / clone_github_repo_in_colab.txt
Created Oct 13, 2020
Commands to clone your repository in Google Colab
View clone_github_repo_in_colab.txt
uname = "<your username>"
!git config --global '<your email>'
!git config --global '<your name>'
from getpass import getpass
password = getpass('Password:')
!git clone https://$uname:$<username>/<repo name>.git
!cd <repo name>
thepushkarp / AssignmentTemplate.tex
Last active Aug 29, 2020 — forked from dcernst/HWTemplate.tex
LaTeX homework template for Weekly Homework assignments for Dana Ernst's courses.
View AssignmentTemplate.tex
% --------------------------------------------------------------
% This is all preamble stuff that you don't have to worry about.
% Head down to where it says "Start here"
% --------------------------------------------------------------
\setlength{\evensidemargin}{.0 in}
thepushkarp /
Last active Jul 7, 2020
Custom Script to add current date in Google Docs
function onOpen() {
var ui = DocumentApp.getUi();
// Or FormApp or SpreadsheetApp.
ui.createMenu('Custom Scripts')
.addItem('Insert Date', 'insertDate')
function insertDate() {
var cursor = DocumentApp.getActiveDocument().getCursor();
thepushkarp / requirements.txt
Created Jun 22, 2020
Python script to scrape Twitter handles of your circles from Chirpty
View requirements.txt
thepushkarp /
Last active Oct 14, 2020
Email generation script for batch mails of IIIT Vadodara
Email generation script for batch mails of IIIT Vadodara
# import pyperclip # Use pyperclip if you want to paste emails directly to clipboard
emails = ""
# Batch of 2016
# for i in range(1, 62 + 1): # CSE
thepushkarp / input_testfile_formatting_validator_template.cpp
Created Apr 22, 2020
Testcase Input Formatting Validator Template
View input_testfile_formatting_validator_template.cpp
// Original file -
#include <iostream>
#include <assert.h>
#include <algorithm>
#include <vector>
#include <set>
#include <string>
#include <queue>
#include <map>
using namespace std;
You can’t perform that action at this time.