Skip to content

Instantly share code, notes, and snippets.

View akash-kd's full-sized avatar
🖥️
Ruby ruby

Akash Kandasamy akash-kd

🖥️
Ruby ruby
View GitHub Profile
[dir]::[warr]::[~/Projects/warrsou]
Fig
Warp
Pasty
Cleanshot X
AutoRaise
Amie
Spotify
Dev
{
"editor.accessibilitySupport": "off",
"workbench.colorTheme": "Tokyo Night",
"editor.fontSize": 16,
"editor.fontFamily": "Monaco, 'Courier New', monospace",
"editor.lineHeight": 1.6,
"editor.fontWeight": 500,
"editor.minimap.maxColumn": 200,
"terminal.integrated.fontSize": 18,
"terminal.integrated.fontWeight": 700,
import csv
with open('data.csv', 'w', newline='') as csvfile:
csv = csv.writer(csvfile, delimiter=',', quotechar='"', quoting=csv.QUOTE_MINIMAL)
csv.writerow(['username','email'])
for i in range(1,6):
with open(r".\data{0}.txt".format(i), 'r') as fp:
# read line 8
x = fp.readlines()
username = x[714].split("username -:")[1].strip()
email = x[718].split("email -:")[1].strip()
import imaplib
import email
from email.header import decode_header #To load saved login credentials from a yaml file
username ="[email protected]"
password ="cvswpicrtmdxkcit"
#URL for IMAP connection