Gist mirror of "Learn Scheme in 15 Minutes"
This is just a mirror of https://web-artanis.com/scheme.html (I found their syntax highlighting difficult to read).
npx -y --package typescript@latest -- tsc --help |
This is free and unencumbered software released into the public domain. | |
Anyone is free to copy, modify, publish, use, compile, sell, or | |
distribute this software, either in source code form or as a compiled | |
binary, for any purpose, commercial or non-commercial, and by any | |
means. | |
In jurisdictions that recognize copyright laws, the author or authors | |
of this software dedicate any and all copyright interest in the | |
software to the public domain. We make this dedication for the benefit |
This is just a mirror of https://web-artanis.com/scheme.html (I found their syntax highlighting difficult to read).
function create_image_audio() { | |
local -r image="$1" | |
local -r audio="$2" | |
echo DEBUG: $(pwd) | |
echo DEBUG: $(file "$image") | |
echo DEBUG: $(file "$audio") | |
ffmpeg -loop 1 -i "$image" -i "$audio" -c:v libx264 -c:a copy -shortest "${audio}.mp4" | |
} | |
create_image_audio "$1" "$2" |
A list of useful commands for the ffmpeg command line tool.
Download FFmpeg: https://www.ffmpeg.org/download.html
Full documentation: https://www.ffmpeg.org/ffmpeg.html
I hereby claim:
To claim this, I am signing this object:
One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Ctrl-C
(ready for Docker)Console.ReadLine
or Console.ReadKey
do not work as expected under Docker container environment.
Thus, typical way to solve this would be to properly handle Ctrl-C
key combination.
using System;
using System.Threading;
private static int Main(string[] args) | |
{ | |
#if DEBUG | |
if (args.Any(a => a == "--debug")) | |
{ | |
args = args.Where(a => a != "--debug").ToArray(); | |
Console.WriteLine($"Ready for debugger to attach. Process ID: {Process.GetCurrentProcess().Id}."); | |
Console.WriteLine("Press ENTER to continue."); | |
Console.ReadLine(); | |
} |
#!/usr/bin/env bash | |
# Download this gist | |
# curl -Ls https://gist.github.com/andkirby/54204328823febad9d34422427b1937b/raw/semversort.sh | bash | |
# And run: | |
# $ semversort 1.0 1.0-rc 1.0-patch 1.0-alpha | |
# or in GIT | |
# $ semversort $(git tag) | |
# Using pipeline: | |
# $ echo 1.0 1.0-rc 1.0-patch 1.0-alpha | semversort | |
# |