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
| // SPDX-License-Identifier: GPL-3.0 | |
| pragma solidity >=0.8.2 <0.9.0; | |
| import "hardhat/console.sol"; | |
| contract LuckyChainSimple { | |
| address public manager; | |
| uint public level = 1; | |
| uint public totalSeats = 0; |
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 os | |
| import psycopg2 | |
| from datetime import datetime | |
| from exchangelib import Credentials, Account, DELEGATE | |
| # Outlook Configuration | |
| OUTLOOK_EMAIL = "[email protected]" # Your technical user email | |
| OUTLOOK_PASSWORD = "your_password" # Your password | |
| SHARED_MAILBOX = "[email protected]" # The shared mailbox | |
| FOLDER_NAME = "Inbox" # Folder to check emails from |
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 os | |
| import psycopg2 | |
| import requests | |
| from exchangelib import Credentials, Account, Message, DELEGATE, HTMLBody | |
| from email.mime.application import MIMEApplication | |
| # PostgreSQL Database Configuration | |
| DB_CONFIG = { | |
| "dbname": "your_database", | |
| "user": "your_db_user", |
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
| const fs = require('fs'); | |
| const path = require('path'); | |
| // Read version from version-tag file | |
| const versionTagPath = path.join(__dirname, 'version-tag'); | |
| const packageJsonPath = path.join(__dirname, 'package.json'); | |
| const version = fs.readFileSync(versionTagPath, 'utf-8').trim(); | |
| if (!version) { |
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
| const fs = require('fs'); | |
| const path = require('path'); | |
| const yaml = require('js-yaml'); | |
| // Paths to files | |
| const versionTagPath = path.join(__dirname, 'version-tag'); | |
| const packageJsonPath = path.join(__dirname, 'package.json'); | |
| const devYamlPath = path.join(__dirname, 'html/environments/dev.yaml'); | |
| // Read version from version-tag file |
OlderNewer