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
| def invite(recipient_email, recipient_name, sender_name): | |
| # OTP Template id from brevo | |
| invite_template_id = 4 | |
| api_instance = sib_api_v3_sdk.TransactionalEmailsApi(sib_api_v3_sdk.ApiClient(configuration)) | |
| # Specify recipient name, sent as subject of email | |
| subject = f"Hey {recipient_name}, join the world's leading academic minds at Unizonn!" |
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 time | |
| import pandas as pd | |
| from selenium.webdriver.common.by import By | |
| import config | |
| from src.room.room import session, University | |
| all_university = [] |
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
| from sqlalchemy import event | |
| import os | |
| import logging | |
| import sqlalchemy | |
| import boto3 | |
| import base64 | |
| import json | |
| from botocore.exceptions import ClientError | |
| logger = logging.getLogger() |
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 com.github.crazygit.tikheart.TikHeartApplication | |
| import com.github.crazygit.tikheart.data.dao.UserInfoDao | |
| import com.github.crazygit.tikheart.data.model.UserInfo | |
| import com.github.crazygit.tikheart.utilities.LocalStorage | |
| object LocalRepository { | |
| private val localStorage = LocalStorage(TikHeartApplication.appContext) | |
| private val localUserDao = UserInfoDao(localStorage) |
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
| from sqlalchemy import Column, Integer, String, ForeignKey, create_engine | |
| from sqlalchemy.ext.declarative import declarative_base | |
| from sqlalchemy.orm import relationship, backref, sessionmaker, joinedload | |
| # For this example we will use an in-memory sqlite DB. | |
| # Let's also configure it to echo everything it does to the screen. | |
| engine = create_engine('sqlite:///:memory:', echo=True) | |
| # The base class which our objects will be defined on. | |
| Base = declarative_base() |
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
| <!--- Provide a general summary of your changes in the Title above --> | |
| <!--- If there is no changelog entry, label this PR as trivial to bypass the Danger warning --> | |
| ## Description | |
| <!--- Describe your changes in detail --> | |
| ## Motivation and Context | |
| <!--- Why is this change required? What problem does it solve? --> |
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
| from selenium import webdriver | |
| from selenium.webdriver.chrome.service import Service | |
| import time as time | |
| import selenium.webdriver.common.keys as keys | |
| import selenium.webdriver.common.by as By | |
| from selenium.webdriver.support.ui import Select | |
| chromeService = Service("/Users/newowner/Documents/Learning/Tutorials/Python-Crash-Course/selenium/chromedriver.exe") | |
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 android.app.PendingIntent; | |
| import android.app.RecoverableSecurityException; | |
| import android.content.ContentResolver; | |
| import android.content.ContentValues; | |
| import android.content.Context; | |
| import android.content.IntentSender; | |
| import android.database.Cursor; | |
| import android.net.Uri; | |
| import android.os.Build; | |
| import android.provider.MediaStore; |
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 androidx.appcompat.app.AppCompatActivity | |
| import android.os.Bundle | |
| import dagger.Module | |
| import dagger.Provides | |
| import dagger.hilt.InstallIn | |
| import dagger.hilt.android.AndroidEntryPoint | |
| import dagger.hilt.android.components.ApplicationComponent | |
| import javax.inject.Inject | |
| import javax.inject.Qualifier | |
| import javax.inject.Singleton |
NewerOlder