Skip to content

Instantly share code, notes, and snippets.

View prashant-shahi's full-sized avatar
:shipit:
Working remotely

Prashant Shahi prashant-shahi

:shipit:
Working remotely
View GitHub Profile
@prashant-shahi
prashant-shahi / gist:ce2cdd3b5a2790fefe4964b68024811c
Last active August 31, 2017 19:55
0x3d4F7aF0dF4Db2c9e693F099C0be1eeb05f01761
0x3d4F7aF0dF4Db2c9e693F099C0be1eeb05f01761
@prashant-shahi
prashant-shahi / index.html
Last active November 26, 2017 11:11
Google Maps : From Kathmandu to Jumla
<iframe src="https://www.google.com/maps/embed/v1/directions?origin=place_id:ChIJv6p7MIoZ6zkR6rGN8Rt8E7U&destination=place_id:ChIJUUHyjtYqozkR-cl2aWtwnww&key=AIzaSyACThlzmkHDrKqp_dP1dEBto2fjGtGcx9Y" width="800" height="600" frameborder="0" style="border:0" allowfullscreen></iframe>
@prashant-shahi
prashant-shahi / keybase.md
Created November 26, 2017 14:13
Keybase GitHub

Keybase proof

I hereby claim:

  • I am coolboi567 on github.
  • I am prashant_s (https://keybase.io/prashant_s) on keybase.
  • I have a public key ASARjuIN60xiF9E0SmB0OlYCAG15f2I5hHE00dTTLWUr1Qo

To claim this, I am signing this object:

@prashant-shahi
prashant-shahi / index.html
Created November 30, 2017 17:39
Google Maps in AngularJS
<!DOCTYPE html>
<html>
<head>
<title>Google Maps in AngularJS</title>
<link rel="stylesheet" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/angularjs/1.0.3/angular.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false&language=en"></script>
<script type="text/javascript" src="script.js"></script>
</head>
I use the first
—– BEGIN LICENSE —–
Michael Barnes
Single User License
EA7E-821385
8A353C41 872A0D5C DF9B2950 AFF6F667
C458EA6D 8EA3C286 98D1D650 131A97AB
AA919AEC EF20E143 B361B1E7 4C8B7F04
@prashant-shahi
prashant-shahi / all-trackers.txt
Created May 12, 2018 17:03
ALL WORKING TORRENT TRACKERS - 2018
udp://tracker.opentrackr.org:1337/announce
udp://9.rarbg.to:2710/announce
udp://zephir.monocul.us:6969/announce
http://0d.kebhana.mx:443/announce
udp://retracker.coltel.ru:2710/announce
@prashant-shahi
prashant-shahi / _usage.md
Created May 12, 2018 17:44 — forked from tbranyen/_usage.md
OpenWeatherMap / Weather Icons integration
  1. Include Weather Icons in your app: https://github.com/erikflowers/weather-icons

  2. Include the below JSON in your application, for example purposes, lets assume it's a global named weatherIcons.

  3. Make a request to OpenWeatherMap:

req = $.getJSON('http://api.openweathermap.org/data/2.5/weather?q=London,uk&callback=?');
@prashant-shahi
prashant-shahi / index.html
Last active August 9, 2018 13:40
Where Am I - Google Map
<!DOCTYPE html>
<html>
<head>
<script>
function myMap() {
var myCenter = new google.maps.LatLng(51.508742,-0.120850);
var mapCanvas = document.getElementById("map");
var mapOptions = {center: myCenter, zoom: 5};
var map = new google.maps.Map(mapCanvas, mapOptions);
var marker = new google.maps.Marker({position:myCenter});
@prashant-shahi
prashant-shahi / app.js
Created November 22, 2018 09:02
NodeJs API backend application without Express (http module)
var http = require('http');
http.createServer(function (req, res) {
res.writeHead(200, {'Content-Type': 'text/html'});
var url = req.url;
var method = req.method;
if (url === '/') {
res.write('Welcome to Expressless NodeJs application');
res.end();
} else if(url ==='/print') {
@prashant-shahi
prashant-shahi / response-status-code.md
Created December 3, 2018 06:26
HTTP Response Status Code
		***********RESPONSE STATUS CODE *******************

1xx : 	Informational (Not Used)

2xx : 	Successfull

		HTTP_200_OK
		HTTP_201_CREATED
		HTTP_202_ACCEPTED

HTTP_203_NON_AUTHORITATIVE_INFORMATION