Skip to content

Instantly share code, notes, and snippets.


Nikhil Verma nikhilweee

View GitHub Profile
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 Sep 21, 2020
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
You can’t perform that action at this time.