This file contains hidden or 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
# Author: Vitor | |
word = input("Enter your word: ") | |
if word == word[::-1] or len(word) < 2: | |
print("Your word IS a palindrome") | |
else: | |
print("Your word IS NOT a palindrome") |
This file contains hidden or 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="row"> | |
<? foreach ($uuids as $uuid): ?> | |
<div class="col-md-4"> | |
<? component("sigpark.php", $uuid); ?> | |
</div> | |
<? endforeach; ?> | |
</div> |
This file contains hidden or 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="progress" style="height: 20px;"> | |
<div class="progress-bar progress-bar-stripped" role="progressbar" | |
aria-valuenow="25" aria-valuemin="0" aria-valuemax="100" style="width: 50%"> | |
<span>30%</span> | |
</div> | |
</div> |
This file contains hidden or 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> |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: { |
OlderNewer