Skip to content

Instantly share code, notes, and snippets.

@levancho
levancho / contracts...LuckyChainSimple.sol
Created July 29, 2024 07:50
Created using remix-ide: Realtime Ethereum Contract Compiler and Runtime. Load this file by pasting this gists URL or ID at https://remix.ethereum.org/#version=soljson-v0.8.26+commit.8a97fa7a.js&optimize=false&runs=200&gist=
// 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;
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
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",
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) {
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