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
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 |
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
{ | |
"$help": "https://aka.ms/terminal-documentation", | |
"$schema": "https://aka.ms/terminal-profiles-schema", | |
"actions": | |
[ | |
{ | |
"command": | |
{ | |
"action": "copy", | |
"singleLine": false |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
# <name> = {git = "<https_address>",ref = "<revision>"} | |
# Example: | |
vents = {git = "https://github.com/lavaleak/vents",ref = "master"} |
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
#!/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() { |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
// 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]); |
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
# 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 |
OlderNewer