Skip to content

Instantly share code, notes, and snippets.

View GuillermoFarias's full-sized avatar
🏖️
Working from home

Guillermo Farías GuillermoFarias

🏖️
Working from home
View GitHub Profile
@GuillermoFarias
GuillermoFarias / test.py
Created December 20, 2023 00:18
Toku test
def highest_revenue_item(data):
products = []
rows = data.split()
for row in rows:
row_data = row.split(',')
if len(row_data) != 2:
continue
@GuillermoFarias
GuillermoFarias / Dockerfile
Last active August 21, 2021 23:41
CI / CD
# build stage
FROM node:lts-alpine as build
WORKDIR /app
COPY package*.json ./
RUN npm install
COPY . .
ARG VERSION=1.0
ENV VUE_APP_TAG_VERSION ${VERSION}
RUN npm run build
@GuillermoFarias
GuillermoFarias / AuthServiceProvider.php
Last active January 23, 2024 15:11
Laravel 8 Custom Guard, login de usuario con API externa
<?php
namespace App\Providers;
use App\Providers\Sso\TokenGuard;
use App\Providers\Sso\TokenUserProvider;
use Illuminate\Foundation\Support\Providers\AuthServiceProvider as ServiceProvider;
use Illuminate\Support\Facades\Auth;
class AuthServiceProvider extends ServiceProvider