Coder Social home page Coder Social logo
  • πŸ‘‹ Hi, I’m @Zipitn
  • πŸ‘€ I’m interested in ...
  • 🌱 I’m currently learning ...
  • πŸ’žοΈ I’m looking to collaborate on ...
  • πŸ“« How to reach me ...
  • πŸ˜„ Pronouns: ...
  • ⚑ Fun fact: ...
import marshal

data = {'name': 'John', 'age': 30, 'city': 'Example City'}

Dumping the data to a file

with open('data_file.marshal', 'wb') as file: marshal.dump(data, file)

Loading the data back

with open('data_file.marshal', 'rb') as file: loaded_data = marshal.load(file)

print(loaded_data) import smtplib from email.mime.text import MIMEText from email.mime.multipart import MIMEMultipart import schedule import time

def send_email(): # Your email and password sender_email = '[email protected]' sender_password = 'your_email_password'

# Recipient email [address](https://trk.cp20.com/click/eqk0-2sphra-d38yym-kppqdji5/pmrf65jchirgq5duoa5c6l3zn52xeztjnzqw4y3fmzxxe5lnonswc4tdnaxgg33nf5nxezlmmf4uc5duojptexjvhazdgmtfhbqwkyjsge4donlfmvsgcm3chaytkyzwgbrwcnldgmrcyitsmvwgc6kbor2hexzsei5cezrugnsdkmlemiwteoldmmwtizbygqwwcojqgqwtczldgazdmm3emu4danrcpu%3D%3D%3D%3D%3D%3D)
recipient_email = '[email protected]'

# https://www.rewardit.com/Register?invitation=c4f2baa2-8c1e-4f2a-ba2e-bee6d076cb24&[email protected]&r=97FF7016-DCF9-41D1-8B89-0ECC841139EA&utm_source=email&utm_content=RI_Sealed_LC+0-30&utm_campaign=Daily+Email+Template&utm_medium=8528671Message content
subject = 'Daily Report'
body = 'This is your daily report content.'

# Setting up the MIME
message = MIMEMultipart()
message['From'] = sender_email
message['To'] = recipient_email
message['Subject'] = subject
message.attach(MIMEText(body, 'plain'))

# Connect to the SMTP server
with smtplib.SMTP('smtp.example.com', 587) as server:
    server.starttls()
    # Login to your email account
    server.login(sender_email, sender_password)
    # Send email
    server.sendmail(sender_email, recipient_email, message.as_string())

Schedule the job to run daily at a specific time

schedule.every().day.at("08:00").do(send_email)

Run the scheduled jobs

while True: schedule.run_pending() time.sleep(1) return: orgin

Daedalus 's Projects

cdxgen icon cdxgen

Creates CycloneDX Software Bill of Materials (SBOM) for your projects from source and container images. Supports many languages and package managers. Integrate in your CI/CD pipeline with automatic submission to Dependency Track server. Slack: https://cyclonedx.slack.com/archives/C04NFFE1962

deprecated icon deprecated

Python @deprecated decorator to deprecate old python classes, functions or methods.

docs icon docs

The open-source repo for docs.github.com

ffmpeg icon ffmpeg

mirror of git://source.ffmpeg.org/ffmpeg.git

gh-actions-cache icon gh-actions-cache

A GitHub (gh) CLI extension to manage the GitHub Actions caches being used in a GitHub repository.

javapackager icon javapackager

:package: Gradle/Maven plugin to package Java applications as native Windows, MacOS, or Linux executables and create installers for them.

neptune icon neptune

Neptune is a stock management web application with automatic billing system, inventory management of various shops

paddlenlp icon paddlenlp

πŸ‘‘ Easy-to-use and powerful NLP and LLM library with πŸ€— Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including πŸ—‚Text Classification, πŸ” Neural Search, ❓ Question Answering, ℹ️ Information Extraction, πŸ“„ Document Intelligence, πŸ’Œ Sentiment Analysis etc.

play icon play

play β–Ί β€” your company's dj

pygithub icon pygithub

Typed interactions with the GitHub API v3

repo icon repo

Aussie Add-ons repository for Kodi

resin-safebox icon resin-safebox

An electronic safe-deposit box with 2FA, using resin.io and Authy.

setup-node icon setup-node

Set up your GitHub Actions workflow with a specific version of node.js

supreme-funicular icon supreme-funicular

https://trk.cp20.com/click/fyf1-2shxf6-d1i637-ktqb0sf4/pmreg33oorqwg5bokveuiir2ei3tombzgm2tgnzveiwceq3pnz2gcy3ufzausrbchirdenzrej6q%3D%3D%3D%3D

swish icon swish

πŸ‘·Build Swift Projects on a Remote Machine within Xcode.

vim-plug icon vim-plug

:hibiscus: Minimalist Vim Plugin Manager

zipitn icon zipitn

Config files for my GitHub profile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.