Skip to content

Instantly share code, notes, and snippets.

View amitabhaghosh197's full-sized avatar

amitabha ghosh amitabhaghosh197

View GitHub Profile
@amitabhaghosh197
amitabhaghosh197 / Packery Tiles with Bootstrap.markdown
Last active September 9, 2017 18:38 — forked from anonymous/Packery Tiles with Bootstrap.markdown
Packery Tiles with Bootstrap #css #sass #packery
// global vars
var winWidth = $(window).width();
var winHeight = $(window).height();
// set initial div height / width
$('div').css({
'width': winWidth,
'height': winHeight,
});
@amitabhaghosh197
amitabhaghosh197 / google-maps-example.html
Last active September 9, 2017 18:48 — forked from ChrisLTD/google-maps-example.html
gmap #gmap #google-map #jquery #map
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script>
</head>
<body>
<div id="map" style="width: 500px; height: 400px;"></div>
@amitabhaghosh197
amitabhaghosh197 / 0_reuse_code.js
Last active August 29, 2015 14:12
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@amitabhaghosh197
amitabhaghosh197 / modernizr-tests.js
Last active September 9, 2017 18:51 — forked from danott/modernizr-tests.js
Mordenizr Test #mordenizr #javascript #mordernizr-test
/* modernizr-test.js
* Daniel Ott
* 3 March 2011
* Custom Tests using Modernizr's addTest API
*/
/* iOS
* There may be times when we need a quick way to reference whether iOS is in play or not.
* While a primative means, will be helpful for that.
*/
@amitabhaghosh197
amitabhaghosh197 / breadcrumbs.php
Last active September 9, 2017 18:52 — forked from julien731/breadcrumbs.php
Breadcrumbs for Wordpress Templates #wordpress #breadcrumbs
<?php
/**
* Generates a breadcrumb for WordPress
*
* This function will generate a very customizable breadcrumb
* for WordPress. It supports all kind of content (pages, posts,
* archives, CPT...).
*
* @author Julien Liabeuf <[email protected]>
* @copyright 2013 ThemeAvenue
@amitabhaghosh197
amitabhaghosh197 / google-maps-example.html
Last active September 9, 2017 19:03 — forked from ChrisLTD/google-maps-example.html
Google Map #google-map #gmap
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<title>Google Maps Multiple Markers</title>
<script src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.10.1.min.js"></script>
</head>
<body>
<div id="map" style="width: 500px; height: 400px;"></div>
$(function() {
var slider, // Global slider value to force playing and pausing by direct access of the slider control
canSlide = true; // Global switch to monitor video state
// Load the YouTube API. For some reason it's required to load it like this
var tag = document.createElement('script');
tag.src = "//www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);