Skip to content

Instantly share code, notes, and snippets.

View babasbot's full-sized avatar

Luis Alfredo Lorenzo babasbot

View GitHub Profile
This file has been truncated, but you can view the full file.
async function enviarScript(scriptText){
const lines = scriptText.split(/[\n\t]+/).map(line => line.trim()).filter(line => line);
main = document.querySelector("#main"),
textarea = main.querySelector(`div[contenteditable="true"]`)
if(!textarea) throw new Error("Não há uma conversa aberta")
for(const line of lines){
console.log(line)
@babasbot
babasbot / .tmux.conf
Last active November 9, 2022 16:43
tmux configs
# See: https://www.man7.org/linux/man-pages/man1/tmux.1.html
unbind C-b
set-option -g prefix C-a
set -g default-terminal "term-256color-italic"
set -g mouse on
set -g escape-time 10
set -g automatic-rename on
@babasbot
babasbot / .editorconfig
Created October 30, 2022 21:24
EditorConfig
root = true
[*]
charset = utf-8
end_of_line = lf
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
@babasbot
babasbot / init.vim
Last active October 30, 2022 21:40
Neovim dotfiles
call plug#begin()
Plug 'Mofiqul/dracula.nvim'
Plug 'dense-analysis/ale'
Plug 'editorconfig/editorconfig-vim'
Plug 'lewis6991/gitsigns.nvim'
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.0' }
### Keybase proof
I hereby claim:
* I am babasbot on github.
* I am babasbot (https://keybase.io/babasbot) on keybase.
* I have a public key ASAQ4sS23Bgc8xvuTiBB8bGoDd-kEaK0Gdj3jh-OsP2logo
To claim this, I am signing this object:
@babasbot
babasbot / sqr1.asm
Last active March 20, 2021 20:28
NES APU demo
.include "constants.inc"
.include "header.inc"
.segment "CODE"
.proc irq_handler
RTI
.endproc
.proc nmi_handler
RTI
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.