Skip to content

Instantly share code, notes, and snippets.

View GiorgioRegni's full-sized avatar

Giorgio Regni GiorgioRegni

View GitHub Profile
@GiorgioRegni
GiorgioRegni / policy.md
Last active February 11, 2017 21:32
Privacy Policy

This Application does not collect sensitive user information like email, name or phone number.

The application asks for phone state permission only because it is required to be able to PAUSE the app when receiving a phone call and resume when the phone call is over.

Again no sensitive user information is collected, transfered or shared in any way.

For more information please contact [email protected]

Best,

@GiorgioRegni
GiorgioRegni / Zenko_42_Hackathon_Ballot.sol
Last active August 18, 2017 18:49
Zenko_42_Hackathon_Ballot smart contract
pragma solidity ^0.4.15;
contract Zenko_42_Hackathon_Ballot {
uint8 constant VOTES_PER_VOTER = 3;
bool ballotClosed;
struct Team {
uint id;
int votes;
@GiorgioRegni
GiorgioRegni / web3.js
Created August 17, 2017 19:03
compiled web3 contract
var browser_untitled_sol_zenko_42_hackathon_ballotContract = web3.eth.contract([{"constant":false,"inputs":[],"name":"getSecond","outputs":[{"name":"_winner","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getThird","outputs":[{"name":"_winner","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"name","type":"string"},{"name":"voter","type":"address"}],"name":"registerVoter","outputs":[{"name":"_reply","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"teamName","type":"string"}],"name":"voteForTeam","outputs":[{"name":"_msg","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[],"name":"getWinner","outputs":[{"name":"_winner","type":"string"}],"payable":false,"type":"function"},{"constant":false,"inputs":[{"name":"n","type":"string"},{"name":"a","type":"address"}],"name":"registerTeam","outputs":[],"payable":false,"type":"function"},{"constant":false,"inputs":[{"
0x5bad81a09ab30fd11146f59c41441c8c7ffd7bd4
<!--calculator start-->
<style>
.noUi-tooltip,
.noUi-value {
text-align: center;
white-space: nowrap
}
.noUi-target,
.noUi-target * {