This file contains 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
# install imaplib2 before running. | |
# written for python3 | |
# adjust your IMAP server details! | |
import imaplib | |
import email | |
from email.policy import default | |
import os | |
# IMAP server details |
This file contains 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
<span id="umwelt_smiley"> </span> <!-- put wherever you want --> | |
<script> | |
function random_smiley() | |
{ | |
let set = ["💚","🐣","🌱","🌿","🌳","🌻","🌞","☀","🥦","🌏","🌍","🌈"] | |
let smiley = set[Math.floor(Math.random()*set.length)]; | |
document.getElementById("umwelt_smiley").innerHTML = smiley; | |
} |