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
| #!/bin/zsh | |
| # Asks a series of questions and then returns an image | |
| # use like "bash catchphrase.sh" | |
| echo "What is your favorite color?" | |
| read theColor | |
| echo "What is your catchphrase?" | |
| read thePhrase | |
| convert -size 1000x1000 xc:$theColor +repage \ | |
| -size 800x800 -fill white -background None \ |
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
| #!/bin/zsh | |
| # returns a random phrase for motivation | |
| # usage `bash encourageme.sh` | |
| aff=("You are enough" "Do one small thing" "Sources say that you can do it" "Just try" "You got this" "You are what you repeatedly do") | |
| theaff=${aff[$(( $RANDOM % ${#aff[@]} + 1 ))]} | |
| say $theaff | |
| echo $theaff |
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
| import SwiftUI | |
| struct ScalingStaticPieChart: View { | |
| var body: some View { | |
| GeometryReader { geometry in | |
| let gc = geometry.size.width * 0.5 | |
| let gcenter = CGPoint(x: gc, y: gc) | |
| let outsize = geometry.size.width * 0.4 | |
| ZStack { |
OlderNewer