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
### Keybase proof | |
I hereby claim: | |
* I am juanrmv on github. | |
* I am juanrmv (https://keybase.io/juanrmv) on keybase. | |
* I have a public key ASDr64TzambRE3Z4vhLZ-unUzE0gNssIUvWYQcz3M1dBaAo | |
To claim this, I am signing this object: |
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
pragma solidity ^0.4.11; | |
/// @title Jafra's Pyramid scheme game. | |
contract Jafra { | |
struct Stone { | |
address self; | |
address parent; | |
uint numChilds; | |
uint256 earnedEth; |
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
Solidity lets you program on Ethereum, a blockchain-based virtual machine that allows the creation and execution of smart contracts, without needing centralized or trusted parties. | |
Solidity is a statically typed, contract programming language that has similarities to Javascript and C. Like objects in OOP, each contract contains state variables, functions, and common data types. Contract-specific features include modifier (guard) clauses, event notifiers for listeners, and custom global variables. | |
Some Ethereum contract examples include crowdfunding, voting, and blind auctions. | |
As Solidity and Ethereum are under active development, experimental or beta features are explicitly marked, and subject to change. Pull requests welcome. | |
// First, a simple Bank contract | |
// Allows deposits, withdrawals, and balance checks | |
// simple_bank.sol (note .sol extension) | |
/* **** START EXAMPLE **** */ |
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
--- Docker Instalation Ubuntu --- | |
sudo apt-get update | |
wget -qO- https://get.docker.com/ | sh | |
docker -v | |
sudo nano /etc/default/docker | |
-- no recomendable en prod | |
#DOCKER_OPTS="-H tcp://127.0.0.1:2375 --dns 8.8.8.8 --dns 8.8.4.4" | |
DOCKER_OPTS="-H tcp://127.0.0.1:2375" | |
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
{'agente_usuario_email': 'karim@appto.co', 'last_name': 'Venegas', 'usuario_agente_recomendaciones': 0, 'usuario_agente_id': 2, 'usuario_id': 1, 'usuario_agente_usuario_email': u'karim@appto.co', 'usuario_agente_usuario_first_name': u'Karim', 'agente_id': 2, 'usuario_agente_usuario_id': 9, 'first_name': u'Karim', 'usuario_telefono_contacto': u'3142407481', 'agente_telefono_contacto': u'3173004762', 'usuario_agente_telefono_contacto': u'3173004762', 'filtros': u'{"tipo_inmueble":1,"habitaciones_min":1,"banos_min":2,"garajes_min":1}', 'id': 60, 'usuario_agente_usuario_last_name': u'Venegas', 'email': u'karim@appto.co', 'agente_recomendaciones': 0, 'username': u'karim@appto.co', 'agente_usuario_last_name': u'Venegas', 'agente_puntaje_appto': 7, 'usuario_agente_puntaje_appto': 7, 'usuario_agente_fotografia': 'https://s3.amazonaws.com/cdn-main.appto.co/photos/20150122163005987855.png', 'agente_usuario_id': 9, 'usuario_usuario_email': u'juan.martin@juanrmv.com', 'estado': 0, 'usuario_agente_usuario_username': u'kar |
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
docker rm $(docker ps -a -q) | |
docker rm `docker ps -a | grep Exited | awk '{print $1 }'` | |
docker rmi `docker images -aq` | |
docker build -t auxosas/project . | |
docker run -d -p 80:80 -p 443:443 auxosas/project |