Skip to content

Instantly share code, notes, and snippets.

View subsr97's full-sized avatar

Subramanian Sridharan subsr97

View GitHub Profile
class Solution:
num_to_alpha_dict = {str(num): chr( ord("A") + num-1 ) for num in range(1,27)}
ways = 0
# Dictionary for memoization
ways_dict = dict()
def decode_message(self, s):
subsr97 / cloudSettings
Last active July 8, 2021 19:07
Visual Studio Code Settings Sync Gist
subsr97 /
Created June 18, 2019 06:10
A python script for Linux, that converts a copied timestamp to date and shows it in a message box.
import pyperclip
import os
from tkinter import Tk, messagebox
import subprocess
except Exception as e:
print("Import Error: Modules pyperclip and Tkinter are needed.")
subsr97 / cryptography.ipynb
Created April 22, 2019 13:00
Python implementation of common Cryptographic functions
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from time import time
import random
def getTimestamp():
return int(time())
entries = []
people = 0
peopleList = [0]
timestamp = getTimestamp()