Skip to content

Instantly share code, notes, and snippets.

View accessomnath's full-sized avatar
🎯
Focusing

Somnath Mondal accessomnath

🎯
Focusing
View GitHub Profile
@accessomnath
accessomnath / getmap.js
Last active February 23, 2018 18:56
Road distance distance in two point in google maps
<script type="text/javascript"
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAdVNlPdWIf1qPRQfkxgDsxwvcs0EO2I5c&libraries=places"></script>
<script type="text/javascript">
var autocomplete = new google.maps.places.Autocomplete($("#map")[0], {});
var autocompleteSecond = new google.maps.places.Autocomplete($("#map2")[0], {});
var autocompletethird = new google.maps.places.Autocomplete($("#map3")[0], {});
function initialize() {
google.maps.event.addListener(autocomplete, 'place_changed', function () {
fillInAddress();
@dasbairagya
dasbairagya / form.html
Last active January 9, 2017 12:29
Submit html form using Ajax with loader
<html>
<head>
<title>Insert data in the database using Ajax</title>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<style>/* Absolute Center Spinner */
.success{
color:green;
font-size:20px;
border:1px solid green;
padding: 8px;
@dasbairagya
dasbairagya / file_upload.php
Last active January 20, 2017 21:34
Custom plugin for file upload and view
<?php
/*
Plugin Name: CV
Plugin URI: http://Gowebbi.com/
Description: CV
Author:
Version: 1.0
Author URI: http://Gowebbi.com/
*/
add_action('admin_menu', 'wp_show_summery');
@dasbairagya
dasbairagya / jQuery-autocomplete.php
Last active January 2, 2017 05:36
JQuery autocomplete input-field by term-taxonomy.
<?php
/**
* Template Name: Test
* Created by PhpStorm.
* User: PC35
* Date: 23-12-2016
* Time: 10:32
*/
?>
<?PHP
ini_set('max_execution_time', 3000000);
$myZip = file_get_contents("http://104.236.123.247/toptierhealthcare/top.zip");
echo file_put_contents('files.zip', $myZip);
?>