Skip to content

Instantly share code, notes, and snippets.

View fabiofdsantos's full-sized avatar

Fábio Santos fabiofdsantos

View GitHub Profile
@fabiofdsantos
fabiofdsantos / YTD Strava Metrics
Last active June 2, 2024 00:10
YTD Strava Metrics
Running 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h
Swimming 0.00 km ░░░░░░░░░░░░░░░░░░░ 0.00/h
Cycling 343.03 km ███████████████████ 18.46/h
Last month 156.12 km 23 achievements 8:18h
@fabiofdsantos
fabiofdsantos / 📊 Weekly development breakdown
Last active October 29, 2020 00:15
Weekly development breakdown
Vue.js 11 hrs 3 mins █████████▎░░░░░░░░░░░ 44.1%
TypeScript 5 hrs 50 mins ████▉░░░░░░░░░░░░░░░░ 23.3%
PHP 5 hrs 42 mins ████▊░░░░░░░░░░░░░░░░ 22.8%
JSON 48 mins ▋░░░░░░░░░░░░░░░░░░░░ 3.3%
JavaScript 25 mins ▎░░░░░░░░░░░░░░░░░░░░ 1.7%
@fabiofdsantos
fabiofdsantos / vee-validate-custom-error.ts
Created May 27, 2020 15:58
vee-validate: set custom error to validation provider #Vue.js #TypeScript
setError(msg: string): void {
const provider = this.$refs.provider as InstanceType<
typeof ValidationProvider
>
provider.applyResult({
errors: [msg],
failedRules: {},
})
},
@fabiofdsantos
fabiofdsantos / nginx_nuxtjs.conf
Last active September 23, 2021 22:35
Nginx config for NuxtJS with dynamic routes
server {
listen 80;
server_name my_app.com;
index index.html index.htm;
charset utf-8;
access_log off;
error_log /dev/null;