Skip to content

Instantly share code, notes, and snippets.

View socialpixe's full-sized avatar
💭
I may be slow to respond.

Sandeep Singh socialpixe

💭
I may be slow to respond.
  • India
View GitHub Profile
@socialpixe
socialpixe / setting-up-lamp-ec2.md
Created August 4, 2018 06:20 — forked from keithweaver/setting-up-lamp-ec2.md
Setting up a LAMP stack on Amazon Web Services (AWS) EC2

Setting Up EC2

  1. Sign into AWS
  2. Open EC2
  3. Click Instances on Left Side
  4. Click "Launch Instance"
  5. Select "Amazon Linux AMI 2016.09.1 (HVM), SSD Volume Type"
  6. Select Free Tier
  7. Click review and launch
  8. Press Launch
@socialpixe
socialpixe / CalcDistance.js
Created November 17, 2021 04:42 — forked from dmozzy/CalcDistance.js
Calculate Distance using google.maps.geometry.spherical.computeDistanceBetween
<script src="http://maps.google.com/maps/api/js?sensor=false&libraries=geometry" type="text/javascript"></script>
<script type="text/javascript">
function calcDistance (fromLat, fromLng, toLat, toLng) {
return google.maps.geometry.spherical.computeDistanceBetween(
new google.maps.LatLng(fromLat, fromLng), new google.maps.LatLng(toLat, toLng));
}
</script>