Skip to content

Instantly share code, notes, and snippets.

View pekka's full-sized avatar

Pekka Gaiser pekka

View GitHub Profile
@pekka
pekka / autonomo-cuotas.md
Created October 20, 2025 08:25
autonomo-cuotas.md

On the proposed new autónomo cuotas.

However high they end up being, do not forget that they are tax deductible.

That means every time the social security payment becomes bigger, your tax bill becomes a little smaller.

This is why the true net burden of your Seguridad Social cuota on your purse is smaller than the number you see.

The more you earn, the more pronounced this effect is.

Meta Stack Overflow contributions I am proud of

Feature ideas to try and remedy the often hostile community culture, especially towards newbies:

FAQs to help users understand why a rule or mechanism works a certain way:

Fuente de datos: Toponimia de Lanzarote
https://toplanzarote.ulpgc.es/listado.php?tipo=3
Alegranza
Casa del Veril, La
Arrecife
@pekka
pekka / gist:676f3b77802942267f981651b505dc25
Created November 14, 2023 16:00
Listado de poblaciones de Lanzarote
Fuente de datos: Toponimia de Lanzarote
https://toplanzarote.ulpgc.es/listado.php?tipo=3
Alegranza
Casa del Veril, La
Arrecife
Alegranza
Casa del Veril, La
Cerca de las Pencas
Cerca del Millo
Cerca el Jablillo
Cerca el Mato
Cerca Vieja
Corral del Veril
Corral Grande
@pekka
pekka / TaskObserver.php
Last active March 21, 2025 16:14
Addition to Laravel Daily's mini tutorial "Filament & Laravel: Delete Unused Files if Model is Updated/Deleted" - a "saved()" method that can handle the image field set to multiple
public function saved(Task $task): void
{
if ($task->isDirty('attachment')) {
$originalFieldContents = $task->getOriginal('attachment');
$newFieldContents = $task->attachment;
# We attempt to JSON decode the field. If it is an array, this is an indication we have ->multiple() activated
$originalFieldContentsDecoded = json_decode($task->getOriginal('attachment'));
@pekka
pekka / scaleToCoverX.js
Created November 23, 2017 21:32
Fancybox "scale to cover 100% width" function
// Scale image to cover X
// ===========================================
scaleToCoverX : function( x, y, duration ) {
var self = this;
var current = self.current;
var $what = current.$content;