Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

Ahmed Hendi iahmedhendi

🏠
Working from home
View GitHub Profile
@iahmedhendi
iahmedhendi / getCityNameByLatLong.php
Created Apr 30, 2019
get city name by latitude and longitude using google geocode api
View getCityNameByLatLong.php
<?php
/**
* Function to get City Name by latitude and longitude using google api geocode
* Ahmed Hendi
*
* @param latlong (String) is Latitude and Longitude with , as separator for example "21.3724002,39.8016229"
**/
function getCityNameByLatitudeLongitude($latlong)
{
@iahmedhendi
iahmedhendi / LinePollView.swift
Last active Dec 8, 2018
Class to make A double sides poll.
View LinePollView.swift
//
// LinePollView.swift
//
// Created by Hendi on 12/8/18.
// Copyright © 2018 Hendi. All rights reserved.
//
import Foundation
import UIKit
@IBDesignable class LinePollView: UIView {
View spinners.java
private void loadSpinners() {
dialog = ProgressDialog.show(AddVisitActivity.this, "", getResources().getString(R.string.loading), true);
WebService.getService().getLocations().enqueue(new Callback<LocationListResponse>() {
@Override
public void onResponse(Call<LocationListResponse> call, Response<LocationListResponse> response) {
countries = response.body().getCountry();
cities = response.body().getCity();
You can’t perform that action at this time.