curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bashwget -qO- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash| package main | |
| import "fmt" | |
| type Rule struct { | |
| Length int | |
| Range []int | |
| Count int | |
| } |
| vim.cmd("set expandtab") | |
| vim.cmd("set tabstop=4") | |
| vim.cmd("set softtabstop=4") | |
| vim.cmd("set shiftwidth=4") | |
| vim.cmd("set number") | |
| vim.g.mapleader = " " | |
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
| if not (vim.uv or vim.loop).fs_stat(lazypath) then | |
| local lazyrepo = "https://github.com/folke/lazy.nvim.git" |
| function toggle_layout { | |
| currentLayout=$(setxkbmap -query | grep layout | awk '{print $2}') | |
| if [ "$currentLayout" == "br" ]; then | |
| setxkbmap us && notify-send -t 1000 "Switched to US Layout" | |
| else | |
| setxkbmap br && notify-send -t 1000 "Switched to ABNT-2 Layout" | |
| fi | |
| } |
| # i3status configuration file. | |
| # see "man i3status" for documentation. | |
| # It is important that this file is edited as UTF-8. | |
| # The following line should contain a sharp s: | |
| # ß | |
| # If the above line is not correctly displayed, fix your editor first! | |
| general { | |
| colors = true |
| # This file has been auto-generated by i3-config-wizard(1). | |
| # It will not be overwritten, so edit it as you like. | |
| # | |
| # Should you change your keyboard layout some time, delete | |
| # this file and re-run i3-config-wizard(1). | |
| # | |
| # i3 config file (v4) | |
| # | |
| # Please see https://i3wm.org/docs/userguide.html for a complete reference! |
| // tsx seed.ts | |
| import { faker } from '@faker-js/faker'; | |
| import { pgTable, text, varchar, timestamp } from 'drizzle-orm/pg-core'; | |
| import { drizzle, PostgresJsDatabase } from 'drizzle-orm/postgres-js'; | |
| import { createInsertSchema } from 'drizzle-zod'; | |
| import { customAlphabet } from 'nanoid'; | |
| import postgres from 'postgres'; | |
| import { z } from 'zod'; |
| // Zed settings | |
| // | |
| // For information on how to configure Zed, see the Zed | |
| // documentation: https://zed.dev/docs/configuring-zed | |
| // | |
| // To see all of Zed's default settings without changing your | |
| // custom settings, run `zed: open default settings` from the | |
| // command palette (cmd-shift-p / ctrl-shift-p) | |
| { | |
| "outline_panel": { |
| import fetch from 'node-fetch'; | |
| import fs from "fs"; | |
| import { formatDate } from "date-fns" | |
| // provide the following | |
| const key = "" | |
| const token = "" | |
| const boardId = "" | |
| fetch(`https://api.trello.com/1/boards/${boardId}/cards?key=${key}&token=${token}`, { |
| ################################################################################################################################################################################ | |
| projeto lol voice chat | |
| utilizar para pensar: https://gist.github.com/EduardoRFS/17f3409a22c1ca5eedc8a9673833424a | |
| 1. descobrir como encontrar jogadores com partidas em andamento utilizando a api da riot games | |
| 2. descobrir como diferenciar jogadores do time azul e time vermelho utilizando a api da riot games | |
| 3. integrar essa descoberta em um bot de discord | |
| 4. bot gera 2 canais de voz no discord [red, blue] com um identificador de partida. | |
| 5. jogadores interessados em canal de voz precisam estar no servidor do discord |