PhpStorm Tips, ticks and standard setup
- Tips and Tracks for PHPStorm (PHPStorm Tips and Tricks.md)
- Standard setup for PHP projects (Standard.md)
/** | |
* Convert an image | |
* to a base64 url | |
* @param {String} url | |
* @param {Function} callback | |
* @param {String} [outputFormat=image/png] | |
*/ | |
function convertImgToBase64URL(url, callback, outputFormat){ | |
var img = new Image(); | |
img.crossOrigin = 'Anonymous'; |
how to use alarms to trigger tasks at specific times, whether or not your app is running when the alarms go off.
For example, you can use a repeating alarm to schedule a download every day at the same time.
To create alarms, you use the AlarmManager class. Alarms in Android have the following characteristics:
@Composable | |
fun CircularReveal( | |
expanded: Boolean, | |
modifier: Modifier = Modifier, | |
animationSpec: FiniteAnimationSpec<Float> = tween(), | |
content: @Composable (Boolean) -> Unit, | |
) { | |
val transition = updateTransition(expanded, label = "Circular reveal") | |
transition.CircularReveal(modifier, animationSpec, content = content) | |
} |