This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% DIN-A1 year calendar | |
% Author: Robert Krause | |
% Modified by: Sérgio Jardim (@sjardim) | |
% License : Creative Commons attribution license | |
% Submitted to TeXample.net on 13 July 2012 | |
\documentclass[landscape,a1paper,21pt]{scrartcl} | |
\usepackage[utf8]{inputenc} | |
\usepackage[T1]{fontenc} | |
\usepackage{tikz} % Use the calendar.sty style |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This script creates a "heatmap" table on Indesign: | |
- Checks for existing swatches named "HeatMapTableColor1", "HeatMapTableColor2", etc. | |
- Shows an error if no swatches are found with this naming pattern | |
- Shows an error if there aren't enough swatches for the table's columns | |
- Applies the colors in order (Color1 to first column, Color2 to second column, etc.) | |
- Uses tint values based on the cell's percentage value (from 100% to 0%) | |
- Maintains the text color logic (white text on dark backgrounds) | |
- If you don't want for the script to add a % after the values, if not present, comment the "// Add percentage sign if not present" block. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# clean_icml.py | |
import sys | |
import re | |
import os | |
from pathlib import Path | |
def load_style_mappings(): | |
"""Load style mappings from the configuration file""" | |
try: | |
# Get the directory of the current script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Filament\Resources; | |
use App\Filament\Resources\UsersResource\Pages; | |
use App\Filament\Resources\UsersResource\RelationManagers; | |
use App\Models\Company; | |
use App\Models\Folder; | |
use App\Models\User; | |
use App\Models\Users; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<head> | |
<title>Simulated typing</title> | |
</head> | |
<body> | |
<input type="text" id="transcribe-searchbox" placeholder="Escribe Aquí"> | |
<input type="button" id="transcribe-button" value="Transcibir a Andaluz"> | |
</body> | |
<script> | |
// Quotes to simulate typing, then deletion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
declare(strict_types=1); | |
namespace App\Forms\Components; | |
use Filament\Forms\Components\Concerns\HasAffixes; | |
use Filament\Forms\Components\Field; | |
class Money extends Field |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Adapted from https://filamentphp.com/tricks/aggregate-data-in-table-footer | |
// On your Resource list page | |
protected function getTableContentFooter(): View | |
{ | |
return view('tables.footer', [ | |
'calc_columns' => [ | |
[ | |
'column' => 'monthly_fee_in_cents', | |
'operation' => 'sum', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Salvar num arquivo ~/encode.sh, conceder direito de execução e | |
# executar desta forma (adaptar nomes de diretórios e arquivos para seu caso): | |
# $ ~/encode.sh ~/Video/bigFile.mp4 ~/Video/smallFile.mp4 | |
ffmpeg -i "$1" -vcodec h264 -acodec aac "$2" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//https://serversideup.net/advanced-meilisearch-queries-with-laravel-scout/ | |
$customers = Customer::search('Dan') | |
->query( function( $query ){ | |
$query->with('invoices'); | |
} )->get(); |
NewerOlder