Skip to content

Instantly share code, notes, and snippets.

Avatar
🌱

Pushkar Patel thepushkarp

🌱
View GitHub Profile
@thepushkarp
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 user.email '<your email>'
!git config --global user.name '<your name>'
from getpass import getpass
password = getpass('Password:')
!git clone https://$uname:$password@github.com/<username>/<repo name>.git
!cd <repo name>
@thepushkarp
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"
% --------------------------------------------------------------
\documentclass[12pt]{article}
\setlength{\evensidemargin}{.0 in}
\setlength{\parindent}{0in}
\addtolength{\topmargin}{-1in}
\usepackage{graphicx}
@thepushkarp
thepushkarp / currentDate.gs
Last active Jul 7, 2020
Custom Script to add current date in Google Docs
View currentDate.gs
function onOpen() {
var ui = DocumentApp.getUi();
// Or FormApp or SpreadsheetApp.
ui.createMenu('Custom Scripts')
.addItem('Insert Date', 'insertDate')
.addToUi();
}
function insertDate() {
var cursor = DocumentApp.getActiveDocument().getCursor();
@thepushkarp
thepushkarp / requirements.txt
Created Jun 22, 2020
Python script to scrape Twitter handles of your circles from Chirpty
View requirements.txt
selenium==3.141.0
webdriver_manager==3.2.1
beautifulsoup4==4.9.1
@thepushkarp
thepushkarp / emails.py
Last active Oct 14, 2020
Email generation script for batch mails of IIIT Vadodara
View emails.py
"""
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
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 - https://pastebin.com/Vk8tczPu
#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.