Source: https://beta.openai.com/playground
write a diversified diet with breakfast, lunch, and dinner on a table with the weight of each ingredient, the total calories of the meal, and the macronutrients quantity for each ingredient
// short way. | |
document.querySelectorAll('video')[0].disablePictureInPicture=false;document.querySelectorAll('video')[0].requestPictureInPicture(); | |
// long way. | |
const pInP = async el => { | |
el.disablePictureInPicture = false; | |
await el.requestPictureInPicture(); | |
} | |
const videos = document.querySelectorAll('video'); | |
pInP(videos[0]); |
Source: https://beta.openai.com/playground
write a diversified diet with breakfast, lunch, and dinner on a table with the weight of each ingredient, the total calories of the meal, and the macronutrients quantity for each ingredient
#!/bin/bash | |
DEFAULT="\[\033[0;00m\]" | |
RED="\[\033[1;31m\]" | |
GREEN="\[\033[0;32m\]" | |
YELLOW="\[\033[0;33m\]" | |
PURPLE="\[\033[0;35m\]" | |
CYAN="\[\033[0;36m\]" | |
__error_red_num() { |
# <name> = {git = "<https_address>",ref = "<revision>"} | |
# Example: | |
vents = {git = "https://github.com/lavaleak/vents",ref = "master"} |
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
function fish_prompt | |
set -l git_branch (git branch ^/dev/null | sed -n '/\* /s///p') | |
echo -e '\033[0;32m'(whoami)'@'(hostname)' \033[0;33m'(prompt_pwd)' \033[0;36m('"$git_branch"')\033[0;00m\n$ ' | |
end |