Skip to content

Instantly share code, notes, and snippets.

@vtmx
vtmx / dna.sh
Last active June 22, 2024 19:10
dna.sh
#!/usr/bin/env bash
nucleos=(A C T G)
print_example() {
echo ' ex: ./dna.sh ACTG'
}
main() {
local argv
@vtmx
vtmx / style-term
Last active January 10, 2024 23:12
tgl
/* Reference */
/* https://raw.githubusercontent.com/samme/base16-styles/master/css-variables/base16-onedark.css */
/* Print */
/* https://i.imgur.com/3Talr9G.png */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@500&display=swap');
:root {
--black : #1d2127;
--red : #353b45;
@vtmx
vtmx / style-codeberg
Last active January 10, 2024 23:12
tgl
/* Reference */
/* https://codeberg.org */
/* Print */
/* https://i.imgur.com/LaGwJmk.png */
:root {
--color-body: #1d262f;
--color-text: #d2e0f0;
--color-primary: #fb923c;
--color-secondary: #242d38;
@vtmx
vtmx / gian-divider.sh
Last active October 3, 2023 02:38
gian-divider
#!/usr/bin/env bash
# Nome do arquivo a ser dividido
file="./arq.csv"
# Recebe total de linhas
file_lines=$(wc -l < $file)
# Divisor
divider=10
@vtmx
vtmx / sh
Created March 30, 2023 00:42
convert-imgs-to-txt.sh
#!/usr/bin/env bash
set -o errexit
set -o pipefail
set -o nounset
if ! kdialog -v > /dev/null; then
exit_error "Command not exist: kdialog"
fi
@vtmx
vtmx / onedark.theme
Last active December 7, 2021 01:04
btop-theme-onedark
# Theme: OneDark
# By: Vitor Melo
# Main bg
theme[main_bg]="#282c34"
# Main text color
theme[main_fg]="#abb2bf"
# Title color for boxes
@vtmx
vtmx / settings.json
Last active June 21, 2020 21:32
My VS Code settings
{
// Editor
"editor.autoClosingBrackets": "always",
"editor.autoIndent": true,
"editor.detectIndentation": false,
"editor.formatOnPaste": false,
"editor.formatOnSave": false,
"editor.glyphMargin": false,
"editor.insertSpaces": true,
"editor.minimap.enabled": false,
@vtmx
vtmx / Keypirinha.ini
Created June 21, 2020 16:59
My theme for Keypirinha - https://keypirinha.com
[app]
launch_at_startup = yes
hotkey_run = Alt+Space
[gui]
theme = vitormelo
max_height = 8
max_results = 30
[theme/vitormelo]
@vtmx
vtmx / calc.js
Created July 13, 2019 05:53
Correção 17C12
class CalcController {
constructor() {
this._operation = []
this._locale = 'pt-BR'
this._displayCalcEl = document.querySelector('#display')
this._dateEl = document.querySelector('#data')
this._timeEl = document.querySelector('#hora')
this.initialize()
this.initButtonsEvents()
@vtmx
vtmx / calc.js
Created July 12, 2019 04:12
Calc
class CalcController {
constructor() {
this._operation = []
this._locale = 'pt-BR'
this._displayCalcEl = document.querySelector('#display')
this._dateEl = document.querySelector('#data')
this._timeEl = document.querySelector('#hora')
this.initialize()
this.initButtonsEvents()