For example, you want to set 40% alpha transparence to #000000
(black color), you need to add 66
like this #66000000
.
Discover gists
<?php | |
# EXEMPLO DE USO: | |
$valor_extenso = Funcao::numeroPorExtenso(2450.20); | |
echo $valor_extenso; | |
# RETORNO: Dois mil e quatrocentos e cinquenta reais e vinte centavos | |
class Funcao | |
{ | |
public static function numeroPorExtenso( $valor = 0, $moeda = false, $bolPalavraFeminina = false ) |
<?php | |
class Debug extends TPage | |
{ | |
public function x($codigo = null) | |
{ | |
print("<pre>".print_r($codigo, true)."</pre>"); | |
exit; | |
} | |
} |
<?php | |
# PRIMEIRO, INSTALE VIA COMPOSER: shuchkin/simplexlsx | |
# DEPOIS FAÇA A REFERẼNCIA DA CLASSE CONTROLLER ONDE VOCÊ DESEJA USAR A BIBLIOTECA: | |
use Shuchkin\SimpleXLSX; | |
class ImportacaoExcel extends TPage | |
{ | |
Example of an automated script that does most of this: https://github.com/surpher/PactSwiftMockServer/blob/fb8148866bb05f49a0b1dcaae66c67bad1e7eca7/Support/build_rust_dependencies
curl https://sh.rustup.rs -sSf | sh
Run this whenever you want or put it in your startup folder | |
(Win+R and type shell:startup) | |
For all other users, one time easy way to do it, open Regedit. Then navigate to HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Shell Extensions\Approved or paste that in the address bar. Select the key with a bunch of random numbers and delete all the values inside of it. |
PlantUML is a descriptive language to generate a number of types of software diagrams, such as sequence, class, deployment and state diagrams, and many others. PlantUML does not generate very good-looking schema diagrams out of the box, but it supports themes and preprocessed macros. If you use themes and macros, you can not only use a simplified syntax, but also generate beautiful diagrams.
Here is an example of a PlantUML schema diagram, and we will build up the code to generate it.
To start, describe your schemas, tables and columns using this syntax as an example.
#!/usr/bin/env bash | |
# DPKG Post-Install Script to sign vmlinuz kernel images and EFI executable binaries for Secure Booting with custom certificates | |
# Required for full OpenCore Secure Boot (for example: you want to use Secure Boot in Windows 11 for Valorant, just like me!) | |
# | |
# Requirement: | |
# - You have followed this guide: https://github.com/perez987/OpenCore-and-UEFI-Secure-Boot | |
# - Custom ISK.key and ISK.pem in a folder of choice, I will just name it /path/to/securebootkeys as in this script | |
# - You are running Debian Linux, with `sbsigntool` installed (`sudo apt install sbsigntool --no-install-recommends -y`) | |
# - Have a brain |