Skip to content

Instantly share code, notes, and snippets.

View EduardinDev's full-sized avatar
😀
I may be slow to respond.

Eduardo Olivo EduardinDev

😀
I may be slow to respond.
  • Universidad Técnica del Norte
  • Ecuador
View GitHub Profile
@Klerith
Klerith / debouncer.dart
Last active September 14, 2021 04:55
Dart: Debouncer
import 'dart:async';
// Creditos
// https://stackoverflow.com/a/52922130/7834829
class Debouncer<T> {
Debouncer({
required this.duration,
this.onValue
});
@Klerith
Klerith / extras.xml
Created August 18, 2020 13:20
Geolocation y Estado
<!-- Internet -->
<uses-permission android:name="android.permission.INTERNET"/>
<!-- State -->
<uses-permission android:name="android.permission.READ_PHONE_STATE"/>
<uses-permission android:name="android.permission.WAKE_LOCK" />
<!-- Permissions options for the `location` group -->
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
@EduardinDev
EduardinDev / iteracionesHashMap.java
Created September 14, 2021 06:04
Tipos de iteraciones en la colección HashMap de java
public static void main (String[] args) {
//a map with key type : String, value type : String
Map<String,String> mp = new HashMap<String,String>();
mp.put("John","Math"); mp.put("Jack","Math"); map.put("Jeff","History");
//3 differents ways to iterate over the map
for (String key : mp.keySet()){
//iterate over keys
System.out.println(key+" "+mp.get(key));
}