Skip to content

Instantly share code, notes, and snippets.

View maxand-re's full-sized avatar
:copilot:

Maxandre Rochefort maxand-re

:copilot:
View GitHub Profile
sepal_length sepal_width petal_length petal_width species
5.1 3.5 1.4 0.2 setosa
4.9 3.0 1.4 0.2 setosa
4.7 3.2 1.3 0.2 setosa
4.6 3.1 1.5 0.2 setosa
5.0 3.6 1.4 0.2 setosa
5.4 3.9 1.7 0.4 setosa
4.6 3.4 1.4 0.3 setosa
5.0 3.4 1.5 0.2 setosa
4.4 2.9 1.4 0.2 setosa
@maxand-re
maxand-re / contracts...Lottery.sol
Created October 9, 2022 17:34
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.7+commit.e28d00a7.js&optimize=false&runs=200&gist=
pragma solidity 0.8.7;
contract Lottery {
// Les variables sont déjà pré-faite pour vous aider
// Vous pouvez en ajouter ou les modifier si vous le souhaitez
address[] public participants;
bool public isLotteryClosed = false;
uint startTime = block.timestamp;
mapping(address => bool) isParticipate;