What do you want to save?
Add Code snippet
New code examples
-
Javascript 2021-11-12 18:05:16
javascript through array
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Javascript 2021-11-07 19:36:11
add custom button in google map angular
<agm-map [latitude]="lat" [longitude]="lng" [zoom]=12 [mapTypeControl]="true" (boundsChange)="centerChanged($event)" (idle)="loadParkings()" (mapReady)="mapReady($event)" (boundsChange)=&q... Add solution -
Other 2021-11-07 09:05:21
ip subnet calculator code
import java.util.*; import java.util.regex.Pattern; import java.math.*; import java.text.NumberFormat; import java.text.ParseException; import java.net.*; public class example { public static void main(String[] args) { Scanner Scan = new Sc... Add solution -
Java 2021-11-05 02:42:08
javascript loop through arra
var data = [1, 2, 3, 4, 5, 6]; // traditional for loop for(let i=0; i<=data.length; i++) { console.log(data[i]) // 1 2 3 4 5 6 } // using for...of for(let i of data) { console.log(i) // 1 2 3 4 5 6 } // using for...in for(let i in data) { con... Add solution -
Other 2021-11-03 17:50:11
find the index of a selected item in flutter web
getDropDownMenuItems(snapshot) { Map<int, dynamic> mapWithIndex = snapshot.data.services.asMap; List<DropdownMenuItem> _items = []; mapWithIndex.forEach((index, item) { _items.add( DropdownMenuItem<int>( ... Add solution -
Javascript 2021-11-03 15:28:14
get data from fetch api into variable
<script> function getFromAPI(url, callback){ var obj; fetch(url) .then(res => res.json()) .then(data => obj = data) .then(() => callback(obj)) } getFromAPI('https://jsonplaceholder.typicode.com/posts', getData); function ... Add solution -
Javascript 2021-11-01 21:09:10
firebase timestamp to date angular
import { firestore } from 'firebase/app'; import Timestamp = firestore.Timestamp; @Injectable() export class YourService { .... list = (): Observable<any[]> => this.collection .snapshotChanges() .pipe( map(chang... Add solution