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
#include <bits/stdc++.h> | |
#include <iostream> | |
using namespace std; | |
int main(){ | |
int n, m, c; | |
cin >> n >> m >> c; | |
// Cars[0] will be n position | |
// Cars[1] will be m position |
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
clear | |
/////////////////////////////////////////////////////// | |
// GaussJordan.sce | |
// | |
// Este programa calcula el resultado de | |
// un sistema de ecuaciones con el método | |
// de Gauss Jorden | |
// | |
// Ernesto Garcia -- A00820783 | |
// Santiago Díaz -- A01252554 |
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.5.11; | |
contract Calculadora { | |
// Variables | |
uint256 public res; | |
uint256 limit; // Limit será el máximo entero que puede representar la calculadora | |
// Constructor | |
constructor() public { | |
res = 0; |
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.5.11; | |
contract Aseguradora { | |
// Variables | |
address public aseguradora; | |
address public gobierno; | |
uint256 public multiplicador; | |
struct Seguro { | |
uint cantidad; |
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.5.11; | |
contract BBVACoin { | |
// Variables | |
string public name; | |
string public symbol; | |
uint256 public totalSupply; | |
mapping(address => uint256) public balanceOf; | |
mapping(address => mapping(address => uint256)) public allowance; | |
address public owner; |
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
// boogle | |
// Ernesto García A00820783 | |
// Created at Mon Nov 18 01:04:02 CST 2019 | |
#include<iostream> | |
#include<vector> | |
#include<string> | |
using namespace std; | |
int BFS(int i, int j, string word, int positionInWord, vector<vector<bool> > visited, vector <vector<char> > &grid){ |
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
// utils/create-pair.js | |
const StellarSdk = require("stellar-sdk"); | |
const fs = require("fs"); | |
const path = require("path"); | |
const fetch = require("node-fetch"); | |
const pair = StellarSdk.Keypair.random(); | |
const createTestAccount = async () => { | |
// Creamos nuestro par de llaves |
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
// utils/check-balance.js | |
const StellarSdk = require("stellar-sdk"); | |
const dotenv = require("dotenv"); | |
dotenv.config(); | |
const server = new StellarSdk.Server("https://horizon-testnet.stellar.org"); | |
const checkBalance = async () => { | |
// Cargamos la cuenta a través del sdk de Stellar | |
const account = await server.loadAccount(process.env.PUBLIC_KEY); |
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
// utils/check-recipient-balance.js | |
const StellarSdk = require("stellar-sdk"); | |
const server = new StellarSdk.Server("https://horizon-testnet.stellar.org"); | |
const checkRecipientBalance = async () => { | |
// Cargamos la cuenta a través del sdk de Stellar | |
const account = await server.loadAccount( | |
"GDC75JQ6SOC3EJU5FL2IO6JL5Y2HUEPZQBVAM2TESCLG5NMYPSX6JJRP" | |
); |
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
// utils/send-transaction.js | |
const StellarSdk = require("stellar-sdk"); | |
const server = new StellarSdk.Server("https://horizon-testnet.stellar.org"); | |
const dotenv = require("dotenv"); | |
dotenv.config(); | |
const sourceKeys = StellarSdk.Keypair.fromSecret(process.env.SECRET); | |
const destination = "GDC75JQ6SOC3EJU5FL2IO6JL5Y2HUEPZQBVAM2TESCLG5NMYPSX6JJRP"; |