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
// Flutter doc recomenda usar aspas simples ao inves de duplas | |
https://github.com/flutter/flutter/wiki/Style-guide-for-Flutter-repo#prefer-single-quotes-for-strings |
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
// Unsubscribing from observables that are not required anymore | |
https://stackoverflow.com/questions/38008334/angular-rxjs-when-should-i-unsubscribe-from-subscription/41177163#41177163 |
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
import { isDate } from 'moment'; | |
export class DateTools { | |
static getToday() { | |
return new Date(); | |
} |
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
import 'chartjs-plugin-annotation'; | |
static chartOptions() { | |
const options: any = { | |
responsive: true, | |
title: { | |
display: true, | |
text: '' | |
}, | |
scales: { |
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
// ------------- SOURCE ---------- | |
http://econym.org.uk/gmap/geicons.htm | |
// -------------------------------- | |
http://maps.gstatic.com/mapfiles/markers2/drag_cross_67_16.png | |
http://maps.gstatic.com/mapfiles/markers2/measle.png | |
http://maps.gstatic.com/mapfiles/markers2/measle_blue.png |
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
//Need to pass array of colors for each data to avoid grey | |
chartColors = [ | |
{ | |
backgroundColor: ['#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff', '#007bff', '#007bff', | |
'#007bff', '#007bff', '#007bff'], |
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
<agm-map #agmmap | |
[latitude]="lat" | |
[longitude]="lng" | |
[maxZoom]="25" | |
[zoom]="3" | |
[zoomControl]="true" | |
[fitBounds]="bounds" | |
[mapTypeId]="'roadmap'" | |
[mapTypeControl]="true" | |
[fullscreenControl]="true" |
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
styles: [ | |
{elementType: 'geometry', stylers: [{color: '#242f3e'}]}, | |
{elementType: 'labels.text.stroke', stylers: [{color: '#242f3e'}]}, | |
{elementType: 'labels.text.fill', stylers: [{color: '#746855'}]}, | |
{ | |
featureType: 'administrative.locality', | |
elementType: 'labels.text.fill', | |
stylers: [{color: '#d59563'}] | |
}, | |
{ |
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
let mapOptions = { | |
center : new google.maps.LatLng(this.device.lat, this.device.lng), | |
zoom : this.mapDefaultsZoom, | |
// maxZoom: 15, | |
mapTypeId: google.maps.MapTypeId.HYBRID, | |
mapTypeControl: true, | |
mapTypeControlOptions: | |
{ | |
style: google.maps.MapTypeControlStyle.DROPDOWN_MENU, // Possible Values: DEFAULT, DROPDOWN_MENU and HORIZONTAL_BAR | |
}, |
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
<div class="home-component" | |
[style.width.px]="width" | |
[style.height.px]="height">Some stuff in this div | |
</div> | |
<div [style.height.%]="height">Some stuff in this div</div> |
NewerOlder