This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ====== here lies vim-plug stuff ======= | |
call plug#begin('~/.vim/plugged') | |
Plug 'neoclide/coc.nvim', {'branch': 'release'} | |
Plug 'tpope/vim-fugitive' | |
Plug 'daskol/nvim-bnf', { 'do': 'go install ./cmd/nvim-bnf' } | |
Plug 'dracula/vim', {'as': 'dracula'} | |
Plug 'rust-lang/rust.vim' | |
Plug 'pangloss/vim-javascript' | |
Plug 'github/copilot.vim' | |
Plug 'preservim/nerdtree' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
#include <stdio.h> | |
#define STR(x) #x | |
typedef struct | |
{ | |
// === funny little waste of memory due to alignment (or lack thereof) === | |
// my CPU can only address bytes in multiples of four | |
// using a non-multiple of 4 number of bytes for the "name" field makes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/.config/nvim/plugins.vim | |
let mapleader = "-" | |
set noswapfile | |
set autoindent | |
set smartindent | |
set splitbelow " absolutely | |
set splitright " blessed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
host='localhost' | |
port=8080 | |
SOCKET_HOST=$host SOCKET_PORT=$port browser-sync start --server --files "./" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"explorer.confirmDragAndDrop": false, | |
"explorer.confirmDelete": false, | |
"workbench.iconTheme": "vscode-icons", | |
"workbench.tree.indent": 16, | |
"vsicons.dontShowNewVersionMessage": true, | |
"files.eol": "\n", | |
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}${separator}${appName}", | |
"window.menuBarVisibility": "default", | |
"workbench.sideBar.location": "right", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo 'System is' $OSTYPE | |
# You should install the following packages before running this script (Debian/Ubuntu names here) | |
# sudo apt install -y git build-essential cmake python3-dev vim tmux | |
# Also, installing vim-gtk is a good hacky solution to avoid errors where YouCompleteMe says Python is not supported by vim. | |
echo 'Installing some stuff which may or may not be essential...' | |
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Begin Vundle stuff | |
set nocompatible | |
filetype off | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
Plugin 'VundleVim/Vundle.vim' | |
" Put plugins here | |
Plugin 'Valloric/YouCompleteMe' | |
Plugin 'scrooloose/nerdtree' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Blessed C-a instead of C-b | |
unbind C-b | |
set -g prefix C-a | |
bind C-a send-prefix | |
# press "prefix, r" to reload config | |
bind r source-file ~/.tmux.conf | |
# press alt-c to create window | |
bind -n M-c new-window |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:: Apaga residuos de montagem/linkagem anterior | |
:: Uso: C:\>clean | |
:: Cuidado para nao executar dentro da pasta C:\ferramentas e apagar os proprios montador e linker | |
@echo off | |
del *.EXE | |
del *.LST | |
del *.MAP | |
del *.OBJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = g++ | |
CFLAGS = -std=c++11 -Wextra | |
LDFLAGS= -lsfml-graphics -lsfml-window -lsfml-system | |
EXEC = executable | |
SOURCES = $(wildcard *.cpp) | |
OBJECTS = $(SOURCES:.cpp=.o) | |
$(EXEC): $(OBJECTS) | |
$(CC) $(OBJECTS) -o $(EXEC) $(LDFLAGS) |
NewerOlder