TODO: Write a project description
TODO: Describe the installation process
if ("geolocation" in navigator) { | |
navigator.geolocation.getCurrentPosition(function(position) { | |
// Yes navigator got geolocation and you got permitions to use it | |
alert(position.coords.latitude, position.coords.longitude); | |
}); | |
} else { | |
alert('sorry your browser not support geolocalisation'); | |
} |
private boolean isVisibile(Marker marker) | |
{ | |
if(googleMap != null) | |
{ | |
//This is the current user-viewable region of the map | |
LatLngBounds latLongBounds = googleMap.getProjection().getVisibleRegion().latLngBounds; | |
if(latLongBounds.contains(marker.getPosition())) | |
//If the item is within the the bounds of the screen | |
return true; |
// On resizing window on desktop | |
$(window).bind('resize',function(){ | |
if($(window).innerWidth() < 450) { | |
// your code here for responsive | |
}else{ | |
//your code here for desktop | |
} | |
}); | |
//end | |
// Checking if its on desktop and make |
# Stop all containers | |
sudo docker stop $(sudo docker ps -a -q) | |
# Delete all containers | |
sudo docker rm $(sudo docker ps -a -q) | |
# Delete all images | |
sudo docker rmi $(sudo docker images -q) |
drush user-create adminuser --mail="[email protected]" --password="UserPw"; drush user-add-role "administrator" adminuser |
by Stanford Web Services
Version: 1.0.0
Date: October 30, 2015
This document is meant to be a comprehensive guide to web development standards for Stanford Web Services around Drupal web development. This document is our canonical source and guide.
<?php | |
/* | |
theme_image() override. | |
*/ | |
function THEME_image($vars) | |
{ | |
// [Accessibility] Images must always have an alt attribute. | |
if (! isset($vars['alt'])) { | |
$vars['alt'] = ''; |
### --- 04/18/18 | elementaryOS --- ### | |
alias gc='git commit -am' | |
alias lsd='ls -la' | |
alias gco='git co' | |
alias gs="git status" | |
# ls aliases | |
alias ll='ls -alF' | |
alias la='ls -A' |