Skip to content

Instantly share code, notes, and snippets.

import mimetypes
import mimetypes
import csv
import glob
import re
import smtplib
from email.message import EmailMessage
import random
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
@konfiot
konfiot / continents.json
Created November 9, 2019 16:08
Continents
[{"Continent_Code": "NA", "Continent_Name": "North America", "Country_Name": " Union", "Country_Number": 4, "Three_Letter_Country_Code": "AFG", "Two_Letter_Country_Code": "AP"},{"Continent_Code": "EU", "Continent_Name": "Europe", "Country_Name": "European Union", "Country_Number": 4, "Three_Letter_Country_Code": "AFG", "Two_Letter_Country_Code": "EU"},{"Continent_Code": "AS", "Continent_Name": "Asia", "Country_Name": "Afghanistan, Islamic Republic of", "Country_Number": 4, "Three_Letter_Country_Code": "AFG", "Two_Letter_Country_Code": "AF"},{"Continent_Code": "EU", "Continent_Name": "Europe", "Country_Name": "Albania, Republic of", "Country_Number": 8, "Three_Letter_Country_Code": "ALB", "Two_Letter_Country_Code": "AL"},{"Continent_Code": "AN", "Continent_Name": "Antarctica", "Country_Name": "Antarctica (the territory South of 60 deg S)", "Country_Number": 10, "Three_Letter_Country_Code": "ATA", "Two_Letter_Country_Code": "AQ"},{"Continent_Code": "AF", "Continent_Name": "Africa", "Country_Name": "Algeria, Peo
@konfiot
konfiot / cpdl.py
Created October 30, 2014 17:36
C+ broadcasts to RSS
import re
import xml.etree.ElementTree as ET
import urllib
import m3u8
import shutil
import os
import pytz
import json
from datetime import datetime
from feedgen.feed import FeedGenerator
@konfiot
konfiot / download.py
Last active August 29, 2015 14:01
Youtube channels to RSS
#!/usr/bin/python2.7
import json
import urllib
import pafy
import pytz
import os
import hashlib
from datetime import datetime
from feedgen.feed import FeedGenerator
#!/usr/bin/python2.7
import time
import subprocess
from matrix_keypad import RPi_GPIO
kp = RPi_GPIO.keypad(columnCount = 4)
def digit():
r = None
while r==None:
r = kp.getKey()