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
/** | |
* calculateInvoice is a function to calculate how much gross do you need to reach a net target. | |
* | |
* @param netTarget The net you want to receive. | |
* @param taxPercent The tax percentage normally practiced for company segment and government. | |
* @returns Object which includes the: tax, net and gross results. | |
*/ | |
function calculateInvoice(netTarget, taxPercent) { | |
for (let gross = netTarget; gross < (netTarget*1000); gross++) { | |
const tax = (gross*taxPercent)/100; |
# 1080p/24fps mp4 | |
ffmpeg -i ${INPUT} -vf "scale=1920:-1" -r 24 -c:v libx264 -crf 23 -preset fast -an ${OUTPUT} | |
# 720p/24fps mp4 | |
ffmpeg -i ${INPUT} -vf "scale=720:-1" -r 24 -c:v libx264 -crf 23 -preset fast -an ${OUTPUT} | |
# 1080p/24fps webm | |
ffmpeg -i ${INPUT} -vf "scale=1080:-1" -r 24 -c:v libvpx-vp9 -b:v 0 -crf 30 -an ${OUTPUT} | |
# 720p/24fps webm |
// 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 |