I hereby claim:
- I am andyq on github.
- I am andyq (https://keybase.io/andyq) on keybase.
- I have a public key ASCVWYjGNbdb8MmnuxUb8N5gfou5CdMXROL1llduzumLlwo
To claim this, I am signing this object:
| import ImageIO | |
| import Accelerate | |
| extension UIImage { | |
| public enum ResizeFramework { | |
| case uikit, coreImage, coreGraphics, imageIO, accelerate | |
| } | |
| /// Resize image with ScaleAspectFit mode and given size. |
| /* | |
| Simple image display for YFRobot 8x8 Dot Matrix display (controller with dual serial 74HC595 chips) | |
| Author: Andy Qua | |
| Date: 22nd Jan 2022 | |
| */ | |
| int dataPin = 10; // The Serial Data Pin to the Shift Register (SER on board) | |
| int latchPin = 8; // The Latch Pin to the Shift Register (RCK on board) | |
| int clockPin = 7; // The Clock Pin to the Shift Register (SRCK on board) |
| struct ContentView: View { | |
| var body: some View { | |
| Color.clear | |
| .foregroundColor(.white) | |
| .frame( width:100, height:100) | |
| .font(.largeTitle) | |
| .padding(20) | |
| .background(RoundedCorners(color: .blue, tl: 10, tr: 0, bl: 10, br: 0, left:true, right:false)) | |
| } | |
| } |
| /** | |
| * Copyright (c) 2010, Jason Davies. | |
| * | |
| * All rights reserved. This code is based on Bradley White's Java version, | |
| * which is in turn based on Nicholas Yue's C++ version, which in turn is based | |
| * on Paul D. Bourke's original Fortran version. See below for the respective | |
| * copyright notices. | |
| * | |
| * See http://local.wasp.uwa.edu.au/~pbourke/papers/conrec/ for the original | |
| * paper by Paul D. Bourke. |
I hereby claim:
To claim this, I am signing this object:
| /* | |
| Scrolling text display for YFRobot 8x8 Dot Matrix display (controller with dual serial 74HC595 chips) | |
| Author: Andy Qua | |
| Date: 26th April 2015 | |
| */ | |
| int dataPin = 10; // The Serial Data Pin to the Shift Register (SER on board) | |
| int latchPin = 8; // The Latch Pin to the Shift Register (RCK on board) | |
| int clockPin = 7; // The Clock Pin to the Shift Register (SRCK on board) |
| #!/bin/bash | |
| text=$1 | |
| if [[ "$text" == "" ]]; then | |
| text="Hello World" | |
| fi | |
| echo "Female" | |
| for voice in Agnes Kathy Princess Vicki Victoria; do | |
| echo $voice | |
| say -v $voice $text |