See: https://www.rubyguides.com/2018/10/delegate-methods-in-ruby/
module Algolia
module Search
# Class Index
class Index
include CallType
extend Forwardable # available in ruby 2.2
#!/bin/bash | |
#Generated by JetBrains Toolbox 2.2.3.20090 at 2024-04-10T10:51:26.013119 | |
declare -a intellij_args=() | |
declare -- wait="" | |
for o in "$@"; do | |
if [[ "$o" = "--wait" || "$o" = "-w" ]]; then | |
wait="-W" | |
o="--wait" |
upstream puma { | |
server 127.0.0.1:3000; | |
} | |
server { | |
server_name yolo.com; | |
client_max_body_size 200m; | |
gzip on; | |
gzip_comp_level 4; | |
gzip_min_length 1000; |
<?php | |
namespace App\View\Components\Admin; | |
use Illuminate\Support\Facades\Cache; | |
use Illuminate\View\Component; | |
class GitDetails extends Component | |
{ | |
const REPO = 'julienbourdeau/julienbourdeau.com'; |
<!DOCTYPE html> | |
<html lang="en" class="no-js"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Unique page title - My Site</title> | |
<script type="module"> | |
document.documentElement.classList.remove('no-js'); |
laravel new secret-project | |
composer require laravel/jetstream | |
php artisan jetstream:install livewire --teams | |
composer require barryvdh/laravel-debugbar --dev |
#!/usr/local/bin/bash | |
# function e_header() { printf "\n${yellow}========== %s ==========${reset}\n" "$@" } | |
# function e_arrow() { printf "➜ $@\n" } | |
# TODO: Check if current branch is `master` | |
e_header "Rebuilding assets" | |
echo |
<?php | |
namespace App\Console\Commands\Dev; | |
use App\User; | |
use Illuminate\Console\Command; | |
use Illuminate\Support\Facades\DB; | |
use Illuminate\Support\Facades\Hash; | |
class CreateAdminUserCommand extends Command |
See: https://www.rubyguides.com/2018/10/delegate-methods-in-ruby/
module Algolia
module Search
# Class Index
class Index
include CallType
extend Forwardable # available in ruby 2.2
<?php | |
$finder = PhpCsFixer\Finder::create() | |
->in([ | |
__DIR__.'/app', | |
__DIR__.'/tests', | |
]) | |
; | |
$rulesToDisable = [ |
const mix = require('laravel-mix'); | |
const tailwindcss = require('tailwindcss'); | |
const rootPath = Mix.paths.root.bind(Mix.paths); | |
const tailwindPlugins = function(configFile, paths) { | |
const pluginList = [tailwindcss(configFile)]; | |
if (mix.inProduction()) { | |
pluginList.push(require('@fullhuman/postcss-purgecss')({ |