This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
class FragmentHome : Fragment() { | |
//Any other widgets such as Button, Layouts and etc be declared also like this | |
var tvHomeLabel:TextView? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
} |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
//A special thanks to Sabih Siddiqui : https://github.com/siddiquisabih | |
changeDateToCurrentTimezone(date) { | |
let splitDate = date.split('-') | |
let year = parseInt(splitDate[0]) | |
let month = parseInt(splitDate[1]) | |
let splitCurrentDate = splitDate[2] | |
let newDate = splitCurrentDate.split('T') | |
let day = parseInt(newDate[0]) |
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'filter' | |
}) | |
export class FilterPipe implements PipeTransform { | |
transform(items: any[], searchText: string): any[] { | |
if (!items) return []; | |
if (!searchText) return items; | |
searchText = searchText.toLowerCase(); | |
return items.filter(it => { |
listOfObjects.filter(x => x.obj > 1); //or any other condition to filter the list | |
listOfObjects.filter(x => anotherList.includes(x.anyObject)); |
import { Component, OnInit, AfterViewInit } from "@angular/core"; | |
import { HttpClient } from "@angular/common/http"; | |
import { Title } from "@angular/platform-browser"; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/observable/of'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/delay'; | |
@Component({ |
Text scattered around the screen will move to arrange a message.
A Pen by Justus Tumacder on CodePen.
function checkDuplicateInObject(propertyName, inputArray) { | |
let seenDuplicate = false, testObject = {}; | |
let dupItem = null | |
inputArray.map((item) => { | |
const itemPropertyName = item[propertyName]; | |
if (itemPropertyName in testObject) { | |
testObject[itemPropertyName].duplicate = true; | |
item.duplicate = true; | |
seenDuplicate = true; |
A. Create Installation DVD ISO Via Dism: | |
1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory | |
2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file | |
Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount | |
3. Show the current version | |
Dism /Image:D:\temp\WimMount /Get-CurrentEdition | |
4. Show current version | |
Dism /Image:D:\temp\WimMount /Get-TargetEditions |