Skip to content

Instantly share code, notes, and snippets.

View cauesmelo's full-sized avatar
:shipit:

Cauê Melo cauesmelo

:shipit:
View GitHub Profile
@cauesmelo
cauesmelo / git_alias.sh
Created March 26, 2025 02:31
Git aliases
git config --global alias.ac '!git add . && git commit -m'
git config --global alias.ck '!f() { \
branch=$(git branch -a | grep -v HEAD | sed "s/.* //" | fzf); \
git checkout "$branch"; \
}; f'
git config --global alias.rmb '!f() { \
branch=$(git branch | sed "s/^[*[:space:]]*//" | fzf); \
git branch -d "$branch"; \
@cauesmelo
cauesmelo / rm_branches.sh
Created March 26, 2025 02:24
Git interactive remove branches
git config --global alias.rmb '!f() { \
branch=$(git branch | sed "s/^[*[:space:]]*//" | fzf); \
git branch -d "$branch"; \
}; f'
@cauesmelo
cauesmelo / add_ck.sh
Last active March 26, 2025 01:49
Git interactive checkout
git config --global alias.ck '!f() { \
branch=$(git branch -a | grep -v HEAD | sed "s/.* //" | fzf); \
git checkout "$branch"; \
}; f'
{
// ====================
// Editor Settings
// ====================
"editor.minimap.enabled": false,
"editor.fontSize": 16,
"editor.fontLigatures": false,
"editor.suggestSelection": "first",
"editor.renderLineHighlight": "gutter",
"editor.tabSize": 2,
# -------------------------------------------
# Powerlevel10k Instant Prompt (Keep near top)
# -------------------------------------------
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh"
fi
# -------------------------------------------
# Oh-My-Zsh Setup & PATH Customizations
# -------------------------------------------
@cauesmelo
cauesmelo / main.zig
Last active September 26, 2023 20:20
main.zig
const r = @cImport({
@cInclude("raylib.h");
});
const WINDOW_WIDTH = 960;
const WINDOW_HEIGHT = 540;
pub fn main() !void {
r.InitWindow(960, 540, "Zig Paint POC");
package main
import (
"bufio"
"encoding/json"
"fmt"
"log"
"os"
"os/exec"
"strconv"
@cauesmelo
cauesmelo / desafio.go
Created October 14, 2022 20:29
Desafio.go
package main
import (
"fmt"
"os"
"strconv"
)
func getInput() int {
if len(os.Args) <= 1 {
RAlt & c::
Send, ç
return
!<+c::
Send, Ç
return
!Right::
Send, {End}
html {
box-sizing: border-box;
font-size: 16px;
}
*, *:before, *:after {
box-sizing: inherit;
}
body, h1, h2, h3, h4, h5, h6, p, ol, ul {