Skip to content

Instantly share code, notes, and snippets.

bhanuraja /
Created May 31, 2019 11:40
Chegg question skipping android
package com.example.myapp;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.os.CountDownTimer;
import android.os.StrictMode;
import android.os.Bundle;
import android.util.Log;
bhanuraja /
Last active September 11, 2019 09:17
Chegg question skipping
import requests
import time
# from quickstart import start,create_message,send_message
# service = start()
# message = create_message('me','','chegg','Found question')
data = {'clientId':'CHGG','email':'','password':'Trivial!123'}
url = ''
headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36',
bhanuraja /
Last active June 2, 2019 15:37
Python script for merging PDF files using PyPDF2
import os
import re
from PyPDF2 import PdfFileMerger
loc = r"C:\Users\Bhanuraja\Downloads\Compressed\java"
merger = PdfFileMerger()
# get the list of all files in the specified directory
a = os.listdir(loc)
b = []
for a in os.listdir(loc):
if a.endswith('.pdf')&(a!='output.pdf'):