This file contains hidden or 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
| // DSA - Hash Table implementation heavily derived from https://youtu.be/wg8hZxMRwcw | |
| // and file from the repository (in video description) | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define TABLE_SIZE 10000 | |
| typedef struct entry { | |
| char *key, *value; |
This file contains hidden or 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
| # strong passphrase generator and copier | |
| from secrets import choice, randbelow | |
| from string import ascii_lowercase, ascii_uppercase, punctuation, digits | |
| import pyperclip # pip install pyperclip | |
| def choose_specified(group, num=2): | |
| if len(group) == 1: | |
| return group | |
| return ''.join(choice(group) for _ in range(num)) |