Skip to content

Instantly share code, notes, and snippets.

View mr-bat's full-sized avatar
🙂
What a wounderful world

Abtin Bateni mr-bat

🙂
What a wounderful world
View GitHub Profile
@mr-bat
mr-bat / chromeinstall_ubu16.sh
Created November 24, 2021 20:53 — forked from LoganGray/chromeinstall_ubu16.sh
this worked to install selenium and google chrome on my Ubuntu 16 server.
#!/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
#
@mr-bat
mr-bat / CS291D - hw2.sol
Last active November 6, 2020 07:09
Solution to hw 2 of CS291D
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