This file contains hidden or 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
package main | |
import ( | |
"fmt" | |
"runtime" | |
"sync" | |
"time" | |
) | |
func Map[T1, T2 any](arr []T1, f func(item T1, index int) T2) []T2 { |
This file contains hidden or 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
# placed in ~/.local/share/nautilus-python/extensions/open-kitty.py | |
# you will need the package nautilus-python on fedora, or python-nautilus on ubuntu... | |
# french version | |
# translate and enjoy | |
import os | |
try: | |
from urllib import unquote | |
except ImportError: | |
from urllib.parse import unquote |