This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
git clone --bare https://github.com/EduardoRodriguesF/dotfiles $HOME/.dotfiles | |
function dotfiles { | |
/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME $@ | |
} | |
dotfiles checkout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Get editor completions based on the config schema | |
"$schema" = 'https://starship.rs/config-schema.json' | |
format = ''' | |
$username$directory$git_branch$git_commit$git_state$git_metrics$git_status$cmd_duration | |
$character''' | |
# Replace the 'Γ¥»' symbol in the prompt with 'Γ₧£' | |
[character] | |
success_symbol = '[∩òö](bold green)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
directory_name=${PWD##*/} | |
tmp_path="/mnt/c/Windows/temp/$directory_name" | |
mkdir -p $tmp_path | |
rsync . $tmp_path -r --exclude-from=.gitignore | |
cd $tmp_path |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use bevy::prelude::*; | |
fn main() { | |
App::new().add_plugins(DefaultPlugins).run(); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
" | |
" ██╗ ██╗██╗███╗ ███╗██████╗ ██████╗ | |
" ██║ ██║██║████╗ ████║██╔══██╗██╔════╝ | |
" ██║ ██║██║██╔████╔██║██████╔╝██║ | |
" ╚██╗ ██╔╝██║██║╚██╔╝██║██╔══██╗██║ | |
" ╚████╔╝ ██║██║ ╚═╝ ██║██║ ██║╚██████╗ | |
" ╚═══╝ ╚═╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ | |
" | |
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function deleteManyEntries(dataEntity, appKey, appToken) { | |
const headers = { | |
'X-VTEX-API-AppKey': appKey, | |
'X-VTEX-API-AppToken': appToken, | |
} | |
$.ajax({ | |
url: `/api/dataentities/${dataEntity}/scroll?_fields=id`, | |
headers, | |
success: function(data) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const ModalCpg = { | |
triggerItemsList: [], | |
itemsAdded: [], | |
promo: null, | |
previousOrderForm: {}, | |
selectors: { | |
overlay: '#e-modalCpg', | |
content: '.e-modalCpg__content', | |
closeButton: '#e-modalCpg-close', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"workbench.colorTheme": "Omni Owl", | |
"editor.fontFamily": "'JetBrains Mono', 'Cascadia Code', 'Consolas', Arial", | |
"editor.fontLigatures": true, | |
"editor.lineHeight": 28, | |
"git.enableSmartCommit": true, | |
"workbench.tree.indent": 20, | |
"explorer.fileNesting.enabled": true, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function comparePerformance(firstFunction, secondFunction, iterations = 1) { | |
const averageExecutionTime = (func) => { | |
const executions = []; | |
for (let i = 0; i < iterations; i++) { | |
const start = performance.now(); | |
func(); | |
const end = performance.now(); | |
executions.push(end - start); | |
} |