This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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). | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# You can run this script directly from the terminal | |
# curl -s https://gist.githubusercontent.com/nikhilweee/75ea15afabdfbb18cda625364a9bf9f9/raw/ > /tmp/wtc.sh ; source /tmp/wtc.sh | |
# Just use `gitcommit` instead of `git commit -m` to get random commit messages from whatthecommit.com | |
# start | |
# checking for conflicts | |
unalias gitcommit | |
unalias commitmessage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
import requests | |
from bs4 import BeautifulSoup, SoupStrainer | |
home_url = 'https://parivahan.gov.in/rcdlstatus/' | |
post_url = 'https://parivahan.gov.in/rcdlstatus/vahan/rcDlHome.xhtml' | |
# Everything before the last four digits: MH02CL | |
first = sys.argv[1] | |
# The last four digits: 0555 | |
second = sys.argv[2] |
NewerOlder