Skip to content

Instantly share code, notes, and snippets.

View iahmedhendi's full-sized avatar
🏠
Working from home

Ahmed Hendi iahmedhendi

🏠
Working from home
View GitHub Profile
@iahmedhendi
iahmedhendi / getCityNameByLatLong.php
Created April 30, 2019 07:32
get city name by latitude and longitude using google geocode api
<?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 December 8, 2018 00:46
Class to make A double sides poll.
//
// LinePollView.swift
//
// Created by Hendi on 12/8/18.
// Copyright © 2018 Hendi. All rights reserved.
//
import Foundation
import UIKit
@IBDesignable class LinePollView: UIView {
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();