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 drawMap() { | |
| scope.worldMap = new Datamap({ | |
| scope: 'world', | |
| element: divMap, | |
| projection: 'mercator', | |
| geographyConfig: { | |
| 'defaultFill': '#D7D7D7', | |
| 'blue': '#7dc8eb', | |
| 'noData': '#9c9c9c', |
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
| [ | |
| {}, | |
| {}, | |
| ...and so on.. | |
| ] | |
| [ | |
| {"name" : "Jason", "sex" : "m", "age" : "5", "nationality" : "italian"}, | |
| {"name" : "Alice", "sex" : "f", "age" : "3", "nationality" : "mexican"} | |
| ] |
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
| JavaScript contains 6 different types: | |
| 1.Numbers | |
| 2.Strings | |
| 3.Booleans | |
| 4.Functions | |
| 5.Undefined | |
| 6.Objects | |
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
| window.onload = function() { | |
| var fileInput = document.getElementById("fileInput"); | |
| var fileDisplayArea = document.getElementById("fileDisplayArea"); | |
| fileInput.addEventListener('change', function(e) { | |
| var file = fileInput.files[0]; | |
| var typeText = /text.*/; | |
| if(file.type.match(typeText)) { | |
| var reader = new FileReader(); |
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 class ZTree { | |
| private Node root; | |
| public ZTree() { | |
| root = new Node(); | |
| } | |
| public ZTree(Node root) { | |
| root = root; | |
| } | |
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
| /* Linked List */ | |
| public class ZLinkedList { | |
| private ZElement head; | |
| public ZLinkedList() { | |
| head = new ZElement(); | |
| } | |