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
| require 'open3' | |
| Open3.popen3('seq 100000') do |stdin, stdout, stderr, wait_thr| | |
| stdin.close_write | |
| loop do | |
| IO.select([stdout, stderr]).flatten.compact.each do |io| | |
| io.each do |line| | |
| next if line.nil? || line.empty? | |
| puts line |
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
| #!/usr/bin/env bash | |
| # | |
| # Generate a dummy video or an image. | |
| # | |
| # The caption text and size (width x height) are drawn on the video or image. | |
| # The countdown timer is drawn in the upper right corner of the video. | |
| # | |
| # This script is intended to be run on macOS. | |
| # And it depends on the following packages. | |
| # - imagemagick |
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
| #!/usr/bin/env ruby | |
| # frozen_string_literal: true | |
| require 'cgi' | |
| require 'csv' | |
| require 'optparse' | |
| SUPPORTED_GIT_GREP_OPTIONS = <<~MSG | |
| -i --ignore-case | |
| -I |