This is simple implementation for a mini project wherein there is an option for the users to subscribe to a mailing list. This directly adds the user's email to Google Sheets
.
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
# imports | |
from selenium.webdriver import Chrome | |
from selenium.common.exceptions import NoSuchElementException | |
from selenium.webdriver.common.keys import Keys | |
from selenium.webdriver.common.action_chains import ActionChains | |
import time | |
URL = "https://twitter.com" | |
# message |
Contains a single docker compose
file which can be used to used to create a moodle
server locally.
Build and run: sh run.sh
Portal Documentaion: https://docs.moodle.org/310/en/Main_page
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
#!/bin/bash | |
## Usage: | |
## `./create-assignment.sh <directory> <target> <extension>` | |
## Example: | |
## `./create-assignment.sh Assignment-1/Day-1 23_Hello_world_A7 java` | |
directory=$1 | |
target=$2 | |
extension=$3 |
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
# build an image | |
docker build . | |
# build docker image with a tag (recommended) | |
docker build -t <tag> . | |
# run an image | |
docker run <image/tag> | |
# run an image in background |
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
import datetime as dt | |
import requests | |
from smtplib import SMTP | |
from email.mime.multipart import MIMEMultipart | |
from email.mime.text import MIMEText | |
import time | |
import pandas as pd | |
from requests.sessions import session | |
SENDER_EMAIL = "[email protected]" |