Skip to content

Instantly share code, notes, and snippets.

View wildiney's full-sized avatar
👋

Wildiney Di Masi wildiney

👋
View GitHub Profile
@wildiney
wildiney / poetry-add-torch.sh
Created January 1, 2025 20:39
Poetry add Torch
poetry source add --priority=explicit pytorch-gpu https://download.pytorch.org/whl/cu118
poetry add --source pytorch-gpu torch torchvision torchaudio
pre {
background-color: #f6f8fa;
padding: 10px;
border-radius: 5px;
overflow: auto;
}
.string {
color: darkgray;
}
.number {
@wildiney
wildiney / gradle.build.kts
Last active December 8, 2024 19:42
Configs for Navigation
plugins{
alias(libs.plugins.jetbrainsKotlinSerialization)
}
dependencies{
implementation(libs.androidx.navigation.compose)
implementation(libs.kotlinx.serialization.json)
}
@wildiney
wildiney / EmojisTable.md
Created November 26, 2024 17:37 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@wildiney
wildiney / EslintRecipe.md
Last active April 20, 2024 16:48 — forked from felipefontoura/Next.js Recipe.md
ESLint Recipe - React, Next and Node.js

Eslint

React / Next.js

npm i prettier eslint eslint-config-prettier eslint-config-standard eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-prettier eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-tailwindcss @typescript-eslint/eslint-plugin @typescript-eslint/parser -D

.eslintrc.js:

@wildiney
wildiney / powershell.txt
Created April 19, 2024 19:47 — forked from aleduca/powershell.txt
Powershell - oh my posh
- Baixar o powershell: https://learn.microsoft.com/pt-br/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.4#winget
- NerdFont: https://www.nerdfonts.com/font-downloads
- Oh My Posh: https://ohmyposh.dev/
- Criar arquivo de config: .$PROFILE ou code $PROFILE
- Instalar PSReadline: Install-Module PSReadLine -AllowPrerelease -Force
- Instalar icones: Import-Module -Name Terminal-Icons
- Apelido para comandos:
function executeArtisanCli {
php artisan $args
}
@wildiney
wildiney / settings.json
Last active February 26, 2024 12:46
VSCode configs to sticky folders and code content
{
editor.stickyScroll.enabled,
workbench.tree.enableStickyScroll
}
@wildiney
wildiney / handleInputChange.tsx
Created October 11, 2023 13:44
A snippet to deal with the onChange in react forms
const handleInputChange = (e:React.ChangeEvent<HTMLInputElement | HTMLSelectElement>)=>{
const {name, value} = e.target
setState((prevState)=>{
...prevState,
[name]:value
})
}
@wildiney
wildiney / vite.config.js
Last active September 4, 2023 13:03
Vite config for naming dist files
import {defineConfig} from 'vite'
export default defineConfig({
build:{
rollupOptions:{
output:{
assetFileNames:'assets/[name].[ext]',
entryFileNames:'[name].js'
}
}
@wildiney
wildiney / remove-duplicates-in-object.js
Created May 4, 2022 19:51
Remove duplicated entries in an json object
function makeUnique(object){
jsonObject = object.map(JSON.stringify)
const uniqueSet = new Set(jsonObject)
const uniqueArray = Array.from(uniqueSet).map(JSON.parse)
return uniqueArray
}