Skip to content

Instantly share code, notes, and snippets.

# 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
# If you come from bash you might have to change your $PATH.
# export PATH=$HOME/bin:/usr/local/bin:$PATH
@brenoprata10
brenoprata10 / youtube-channels-widget.js
Last active August 19, 2021 08:37
Youtube videos on a widget
const YOUTUBE_API = "https://youtube.googleapis.com/youtube/v3"
const API_KEY = "YOUR_API_KEY_HERE"
const channelIdArray = [
"UCT6iAerLNE-0J1S_E97UAuQ", // YongYea
"UC9PBzalIcEQCsiIkq36PyUA", // Digital Foundry
"UCNvzD7Z-g64bPXxGzaQaa4g", // gameranx
"UCcGL_0yoZTskvlgAixaEjEg", // whatoplay
"UCawsJGDMV6IOm6z9yiOyIsQ", // Cronosfera
"UC-zfTtp6tir7yJIrpsgS0dA", // Intoxi Anime
"UCBJycsmduvYEL83R_U4JriQ", // Marques Brownlee
@brenoprata10
brenoprata10 / steam-wishlist.js
Last active March 31, 2024 13:15
Shows widget for steam wishlist of given steamID on Scriptable app
const STEAM_STORE_URL = "https://store.steampowered.com"
const steamId = args.widgetParameter ?? "76561198008818777"
try {
const wishListGames = await fetchWishListById(steamId)
const widget = await createWidget(wishListGames)
renderWidget(widget)
} catch(error) {
const widget = await createErrorWidget(error)
renderWidget(widget)
}