See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope> is optional
| package com.example; | |
| // Read: https://sourcemaking.com/design_patterns/object_pool | |
| public abstract class ObjectPool<T> { | |
| public static final int SIZE = 32; | |
| // private fields of the object pool | |
| private final Object[] pool = new Object[SIZE]; | |
| private final boolean[] lock = new boolean[SIZE]; |
| -- 86400000: `24 * 60 * 60 * 1000` | |
| -- 2458849.5: `julianday('2020-01-01')` | |
| SELECT CAST((JULIANDAY('now') - 2458849.5) * 86400000 AS INTEGER) << 22 | (RANDOM() & 0x3fffff); |
| #!/bin/bash | |
| # Converte um livro em formato PDF para o formato ePUB | |
| # Parametros | |
| LIVRO="meu-livro" | |
| TITULO="Meu Livro" | |
| # Converter o PDF para TEXTO | |
| pdftotext ${LIVRO}.pdf ${LIVRO}.txt |
| /* | |
| * MIT License | |
| * | |
| * Copyright (c) 2023 Fabio Lima | |
| * | |
| * Permission is hereby granted, free of charge, to any person obtaining a copy | |
| * of this software and associated documentation files (the "Software"), to deal | |
| * in the Software without restriction, including without limitation the rights | |
| * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| * copies of the Software, and to permit persons to whom the Software is |
| #!/bin/env python3 | |
| # @author: Fabio Lima | |
| # @created: 2022-02-10 | |
| base16 = '0123456789abcdef' | |
| base32 = '0123456789ABCDEFGHJKMNPQRSTVWXYZ' | |
| def encode(number, alphabet): | |
| text = '' | |
| radix = len(alphabet) |
| #!/bin/bash | |
| cat "${1}" | tr 'áàâãéèêẽíìîĩóòôõúùûũçÁÀÂÃÉÈÊẼÍÌÎĨÓÒÔÕÚÙÛŨ' 'aaaaeeeeiiiioooouuuucAAAAEEEEIIIIOOOOUUUU' |
| #!/bin/bash | |
| # Rename a list of files. | |
| # | |
| # author: Fabio Lima | |
| # date: 2014-06-19 | |
| # | |
| # HOW TO USE: | |
| # shell > batchrename LIST FORMAT | |
| # - LIST: a list of file to be removed. | |
| # - FORMAT: format for the files names. |
| #!/bin/bash | |
| COMANDO="" | |
| INICIO=0; | |
| FIM=0; | |
| INTERVALO=0; | |
| HOR=0; | |
| MIN=0; | |
| SEG=0; | |
| SUCESSO=0; |
| #!/bin/bash | |
| # Copia diretorios recurivamente assegurando | |
| # que seus arquivos nao serao repetidos | |
| # | |
| # MODO DE USAR: | |
| # shell > copiaunica DIRETORIO_ORIGEM DIRETORIO_DESTINO | |
| # | |
| N=0; | |
| TOTAL=0; |