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
| %!PS-Adobe-3.0 EPSF-3.0 | |
| %%Pages: 1 | |
| %%BoundingBox: 0 0 720 720 | |
| %%EndComments | |
| /inch { 72 mul } def | |
| /invertgray { 1 currentgray sub setgray } def | |
| /makepoints { % nsides | |
| 4 dict begin |
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 | |
| set -euo pipefail | |
| deploy() { | |
| rsync -Pachvz --exclude '.DS_Store' \ | |
| "${BUILD_DIR}/" "${REMOTE_HOST}:${REMOTE_PATH}/" "$@" | |
| } | |
| printf "\n== DRY RUN ==\n" |
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 | |
| i = 0 | |
| poem = DATA.read.split("\n").select { |s| s.start_with?('>') } | |
| poem.each_with_index do |line, num| | |
| direction = rand(2) * (num > poem.size / 2 ? -1 : 1) | |
| options = line[1..].split('.') | |
| i = [[0, i + direction].max, options.size - 1].min | |
| puts options[i].strip |
OlderNewer