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/bash | |
| # Script to install multiple Wordpress instances into single web server. | |
| # | |
| # TODO: If using bitnami lamp stack, disable pagespeed module because can confuse students when js/css files are cached. | |
| # https://docs.bitnami.com/bch/apps/wordpress/administration/use-pagespeed/ | |
| # | |
| # REQUIREMENTS | |
| # | |
| # LAMP environment installed. Script is tested with Bitnami LAMP stack. |
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
| public static void Fade (this UIView view, bool isIn, double duration = 0.3, Action onFinished = null) | |
| { | |
| var minAlpha = (nfloat)0.0f; | |
| var maxAlpha = (nfloat)1.0f; | |
| view.Alpha = isIn ? minAlpha : maxAlpha; | |
| view.Transform = CGAffineTransform.MakeIdentity (); | |
| UIView.Animate (duration, 0, UIViewAnimationOptions.CurveEaseInOut, | |
| () => { | |
| view.Alpha = isIn ? maxAlpha : minAlpha; |
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/bash | |
| ds() { | |
| date --date="$1 days ago" +%Y-%m-%d | |
| } | |
| BRANCH=master # your branch here | |
| echo "Date,LinesAdded,LinesDeleted" | |
| for day in $(seq 1 10) |