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
curl -s "https://api.example.com/v1/configurations?date=2025-04-25" | jq -c '[.[] | select(.itemType == 5) | { (.itemId | tostring): .itemName }]' |
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
echo "Hello, world!" | tee >(sed 's/Hello/Hi/' > hi.txt) >(tr 'a-z' 'A-Z' > upper.txt) >(cat > file.txt) |
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
#include <stdio.h> | |
/** | |
* Expected output: | |
* floaty : 0.30000001192092895507812500000000 | |
* doubly : 0.30000000447034835815429687500000 | |
* floaty : 2833116928.000000 | |
* doubly : 2833116923.303232 | |
* | |
* Python program using the decimal type: |
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 | |
# page number and rotation | |
pdftk $input cat 5south output $output |
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 | |
source="$1" | |
output="${source%.*}_reencoded.${source##*.}" | |
ffmpeg -i "$source" -c:v h264_amf -rc cqp -q:v 23 -pix_fmt yuv420p -map 0 -c:a aac -c:s copy "$output" |
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
youtube-dl --extract-audio --audio-format mp3 -o "%(title)s.%(ext)s" https://www.youtube.com/watch?v=Ybnpn4dTHxw |
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 | |
HOST="42.42.42.42:9000" | |
for file in file1 file2 | |
do | |
if [[ -f $file ]]; then | |
echo "$file was already at least partially downloaded" | |
else | |
echo "Downloading $file" |
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
Movie Id | Movie name | Release year | Author id | |
---|---|---|---|---|
1 | The Matrix | 1999 | 1 | |
2 | The Matrix Reloaded | 2003 | 1 | |
3 | The Matrix Revolutions | 2003 | 1 |
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
Author id | name | country | |
---|---|---|---|
1 | The Wachowskis | USA |
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
Movie Id | Movie name | Release year | Author name | Author country | |
---|---|---|---|---|---|
1 | The Matrix | 1999 | The Wachowskis | USA | |
2 | The Matrix Reloaded | 2003 | The Wachowskis | USA | |
3 | The Matrix Revolutions | 2003 | The Wachowskis | USA |
NewerOlder