Skip to content

Instantly share code, notes, and snippets.

View subsr97's full-sized avatar
🤠
'Go'ing!

Subramanian Sridharan subsr97

🤠
'Go'ing!
View GitHub Profile
from time import time
import random
def getTimestamp():
return int(time())
entries = []
people = 0
peopleList = [0]
timestamp = getTimestamp()
@subsr97
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.
@subsr97
subsr97 / timestamp_to_date.py
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.
try:
import pyperclip
import os
from tkinter import Tk, messagebox
import subprocess
except Exception as e:
print("Import Error: Modules pyperclip and Tkinter are needed.")
exit(1)
@subsr97
subsr97 / cloudSettings
Last active July 8, 2021 19:07
Visual Studio Code Settings Sync Gist
{"lastUpload":"2021-07-08T19:07:42.297Z","extensionVersion":"v3.4.3"}
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):