Skip to content

Instantly share code, notes, and snippets.

View iksaku's full-sized avatar
🎯
Focusing

Jorge González iksaku

🎯
Focusing
View GitHub Profile
@iksaku
iksaku / ge-its-rankings.md
Last active May 31, 2020 02:11
Tabla de puntuación de Juegos de GE-ITS

Pinturillo v1 (Logos Computacionales)

Posición Nombre Puntos
1 Jorge González 33
2 Christopher Peña 28
3 Jalil Romero 4 ½
4 Rodolfo Navarro 1
5 Rolando Balboa 1
@iksaku
iksaku / Searchable.php
Last active April 4, 2023 01:36
Simple trait that adds basic search funcionality to Laravel Models.
<?php
namespace App\Traits;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Support\Arr;
trait Searchable
{
/**
@iksaku
iksaku / Sortable.php
Created September 19, 2020 18:31
A helper trait that provides basic PHP compatibility with @livewire's Sortable package
<?php
trait Sortable
{
/**
* This function receives a $newOrder array parameter, which contains the order in which
* we should sort our items after being dragged in the UI. The format of the $newOrder is:
*
* [
* newIndex => [
@iksaku
iksaku / code-not-prose.mjs
Created September 1, 2022 00:55
Apply 'not-prose' class to pre tags rendered with Astro + Shiki
import { visit } from 'unist-util-visit'
export default () => (tree, file) => {
visit(tree, 'element', (node) => {
if (! ('tagName' in node) || node.tagName !== 'pre') {
return;
}
node.properties.className.push('not-prose')
})

ActualBudget @ Fly.io

Configuration file for deploying ActualBudget Server to Fly.io.

Set up

  1. Create a new volume called actualbudget_data in the same region you want to deploy your application.

That's it! Deploy now :)

FROM alpine AS base
CMD ["echo", "'Base stage'"]
#############################################
FROM base AS development
CMD ["echo", "'Development stage'"]