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
/** | |
* | |
* @param {number} x | |
* @param {number} y | |
* | |
* @returns function | |
*/ | |
var Calculator = (function(){ | |
var _privateVariable = 100; | |
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 xmlns="http://www.w3.org/1999/xhtml"> | |
<head> | |
<title>Demo</title> | |
<style type="text/css"> | |
#fade { | |
display: none; | |
position:absolute; | |
top: 0%; |
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
<style type="text/css"> | |
body{ | |
overflow:hidden; | |
} | |
#flipbook{ | |
width:400px; | |
height:300px; | |
} |
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
<div id="flipbook"> | |
<div class="hard"> Turn.js </div> | |
<div class="hard"></div> | |
<div> Page 1 </div> | |
<div> Page 2 </div> | |
<div> Page 3 </div> | |
<div> Page 4 </div> | |
<div class="hard"></div> | |
<div class="hard"></div> | |
</div> |
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
<script type="text/javascript"> | |
$("#flipbook").turn({ | |
width: 400, | |
height: 300, | |
autoCenter: true | |
); | |
</script> |
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
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
<script type="text/javascript" src="http://www.turnjs.com/lib/turn.min.js"></script> |
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
<?php | |
/** | |
* User Class to get the Aadhar and name | |
*/ | |
class UserAccount { | |
private $name; | |
private $aadharNumber; | |
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
function divide(x, y) { | |
var div = x / y; | |
console.log("divide of Numbers -> " + div); | |
} | |
function mul(x, y) { | |
var mul = x * y; | |
console.log("Mul of Numbers -> " + mul); | |
divide(x, y); | |
} |
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
// This is the example of clocking code. | |
var a = $.syncAjaxCall("//A.com"); | |
var b = $.syncAjaxCall("//B.com"); | |
var c = $.syncAjaxCall("//C.com"); |
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 array1 = ['a', 'b', 'c']; | |
array1.forEach(function(element) { | |
console.log(element); | |
}); | |
function asyncForLoop(array, cb) { | |
array.forEach(function(i) { | |
setTimeout(cb, 0, i); | |
}); |
OlderNewer