Skip to content

Instantly share code, notes, and snippets.

View adevesa's full-sized avatar

Devesa Agustín adevesa

  • Argentina
View GitHub Profile
@adevesa
adevesa / exercise.php
Created August 8, 2021 21:11
Exercise Stair with Steps
<?php
class Tree {
/**
* @var Node[]
*/
public $nodes;
/**
* @var Node
@adevesa
adevesa / Kernel.php
Created July 8, 2021 02:12
Kernel.php
<?php
namespace App\Console;
use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;
class Kernel extends ConsoleKernel
{
/**
@adevesa
adevesa / AvaliableAppointmentCommand.php
Created July 8, 2021 02:09
AvaliableAppointmentCommand.php
<?php
namespace App\Console\Commands;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Http;
use Illuminate\Support\Str;
class AvaliableAppoinmentCommand extends Command
{
<?php
namespace App\Helpers;
use Illuminate\Support\Facades\Storage;
class DirectoriesFormatter
{
/** @var string */
private $root;
<?php
namespace App\Helpers\Entities;
class Directory
{
/** @var string */
public $title;
/** @var Directory[]|null */
public $children;
@adevesa
adevesa / web.php
Created December 2, 2020 02:45
Medium - Como desarrollar con Create React App y Laravel pt.3
<?php
Route::get('/hola', function (){
return response()->json(["prueba" => 'Aquí si pasó algo.']);
});
@adevesa
adevesa / web.php
Last active December 2, 2020 02:47
Medium - Como desarrollar con Create React App y Laravel pt.2
<?php
Route::get('/', function () {
return file_get_contents(public_path('/build/index.html'));
});
@adevesa
adevesa / App.jsx
Last active December 2, 2020 02:47
Medium - Como desarrollar con Create React App y Laravel
import React from 'react';
import './App.css';
function App() {
const [textoDePrueba, setTextoDePrueba] = React.useState('Aquí no pasó nada')
React.useEffect(() => prueba(), []);
const prueba = () => fetch('/hola')
.then(result => result.json())
@adevesa
adevesa / config.txt
Created June 12, 2020 22:54
Configuración de PHP Artisan para XDebug en PHPStorm
#PHP Artisan Server
host: localhost
port: 8000
document root: /public
use router script: server.php
interpreter options: -dxdebug.remote_enable=1 -dxdebug.remote_mode=req -dxdebug.remote_port=9000 -dxdebug.remote_host=127.0.0.1