Skip to content

Instantly share code, notes, and snippets.

View MustansirZia's full-sized avatar
🏔️
Taking chill pills.

Mustansir Zia MustansirZia

🏔️
Taking chill pills.
View GitHub Profile
@MustansirZia
MustansirZia / index.js
Last active May 17, 2020 10:20
Reverse Geocode JS [ES7] Gist - Latitude/Longitude to local address.
/**
* Created by M on 15/04/17. With ❤
*/
/*
* Reverse Geocode JS [ES7] Gist. Converts latitude/longitude to a human readable address.
* Firstly, tries to judge whether the lat/long is over a road. If so, returns the local street address
* with state and country stripped out.
* If not, returns the local address for the nearest point of interest. (or place). The second condition works even if
* the lat/long belongs to a disputed territory such as Kashmir, India.
@MustansirZia
MustansirZia / index.js
Last active April 12, 2017 09:04
A TCP server written in NodeJS (ES5) that carries data from TCP clients to Deepstream.
'use strict';
/**
* Created by M on 11/04/17. With ❤
*/
// The Job of this server is to listen for tcp connections on port 3000
// and then to transmit data coming from a tcp client to Deepstream (https://deepstream.io/)
// I made this gist so people could use the language of their choice for Deepstream. (Since Deepstream clients are only available for JavaScript and Java)
// I'm currently using Go-lang as the server side language and need to push events on Deepstream. Thus, the gist!