View bashjack.sh
#!/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 | |
# |
View blackjack.scm
#!/usr/bin/guile -s | |
!# | |
; Simple command-line implementation of Blackjack in Guile Scheme. To play, | |
; give this file execution permissions and run it: | |
; | |
; chmod u+x blackjack.scm | |
; ./blackjack.scm | |
; | |
; Alternatively you can explicitly run it with guile: | |
; |
View vidterm.sh
#!/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]+') |
View pokemon-fusion-video-generator.sh
# 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 |
View pokemon-fusion-timestamp-generator.sh
#!/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 |
View pokemon-fusion-frames-generator.sh
#!/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" |
View pokemon-fusion-scraper.sh
#!/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 ] |
View sitemap-gen.c
// | |
// SITEMAP-GEN | |
// ============================================================================= | |
// | |
// Version: 1.01 | |
// Author: Seb Jones (http://sebj.co.uk). | |
// | |
// Single file C99 program that takes--as a single argument or as a single line | |
// of Standard Input--a URL which is used to print an XML sitemap to Standard | |
// Output. |