#Mensagem Compatibilidade IE
Simples funcionalidade para exibir mensagem bloqueante quando o navegador é o IE.
| /** | |
| * `interface {struct}` and `interface {*struct}` manipulation in Golang using reflect. | |
| * | |
| * Use case: To instantiate a struct using reflect and use libraries like JSON.Decode at runtime. | |
| */ | |
| package main | |
| import "reflect" |
| /** | |
| * https://csgoempire.com betting strategy (Roulette) | |
| * | |
| * Bet on the bonus (dice) after he has gone for some period without showing up. | |
| * | |
| * Adjust the configs and paste the script into the browser console (F12) (https://balsamiq.com/support/faqs/browserconsole/) | |
| * | |
| * ATTENTION! No profit guarantee. | |
| * | |
| * @author nidorx <https://github.com/nidorx> |
| /** | |
| * Baseado na Fórmula Mágica de Joel Greenblatt, adiciona (opcionalmente) rank de DIVIDENDOS | |
| * | |
| * 1 - Abrir o navegador (Chrome) no link https://fundamentus.com.br/resultado.php | |
| * 2 - Pressionar F12 para abrir o Console | |
| * 3 - Colar esse script completo e pressionar Enter | |
| * | |
| * Referências: | |
| * Clube do Valor: https://youtu.be/4Shv3OMaLVA | |
| * Diogo Investe: https://youtu.be/PEWfCORYGyA |
| /** | |
| * Converter ícones de SVG para PNG (node.js + Inkscape + pngquant) | |
| * | |
| * Útil para geração de ícones para aplicações Mobile com diferents densidades. | |
| * | |
| * Se o ícone já existir no diretório de saída, não será processado novamente | |
| * | |
| * https://inkscape.org/en/doc/inkscape-man.html | |
| * https://mijingo.com/blog/exporting-svg-from-the-command-line-with-inkscape | |
| * |
| package com.github.nidorx; | |
| import java.util.Map; | |
| import java.util.HashMap; | |
| public final class StringUtil { | |
| private static final Map<String, String> DIACRITCS = new HashMap<>(); | |
| static { |
Passos para configurar um projeto PHP com Nginx no Ubuntu on Windows (WSL), utilizando uma conexão com o PostgreSQL instalado no Windows.
Não é preciso o nginx para executar um servidor PHP, basta utilizar o servidor interno do PHP (possui algumas limitações)
php -S 0.0.0.0:8000 -t ./src ./src/router.php &
| <?xml version="1.0" encoding="utf-8"?> | |
| <key name="Software"> | |
| <key name="ConEmu"> | |
| <key name=".Vanilla" modified="2017-03-14 23:30:30" build="170305"> | |
| <value name="StartType" type="hex" data="02"/> | |
| <value name="CmdLine" type="string" data=""/> | |
| <value name="StartTasksFile" type="string" data=""/> | |
| <value name="StartTasksName" type="string" data="{Bash::bash}"/> | |
| <value name="StartFarFolders" type="hex" data="00"/> | |
| <value name="StartFarEditors" type="hex" data="00"/> |
Migração de banco de dados (flywaydb) baseada em um arquivo sql compactado (.zip)
Permite compactar scripts extensos e a execução do mesmo pelo https://flywaydb.org.
Na configuração do flyway (https://flywaydb.org/documentation/maven/migrate), definir o resolver
resolvers = com.github.nidorx.migration.ZipSqlMigrationResolver