Skip to content

Instantly share code, notes, and snippets.

View JavoEscobar's full-sized avatar

Javier Escobar JavoEscobar

View GitHub Profile
@JavoEscobar
JavoEscobar / App.vue
Created June 11, 2022 23:12
Pokedex sencillo en VueJS para aprender a usar directivas básicas del framework
<template>
<!-- CASILLA DE BUSQUEDA -->
<!-- La directiva v-model de VueJS permite enlazar el valor de un
elemento HTML a la variable asociada -->
<input v-model="pokemonName" type="text" placeholder="Buscar Pokemon..."/>
<!-- LISTADO DE POKEMONS -->
<ul>
@JavoEscobar
JavoEscobar / ExchangeRate.php
Last active February 4, 2021 23:24
Model: ExchangeRate
<?php
namespace App\Models;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Database\Eloquent\SoftDeletes;
class ExchangeRate extends Model
{
// We override the constructor to set if given the default 'from'
@JavoEscobar
JavoEscobar / FetchLatestExchangeRates.php
Last active February 5, 2021 00:48
Command: FetchLatestExchangeRates
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use App\Models\ExchangeRate;
use Carbon\Carbon;
class FetchLatestExchangeRates extends Command
{
@JavoEscobar
JavoEscobar / create_exchange_rates_table.php
Created February 4, 2021 01:10
Migration: CreateExchangeRatesTable
<?php
use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;
class CreateExchangeRatesTable extends Migration
{
/**
* Run the migrations.