This file contains 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
brew update | |
brew install nodejs | |
node --version | |
npm --version | |
mkdir dapp_votos_ethereum/Tutorial | |
cd dapp_votos_ethereum/Tutorial | |
npm install ganache-cli [email protected] solc |
This file contains 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
// Seguro de vida de viajero | |
// 1.- Comprar un seguro y asignar a un beneficiario | |
// 2.- El "gobierno" valida si falleció y se cobra el seguro | |
// 3.- La "agencia" declara si estaba viajando | |
// 4.- Se paga al beneficiario 2x |
This file contains 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
// Aplicacion de citas descentralizadas | |
// 1. Puedes comprar "liken" | |
// 2. Le asignas "liken" a las cuentas que te gustan | |
// 3. Determinar un tiempo | |
// 4. funcion que le pasas la direccion y te dice quien le dio mas likes | |
// 5. Obtener info solo si hay match | |
//block.number |
This file contains 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.24; | |
// Agro Market Place | |
// Este es un contrato para abrir subastas de productos agropecuarios | |
// basados en Tokens de compra. | |
// ¿Cómo funciona? | |
// Existen 3 vistas de usuario: |
This file contains 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
// promedioTempMayor | |
// Ernesto García A00820783 | |
// Creado en Fri Nov 2 11:07:36 CST 2018 | |
#include<iostream> | |
using namespace std; | |
void readMatrix(int **matrix, int rows, int cols) { | |
for (int i = 0; i < rows; i++) { | |
for(int j = 0; j < cols; j++) { |
This file contains 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
// loteria | |
// Ernesto García A00820783 | |
// Marco Brown | |
// Creado en Fri Nov 9 14:02:20 CST 2018 | |
#include<iostream> | |
#include<iomanip> | |
#include<vector> | |
#include<map> | |
using namespace std; |
This file contains 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
// eliminaPrimUltPal | |
// Ernesto García A00820783 | |
// Creado en Tue Nov 13 11:06:23 CST 2018 | |
#include<iostream> | |
#include<string> | |
using namespace std; | |
int main() { | |
// Declarar variables |
This file contains 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
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/searstienda/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="robbyrussell" |
This file contains 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
function cpp() { | |
mkdir $1; | |
cd $1; | |
touch $1.cpp; | |
now=$(date); | |
echo "// $1 | |
// Ernesto García A00820783 | |
// Creado en $now | |
#include<iostream> | |
using namespace std; |
This file contains 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
// Seguro de vida de viajero | |
// 1.- Comprar un seguro y asignar a un beneficiario | |
// 2.- El "gobierno" valida si falleció | |
// 3.- La "agencia" declara si estaba viajando para validar el seguro | |
// 4.- Se paga al beneficiario el doble del costo del seguro |
OlderNewer