- p - 10pt
- h1 - 16pt
- h2 - 14pt
- h3 - 12pt
- h4 - 10pt
- h5 - 8pt
This file contains 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
# Install dependences without the dev-only | |
npm install --omit=dev | |
composer install --no-dev -o | |
# Cache all the Laravel and Composer entities | |
php artisan route:cache | |
php artisan optimize | |
php artisan config:cache | |
composer dump-autoload --optimize |
This file contains 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
const sortTableByColumn = (tableSelector, columnIndex) => { | |
const rows = document.querySelector(tableSelector) | |
.querySelectorAll(':scope > tbody > tr') | |
const getCellTextByPosition = row => { | |
const cell = row.querySelector(`:scope > *:nth-child(${columnIndex})`) | |
return cell == null ? '' : cell.innerText | |
} |
This file contains 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
# If I already have Python on WSL, do I need to install it also on Windows to use in applications and Powershell? No: | |
function WslPython { wsl -e python3 } | |
New-Alias -Force -Name python -Value WslPython | |
# So I'm able to run Python in Windows by: python --version |
This file contains 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
name: appname | |
networks: | |
internal: | |
database: | |
services: | |
nginx: | |
build: | |
context: . |
This file contains 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
server { | |
listen 0.0.0.0:80; | |
index index.php index.html; | |
root /app/public; | |
location / { | |
try_files $uri $uri/ /index.php?$query_string; | |
} | |
location ~ \.php$ { |
This file contains 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 | |
# FileName should be "call", without extension. A calling in cli like "php call google.com" | |
enum Color: string | |
{ | |
case Black = "\033[30m"; | |
case Red = "\033[31m"; | |
case Green = "\033[32m"; | |
case Orange = "\033[33m"; |
This file contains 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
const Ajax = (parameters) => ({ | |
to: parameters.to ?? null, | |
method: parameters.method ?? 'GET', | |
data: parameters.data ?? null, | |
callback: parameters.callback ?? null, | |
callbackData: parameters.callbackData ?? null, | |
send: function () { | |
const xhr = new XMLHttpRequest() |
NewerOlder