Skip to content

Instantly share code, notes, and snippets.

View sirgallifrey's full-sized avatar
⛱️
I should update my bio....

Adilson Schmitt Junior sirgallifrey

⛱️
I should update my bio....
View GitHub Profile
name: NAME
root: /Users/....
windows:
- NAME Code:
- nvim
- NAME Run:
- NAME Others:
@sirgallifrey
sirgallifrey / alacritty.toml
Created August 31, 2025 09:20
alacritty.toml
[window]
startup_mode = "Maximized"
[font]
normal = { family = "RobotoMono Nerd Font", style = "Regular" }
bold = { family = "RobotoMono Nerd Font", style = "Bold" }
italic = { family = "RobotoMono Nerd Font", style = "Italic" }
bold_italic = { family = "RobotoMono Nerd Font", style = "Bold Italic" }
size = 18.0
[general]
@sirgallifrey
sirgallifrey / .tmux.conf
Created August 31, 2025 09:19
.tmux.conf
setw -g mouse on
set -g default-terminal "tmux-256color"
set-option -g prefix C-a
# bind-key -n "C-q" display-popup -E -w 40% "sesh connect \"$(
# sesh list -i | gum filter --limit 1 --placeholder 'Pick a sesh' --height 50 --prompt='⚡ ' --no-strip-ansi
# )\""
bind-key -n "C-q" run-shell "sesh connect \"$(
setw -g mouse on
set -g default-terminal "tmux-256color"
set-option -g prefix C-a
# bind-key -n "C-q" display-popup -E -w 40% "sesh connect \"$(
# sesh list -i | gum filter --limit 1 --placeholder 'Pick a sesh' --height 50 --prompt='⚡ ' --no-strip-ansi
# )\""
bind-key -n "C-q" run-shell "sesh connect \"$(
map("n", "<leader>fk", "<cmd>Telescope keymaps<CR>", { desc = "telescope keymaps" })
map("n", "<leader>lr", "<cmd>Telescope lsp_references<CR>", { desc = "telescope LSP References" })
map("n", "<leader>li", "<cmd>Telescope lsp_implementations<CR>", { desc = "telescope LSP Implementations"})
map("n", "<leader>ld", "<cmd>Telescope lsp_definitions<CR>", { desc = "telescope LSP Definitions"})
map("n", "<leader>lt", "<cmd>Telescope lsp_type_Definitions<CR>", { desc = "telescope LSP Type Definitions"})
map("n", "<leader>ls", "<cmd>Telescope lsp_document_symbols<CR>", { desc = "telescope LSP Buffer Symbols"})
map("n", "<leader>li", "<cmd>Telescope lsp_incoming_calls<CR>", { desc = "telescope LSP Incoming Calls"})
map("n", "<leader>lo", "<cmd>Telescope lsp_outgoing_calls<CR>", { desc = "telescope LSP Outgoing Calls"})
## Images to PDF
convert XXXX* -quality 80 XXXX.pdf
## Images to PDF
convert XXXX* -quality 80 -page a4 XXXX.pdf
import Input from './input';
import Label from './label';
import FormGroup from './form-group';
export default function Field ({children, name, inline, ...props}) {
return (
<FormGroup inline={ inline }>
<Label inline={ inline } htmlFor={ name }>{ label }</Label>
<Input inline={ inline } { ...props } id={ name }>
{ children }
@sirgallifrey
sirgallifrey / fetchData.js
Created August 5, 2017 02:10
is loged In HOC
import React from 'react';
import Loader from '../components/loader';
export default function fetchData(url, options) {
return (Component) => class fetchComponent extends React.Component {
constructor(props) {
super(props);
this.state = {
finished = false;
data = null;
@sirgallifrey
sirgallifrey / input-field.js
Created August 3, 2017 05:23
high-order component
import React from 'react';
import withLabel from './with-label';
import Input from 'input';
export default withLabel(Input);
@sirgallifrey
sirgallifrey / card.js
Created August 3, 2017 04:04
props.children composition
import React from 'react';
function Card (props) {
return (
<div className={`card ${props.className}`}>
{ props.children }
</div>
);
}