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
/* | |
1. Replace my snippets json with yours. | |
2. Copy paste this whole file into your browser console. | |
*/ | |
beeftext_json = { | |
"combos": [ | |
{ | |
"creationDateTime": "2019-01-25T11:23:30.000", | |
"enabled": true, |
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
{ | |
"basics": { | |
"name": "Dr. R. Dustin Wehr", | |
"image": "pro_headshot_cropped_centered.jpg", | |
"email": "[email protected]", | |
"phone": "647-238-9539", | |
"degree": "PhD", | |
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
# Voting with delegation. | |
# Information about voters | |
voters: public({ | |
# weight is accumulated by delegation | |
weight: num, | |
# if true, that person already voted or delegated | |
voted: bool, | |
# person delegated to | |
delegate: address, |
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
# Voting with delegation and delegation-cycle breaking | |
# This is based on @DavidKnott's viper/examples/voting/ballot.v.py and | |
# https://solidity.readthedocs.io/en/develop/solidity-by-example.html#voting | |
# but diverges significantly due to the constraint of bounded gas cost. | |
# This is the simpler version without cycle breaking: https://gist.github.com/DustinWehr/b4f3e0d3b1d29a55f4c3042e0485bd69 | |
# NOT YET TESTED AND PROBALY HAS BUGS. | |
# Information about voters |
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
# Voting with delegation | |
# This is based on @DavidKnott's viper/examples/voting/ballot.v.py and | |
# https://solidity.readthedocs.io/en/develop/solidity-by-example.html#voting | |
# but diverges significantly due to the constraint of bounded gas cost. | |
# version with cycle breaking feature: https://gist.github.com/DustinWehr/d178b3a0b50dcb217a26ad1f26be82e1 | |
# NOT YET TESTED AND PROBALY HAS BUGS. | |
# Information about voters |