I hereby claim:
- I am pablofullana on github.
- I am pablofullana (https://keybase.io/pablofullana) on keybase.
- I have a public key ASCMXQ3P1LBQM21GtNiytaOJWQy6EmbnSOcA023Knxd8ago
To claim this, I am signing this object:
Verify Github on Galxe. gid:vGaigcsncEswJa2ukb94Un |
I hereby claim:
To claim this, I am signing this object:
## Goal
Create a DApp that allows people to vote on a (binary) proposal. Each ethereum address should be allowed to vote only once and the vote should cost 0.01 ETH.
- When a user opens the page, it should see the result so far (number of positive votes vs. number of negative votes).
- If the MetaMask account they are using hasn't voted yet, they should also see two buttons: one for voting "Yes" and one for "No". If they already voted, they should see their vote instead. Votes cannot be updated.
- Results should be updated in real-time: if someone else votes when I have the page open, I should see the new result.
version: '3' | |
services: | |
db: | |
image: postgres:latest | |
ports: | |
- "5432:5432" | |
redis: | |
image: redis:latest | |
ports: | |
- "6379:6379" |
Verifying my Blockstack ID is secured with the address 1Ga9yVC6zrCxymNsAjAvagpseJyjZfttV8 https://explorer.blockstack.org/address/1Ga9yVC6zrCxymNsAjAvagpseJyjZfttV8 |
const security = require('./security/index') | |
const naming = require('./naming/index') | |
const order = require('./order/index') | |
const align = require('./align/index') | |
const bestPractises = require('./best-practises/index') | |
const deprecations = require('./deprecations/index') | |
const miscellaneous = require('./miscellaneous/index') | |
const configObject = require('./../config') | |
module.exports = function checkers(reporter, configVals, inputSrc, fileName) { |
Create a DApp that allows people to vote on a (binary) proposal. Each ethereum address should be allowed to vote only once and the vote should cost 0.01 ETH.
When a user opens the page, it should see the result so far (number of positive votes vs. number of negative votes). If the MetaMask account they are using hasn't voted yet, they should also see two buttons: one for voting "Yes" and one
0xd894de705b1fA1548C8C7Ad1B827b32f6CA36475 |
require 'awesome_print' | |
class Array | |
def flatten_2 | |
reduce([]) do |acc, sub_a| | |
if sub_a.is_a?(Array) | |
acc + sub_a.flatten_2 | |
else | |
acc << sub_a | |
end |