Skip to content

Instantly share code, notes, and snippets.

View joseoct's full-sized avatar

José Octávio joseoct

View GitHub Profile
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
# "scripts": {
# "build": "babel src --extensions \".js,.ts\" --out-dir dist --copy-files",
# "dev:server": "ts-node-dev -r tsconfig-paths/register --inspect --exit-child --transpile-only --ignore-watch node_modules src/shared/infra/http/server.ts",
# "pattern": "bash ./node_modules/.bin/pattern.sh ./src/modules $2"
# },
# "prisma": {
# "schema": "./src/shared/infra/prisma/schema.prisma"
# },
cd $1
unbind C-b
set-option -g prefix Home
set -g status-left-length 85
set -g status-left "working on#[fg=colour200] #S"
set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=white bg=cyan]#W#[fg=black,bold bg=default]│"
set -g window-status-current-format "#[fg=black,bold bg=default]│#[fg=colour200 bg=black]#W#[fg=black,bold bg=default]│"
set -g status-style bg=default
set -g status-right "#[fg=magenta] #[bg=gray] %b %d %Y %l:%M %p"
set -g status-right '#(gitmux "#{pane_current_path}")'
@joseoct
joseoct / config.lua
Last active March 8, 2023 08:27
my LunarVim config
-- general
lvim.log.level = "warn"
lvim.format_on_save = true
lvim.colorscheme = "omni"
lvim.builtin.cmp.confirm_opts.select = true
lvim.leader = "space"
lvim.keys.normal_mode["<S-l>"] = ":BufferLineCycleNext<CR>"
lvim.keys.normal_mode["<S-h>"] = ":BufferLineCyclePrev<CR>"
lvim.builtin.alpha.active = true
lvim.builtin.alpha.mode = "dashboard"
@joseoct
joseoct / .imwheelrc
Created February 20, 2022 22:10 — forked from Xarkam/.imwheelrc
imwheel configuration vscode, jetbrains ide, slack, discord, rocket.chat, microsoft teams, gimp, firefox, chrome/chromium, vivaldi, spotify
"^(code|discord|rocket.chat|slack|microsoft teams - preview)$"
None, Up, Button4, 2
None, Down, Button5, 2
".*-chrome*"
None, Up, Button4, 2
None, Down, Button5, 2
Shift_L, Up, Shift_L|Button4, 2
Shift_L, Down, Shift_L|Button5, 2
Control_L, Up, Control_L|Button4
@joseoct
joseoct / index.tsx
Last active July 14, 2020 21:13
Radio button (react-native-paper) with texts
import { RadioButton } from 'react-native-paper';
.
.
.
const [checked, setChecked] = React.useState('first');
return (
<RadioButtonView>
@joseoct
joseoct / example.tsx
Last active July 14, 2020 21:04
SearchBar - React Native
const [searchValue, setSearchValue] = useState('');
<SearchInput
value={searchValue}
onChangeText={setSearchValue}
placeholder="Pesquisa ..."
/>
@joseoct
joseoct / build.gradle
Created May 24, 2020 03:38
Custom fonts and Vector Icons (react-native)
// On android/app
project.ext.vectoricons = [
iconFontNames: [ 'Feather.ttf' ] // Name of the font files you want to copy
]
apply from: "../../node_modules/react-native-vector-icons/fonts.gradle"
@joseoct
joseoct / index.tsx
Last active May 23, 2020 21:45
css 'react-day-picker'
const [selectedDate, setSelectedDate] = useState(new Date());
const handleDateChange = useCallback((day: Date, modifiers: DayModifiers) => {
if (modifiers.available) {
setSelectedDate(day);
}
}, []);
<DayPicker
weekdaysShort={['Dom', 'Seg', 'Ter', 'Qua', 'Qui', 'Sex', 'Sab']}