Skip to content

Instantly share code, notes, and snippets.

@roblogic
Created September 25, 2019 06:10
Show Gist options
  • Select an option

  • Save roblogic/d7db42d08f105c4af1802af872a850c0 to your computer and use it in GitHub Desktop.

Select an option

Save roblogic/d7db42d08f105c4af1802af872a850c0 to your computer and use it in GitHub Desktop.
((!$1))&&<<<"Congratulations on your new baby! :D"&&exit
y=$[$1<0?2:2*$1] a=${(l:y:: $:)} b=${(l:y+1::-:)}
(($1>0))&&echo "$a\n${a//$/|}"
echo "$b\n${b//-/~}\n$b"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment