This file contains 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
/* | |
http://stackoverflow.com/questions/28948383/how-to-implement-debounce-fn-into-jquery-keyup-event | |
*/ | |
$('input').keyup(debounce(function(){ | |
var $this=$(this); | |
//alert( $this.val() ); | |
var n1 = $this.val(); | |
var n2 = $('#n2').val(); | |
var n3 = $('#n3').val(); |
This file contains 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
class Node{ | |
Id value; | |
List<Node> children; | |
{ | |
children = new List<Node>(); | |
} | |
} | |
parseTree( Map<String,List<Id>> treeMap,String parentId){ |
This file contains 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
<html> | |
<header> | |
<style> | |
body{color:#333;padding:1.5em} | |
.responsive-new {border-collapse:collapse;width:100%} | |
.responsive-new th{background-color:#eee;font-weight:700; } | |
.responsive-new th,td{border-bottom: 1px solid #ddd; padding:5px; text-align:left} | |
.fname{width:15%} | |
.lname{width:15%} |
This file contains 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
.parent{ | |
min-height: 400px; | |
min-width : 400px; | |
background-color:yellow; | |
} | |
.parent .son{ | |
min-height: 100px; | |
min-width : 100px; | |
background-color:red; |
This file contains 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 performParent = function(){ | |
//perform 1st async | |
var promise1 = performAsync('func1',5); | |
// We want to chain two async operations | |
promise1.then(function(data){ | |
console.log('data from 1st async operation',data); | |
//perform second async operation |
This file contains 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
<apex:page id="pageId" controller="AccountGeoLocationDemo"> | |
<head> | |
<style type="text/css"> | |
#map-canvas { | |
height : 512px; | |
} | |
</style> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script> | |
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?libraries=places&key=AIzaSyBMFdqVZd9idw-0pYEsWQ9xxM9mNz7f9E4"> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style type="text/css"> | |
#map-canvas { | |
height : 500px; | |
} | |
</style> | |
<title></title> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<!--<script src="https://code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script src="https://code.jquery.com/ui/1.11.4/jquery-ui.js"></script>--> | |
<script src="./jquery-1.11.3.js"></script> | |
</head> | |
<style type="text/css"> | |
.target{ |
This file contains 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
/* | |
Generic Styling, for Desktops/Laptops | |
Reference : https://css-tricks.com/responsive-data-tables/ | |
*/ | |
table { | |
width: 100%; | |
border-collapse: collapse; | |
} | |
/* Zebra striping */ | |
tr:nth-of-type(odd) { |