Skip to content

Instantly share code, notes, and snippets.

def get_according_elements(list_ipt):
list_of_results = []
for base_el in range(len(list_ipt)):
if list_ipt[base_el] < 0:
continue
for el2 in range(len(list_ipt)):
if list_ipt[el2] > 0 or base_el == el2:
continue
if list_ipt[base_el] + list_ipt[el2] == 0:
list_of_results.append([list_ipt[base_el], list_ipt[el2]])
export PATH="$PATH:$HOME/opt/homebrew/bin"
export PATH="$PATH:$HOME/.fzf/bin/"
export PATH="$PATH:$HOME/.local/bin/"
# 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"