This file contains 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
// TypeScript Fast Crash Course Annotations | |
// Type inference | |
const car = { | |
brand: 'BMW', | |
engine: '3.4', | |
run: () => { | |
console.log(`Running ${car.brand}`); | |
} | |
}; |
This file contains 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
/** | |
* Provides a [ViewDataBinding] object of the declared type by | |
* calling [DataBindingUtil.setContentView] with the property owning [Activity] and the specified | |
* layout resource id | |
*/ | |
class ActivityBindingProvider<out T : ViewDataBinding>( | |
@LayoutRes private val layoutRes: Int) : ReadOnlyProperty<Activity, T> { | |
private var binding : T? = null |
This file contains 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
{ | |
"estados": [ | |
{ | |
"sigla": "AC", | |
"nome": "Acre", | |
"cidades": [ | |
"Acrelândia", | |
"Assis Brasil", | |
"Brasiléia", | |
"Bujari", |