This file contains 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
#!/usr/bin/env bash | |
# used to install offical chrome and selenium on Ubuntu 16.04.1 LTS, 18.04, 20.04.1 LTS desktop, Jan 2021 | |
# also tested and works on Elem OS 5.1 :) | |
# | |
# make sure script is run as root or sudo | |
if [[ $(whoami) != "root" ]] ; then | |
echo ; echo "This script, $0, SHOULD be run as ROOT. " ; echo | |
exit 1 | |
fi | |
# |
This file contains 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
pragma solidity >=0.4.22 <0.7.0; | |
/** | |
* @title QuadraticBallot | |
* @dev Implements voting process along with vote delegation | |
*/ | |
contract QuadraticBallot { | |
struct Voter { | |
bool voted; // if true, that person already voted |