Skip to content

Instantly share code, notes, and snippets.

View pablofullana's full-sized avatar
🎯
Focusing (trying to)

Pablo Fullana pablofullana

🎯
Focusing (trying to)
View GitHub Profile
Verify Github on Galxe. gid:vGaigcsncEswJa2ukb94Un

Keybase proof

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:


## 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.
@pablofullana
pablofullana / docker-compose.yml
Last active April 1, 2019 14:33
Docker | Ruby on Rails + PostgreSQL + Redis
version: '3'
services:
db:
image: postgres:latest
ports:
- "5432:5432"
redis:
image: redis:latest
ports:
- "6379:6379"
@pablofullana
pablofullana / generic-CONTRIBUTING.md
Last active June 8, 2023 15:35
Generic CONTRIBUTING.md file

How to contribute

Hello there. Looks like you are interested in contributing to , which is just great, so welcome!

We are open to any kind of contribution: code, documentation, bug-fixing (even just reports), feature-requests and anything else you may come up with.

Getting started

Roadmap

Verifying my Blockstack ID is secured with the address 1Ga9yVC6zrCxymNsAjAvagpseJyjZfttV8 https://explorer.blockstack.org/address/1Ga9yVC6zrCxymNsAjAvagpseJyjZfttV8
@pablofullana
pablofullana / lib-rules-index.js
Last active November 2, 2018 19:19
Solhint rules whitelisting
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) {
@pablofullana
pablofullana / frontend-voting.md
Created July 28, 2018 12:45
Altoros Protofire DApp Test - Frontend Voting

Altoros Protofire DApp Test

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

0xd894de705b1fA1548C8C7Ad1B827b32f6CA36475
@pablofullana
pablofullana / flatten_2.rb
Created June 25, 2017 22:38
Ruby Array#flatten implementation using Enumerable#reduce
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