https://en.wikipedia.org/wiki/Median_mechanism
Keep a min heap and a max heap in two solidity arrays.
If a new vote is greater than root of the min heap, insert it there, otherwise insert it in the max heap.
https://en.wikipedia.org/wiki/Median_mechanism
Keep a min heap and a max heap in two solidity arrays.
If a new vote is greater than root of the min heap, insert it there, otherwise insert it in the max heap.
This post links my 3Box profile to my Github account! Web3 social profiles by 3Box. | |
✅ did:3:bafyreigz63l2hwf3x37f27sp3ytordn2syx2ggclm6pt4jqb7rcho3iyfq ✅ | |
Create your profile today to start building social connection and trust online at https://3Box.io/ |
I hereby claim:
To claim this, I am signing this object:
Coinsensus is a token that's regularly minted and distributed according to near-consensus of a voting group with a growing or fluctuating membership.
Others may contribute to the mission of an instance of the token by donating other tokens, including ether.
Holders of the token may receive dividends from the donated tokens.
Near-consensus is required among those that vote each round, but there's no requirement of quorum.
<?xml version='1.0' encoding='UTF-8'?> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<include>myImage</include> | |
</head> | |
<body> | |
<myImage> | |
<base>..</base> | |
</myImage> | |
</body> |
<p>Hello, World!</p> |
<component name="ProjectRunConfigurationManager"> | |
<configuration default="false" name="Grunt" type="NodeJSConfigurationType" factoryName="Node.js" path-to-node="C:/Program Files/nodejs/node" path-to-js-file="$USER_HOME$/AppData/Roaming/npm/node_modules/grunt-cli/bin/grunt" application-parameters="--stack" working-dir="$PROJECT_DIR$"> | |
<RunnerSettings RunnerId="NodeJS.debug" /> | |
<RunnerSettings RunnerId="NodeJS.run" /> | |
<ConfigurationWrapper RunnerId="NodeJS.debug" /> | |
<ConfigurationWrapper RunnerId="NodeJS.run" /> | |
<method /> | |
</configuration> | |
</component> |
<?xml version='1.0' encoding='UTF-8'?> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script> | |
<script src="modest-preview.js"></script> | |
<include>lorem</include> | |
</head> | |
<body> | |
<lorem/> | |
</body> |
<?xml version='1.0' encoding='UTF-8'?> | |
<html xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<include>lorem</include> | |
</head> | |
<body> | |
<lorem/> | |
</body> | |
</html> |
var testFiles = []; | |
var files = this.data.files2; | |
if (grunt.utils._.isString(files)) { | |
files = [files]; | |
} | |
else{ | |
files = grunt.utils._.flatten(files); | |
} |