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 / angularjs-markdown-notes-app.markdown
Created December 12, 2018 15:45
AngularJS Markdown Notes App

AngularJS Markdown Notes App

I use notes apps like Google Keep and Apple Notes all the time, but I wish I could use Markdown in them, so I built this.

Issues/Todo: If anyone has an elegant way of links in the contenteditable div being clickable I'd love to hear it. Tried this method but doesn't provide a great user experience.

A Pen by Nick Moreton on CodePen.

License.

@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>