This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * FROM Table1 a | |
WHERE ( | |
acos(sin(a.Latitude * 0.0175) * sin(YOUR_LATITUDE_X * 0.0175) | |
+ cos(a.Latitude * 0.0175) * cos(YOUR_LATITUDE_X * 0.0175) * | |
cos((YOUR_LONGITUDE_Y * 0.0175) - (a.Longitude * 0.0175)) | |
) * 3959 <= YOUR_RADIUS_INMILES | |
) | |
////////////////////////////////////////////////////////////////////////////////////////////////// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$arrGeoData = array( | |
array( | |
"zipcode" => 777, | |
"latitude" => 37.234982, | |
"longitude" => -82.913799, | |
"cityname" => "tiflis", | |
), | |
array( | |
"zipcode" => 666, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
complete : function(data){ | |
var html = $.parseHTML( data ); | |
var container = $(".accomodation", html); | |
$(".accomodation", html).each(function(index,item){ | |
AllCurrentAccomodations.push($(item).attr('data-id')); | |
console.log($(item)); | |
console.log($(item).attr('data-id')); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = ["niko", "1", "niko", "3", "3", "1"]; | |
var unique = a.filter(function(item, i, ar){ return ar.indexOf(item) === i; }); | |
console.log(unique); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="map"></div> | |
<!-- Replace the value of the key parameter with your own API key. --> | |
<script async defer | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCkUOdZ5y7hMm0yrcCQoCvLwzdM6M8s5qk&callback=initMap"> | |
</script> | |
var locations = [ | |
['Bondi Beach', -33.890542, 151.274856, 4], | |
['Coogee Beach', -33.923036, 151.259052, 5], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(function(){ | |
// input type text ZE onkeyup | |
$('#activitysearch').keyup(function(){ | |
// მივიღოთ ინპუტ ტეგიდან ყოველ ღილაკის დაჭერაზე მისი მნიშვნელობა, დაბალ რეგისტრში | |
var val = $(this).val().toLowerCase(); | |
// მოსაძებნი კომპონენტები დავმალოთ ყველა, რათ გამოვაჩინოთ ისენი რომლებსაც იპოვის | |
$(".activity").hide(); | |
// გადავარჩიოთ ყვეალ და თითეულში მოვნახოთ ჩვენი ინპუტის მნიშვნელობა ენთხვევა თუ არა | |
$(".activity").each(function(){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews | |
</IfModule> | |
RewriteEngine On | |
#ეს ორი სტროფი თიშავს ssl-ს | |
RewriteCond %{HTTPS} on | |
RewriteRule ^/?$ http://%{HTTP_HOST} [R=302,L,NE] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public function gettagsAttribute($value){ | |
// dd($value.'ess'); | |
$tags = explode(',',str_replace(array('[',']','"'), '',$value)); | |
//dd(implode(',', $tags)); | |
return implode(',', $tags); | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).on("click", "#make", function(e){alert('test')}); | |
$("#loadmystatus").append("<button id='make'>Click me!</button>"); |