This file contains 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
#!/usr/bin/bash | |
# | |
# Simple Blackjack game written in Bash. To play, give this file | |
# execute permissions and run it: | |
# chmod u+x bashjack.sh | |
# ./bashjack.sh | |
# | |
# Alternatively you can run Bash with this file as an argument: | |
# bash bashjack.sh | |
# |
This file contains 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 | |
if [[ $# -ne 1 ]]; then | |
printf "Usage: %s VIDEO_FILE\n" $0 | |
exit 1 | |
fi | |
source_file=$1 | |
framerate=$(ffmpeg -i "$source_file" 2>&1 | grep -oE '[0-9]+ fps' | grep -oE '^[0-9]+') |
This file contains 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
# Pokemon Fusion Video Generator | |
# | |
# Simply run the following command in the 'frames' folder output by pokemon-fusion-frames-generator.sh | |
# (https://gist.github.com/seb-jones/2bba5c1bfb7ff224a9ca8e58a8e4dcab). | |
# | |
# Requires FFMPEG | |
ffmpeg -f image2 -framerate 1 -i %05d.png -s 1920x1080 pfv.avi |
This file contains 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 | |
# | |
# Pokemon Fusion Time Stamp Generator | |
# | |
# Requires a single plaintext file containing the names of each Pokemon in the | |
# First Generation Pokedex, one per line, in Pokedex order. | |
SECONDS_PER_MINUTE=60 | |
MINUTES_PER_HOUR=60 |
This file contains 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 | |
# | |
# Pokemon Fusion Frame Generator | |
# | |
# Takes the output of pokemon-fusion-scraper.sh (https://gist.github.com/seb-jones/f5c25453f69ec0bad53d35a733694d8e) | |
# and converts them into frames for a video. | |
# | |
# Requires Image Magick and the Noto Sans font | |
LEFT_CAPTION_FONT="Noto-Sans-Display-Regular" |
This file contains 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 | |
# | |
# Pokemon Fusion Scraper | |
# | |
# Simple script that uses curl to grab all the images from pokemon.alexonsager.net. | |
# Each image is given a meaningful name. | |
# | |
# Requires Curl | |
if [ ! -d images ] |