Skip to content

Instantly share code, notes, and snippets.

🏹
The Daimyo of Data

Seb Jones seb-jones

🏹
The Daimyo of Data
Block or report user

Report or block seb-jones

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@seb-jones
seb-jones / bashjack.sh
Last active Jan 25, 2020
Blackjack Game written in Bash Script
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
#
@seb-jones
seb-jones / blackjack.scm
Created Jan 19, 2020
Simple command-line Blackjack game written in Guile Scheme
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=$1
FRAMERATE=$(ffmpeg -i test.mp4 2>&1 | grep -oE '[0-9]+ fps' | grep -oE '^[0-9]+')
@seb-jones
seb-jones / pokemon-fusion-video-generator.sh
Last active Sep 1, 2019
The command used to compile frames generated by pokemon-fusion-frame-generator.sh into a video
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
@seb-jones
seb-jones / pokemon-fusion-timestamp-generator.sh
Created Sep 1, 2019
Generates the timestamps for the Youtube Description of a video showcasing all combinations from Pokemon Fusion
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
@seb-jones
seb-jones / pokemon-fusion-frames-generator.sh
Last active Sep 1, 2019
Takes the results of Pokemon Fusion Scraper and prepares them as frames for video.
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"
@seb-jones
seb-jones / pokemon-fusion-scraper.sh
Last active Sep 1, 2019
Pokemon Fusion Scraper
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 ]
@seb-jones
seb-jones / sitemap-gen.c
Last active Nov 24, 2018
sitemap-gen - Single File, Public Domain XML Sitemap generator written in C. Requires libcurl.
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.
You can’t perform that action at this time.