Skip to content

Instantly share code, notes, and snippets.

nikhilweee /
Last active Oct 19, 2021
Convert HDFC Bank Credit Card statements from PDF to Excel
# This script is designed to convert bank statements from pdf to excel.
# It has been tweaked on HDFC Bank Credit Card statements,
# but in theory you can use it on any PDF document.
# The script depends on camelot-py,
# which can be installed using pip
# pip install "camelot-py[cv]"
nikhilweee /
Last active Jul 2, 2019
Getting started with LSTMs in PyTorch
import random
import torch
num_examples = 128
message_length = 32
def dataset(num_examples):
"""Returns a list of 'num_examples' pairs of the form (encrypted, original).
nikhilweee /
Last active Nov 16, 2016
#! /bin/bash
# You can run this script directly from the terminal
# curl -s > /tmp/ ; source /tmp/
# Just use `gitcommit` instead of `git commit -m` to get random commit messages from
# start
# checking for conflicts
unalias gitcommit
unalias commitmessage
nikhilweee /
Last active Nov 20, 2021
Get vehicle info from an Indian registration number

Programmatically extract owner info from Indian registration numbers


$ python MH02CL 0555
Registration No:
Registration Date:

Winter Mania : Mastering Django during winters

To make you able to handle the immense power you are about to hold, you are expected to complete these tasks during the winters

1. The Django Polls tutorial

The Polls Tutorial gives an excellent overview of what Django is, and how stuff works. Complete these parts of the Polls Tutorial from

  • Part 1 : Requests and Responses - The basic workflow of a request in Django
  • Part 2 : Models and the admin site - Design and relationships of database tables