Skip to content

Instantly share code, notes, and snippets.

Async calls

<template>
<!-- 
When isLoading is true, the <div> is in the DOM, the <p> is not.
When isLoading is false, Vue will remove the <div> and add the <p> to the DOM,
at which point <MyComponent> will be created and passed the fetched data.
-->
@master-stm
master-stm / CSS3 Media Queries Template
Created June 9, 2020 16:05
CSS3 Media Queries template
/*
* Author: http://stuffandnonsense.co.uk/blog/about/hardboiled_css3_media_queries/
*/
/* Smartphones (portrait and landscape) ----------- */
@media only screen
and (min-device-width : 320px)
and (max-device-width : 480px) {
/* Styles */
}
@master-stm
master-stm / image_carousel_pro.dart
Created October 16, 2019 23:20 — forked from Blasanka/image_carousel_pro.dart
This is a code snippet to elaborate how to use image carousel pro package with dot indicator. You can find the package here: https://pub.dartlang.org/packages/carousel_pro. Note: there are so many image carousel packages that you can try, I have chosen this because I dont want to separately add dot indicator by the time I'm creating this snippet.