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
# Configuration for Alacritty, the GPU enhanced terminal emulator | |
# Any items in the `env` entry below will be added as | |
# environment variables. Some entries may override variables | |
# set by alacritty it self. | |
env: | |
# TERM env customization. | |
# | |
# If this property is not set, alacritty will set it to xterm-256color. | |
# |
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
cat ~/.cache/neofetch | |
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc. | |
# Initialization code that may require console input (password prompts, [y/n] | |
# confirmations, etc.) must go above this block; everything else may go below. | |
if [[ -r "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" ]]; then | |
source "${XDG_CACHE_HOME:-$HOME/.cache}/p10k-instant-prompt-${(%):-%n}.zsh" | |
fi | |
## Options section |
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
" ######################## Vim-plug plugins ######################## | |
" $HOME/.local/share/nvim/plugged | |
call plug#begin(stdpath('data') . '/plugged') | |
" Theming | |
" Plug 'itchyny/lightline.vim' | |
Plug 'vim-airline/vim-airline' | |
"Plug 'vim-airline/vim-airline-themes' | |
Plug 'morhetz/gruvbox' | |
Plug 'joshdick/onedark.vim' | |
Plug 'KeitaNakamura/neodark.vim' " Good for Ruby |
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
// MIT License | |
import Foundation | |
class CountdownTimer { | |
struct ClockTime { | |
let hours: Int | |
let minutes: Int | |
let seconds: Int |
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
alias d-list="exa --long --all --header --git --classify" | |
alias d-listv="exa --long --header --git --classify" | |
alias d-list-trash="gio list -lh trash://" | |
alias d-open="gio open" | |
alias d-show="batcat" | |
alias d-edit="micro" | |
alias d-copy="gio copy --progress --interactive" | |
alias d-copyb="d-copy --backup" | |
alias d-move="gio move --progress --interactive" | |
alias d-moveb="d-move --backup" |
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/sh | |
echo "-> Running apt update and upgrade" | |
apt update | |
apt -y upgrade | |
# Basic | |
echo "-> Installing basic stuff" | |
apt install -y curl # Curl | |
apt install -y wget # Wget |
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
import Foundation | |
struct Queue<T> { | |
private var values: [T] | |
init(values: [T] = []) { | |
self.values = values | |
} | |
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
import Foundation | |
let names = [ | |
"camión", | |
"camiones", | |
"camizn" | |
] | |
// Better version ! |
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
extension DispatchGroup { | |
typealias Callback<T> = (T) -> Void | |
typealias ClosureCallback<T> = Callback<Callback<T>> | |
enum AwaitError: Error { | |
case timeout | |
case nilValue | |
} | |
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
class RoundImageView: UIImageView { | |
override func layoutSubviews() { | |
super.layoutSubviews() | |
imageView.layer.shadowColor = UIColor.black.cgColor | |
imageView.layer.shadowOpacity = 1 | |
let shadowRadius: CGFloat = 8 | |
imageView.layer.shadowRadius = shadowRadius | |
imageView.layer.shadowOffset = .zero | |
imageView.frame = imageView.frame.inset(by: UIEdgeInsets(top: shadowRadius, left: shadowRadius, bottom: shadowRadius, right: shadowRadius)) | |
imageView.layer.cornerRadius = self.frame.width / 2// asssuming the aspect ratio is 1:1 |