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> | |
namespace = {abc:{person:{}}} | |
namespace.abc.common = function() { | |
var arr = []; | |
var setArr = function(v) { | |
if (v) { | |
arr.push(v); | |
} | |
} |
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
/** | |
* Ability to find a word by "text" | |
* Ability to navigate to a particular index | |
*/ | |
var template = '<div><div id="words-iterator" style="position:absolute;top:0;left:0;width:50%;height:50%;margin-left:25%;margin-top:5%;z-index:1111;background:whitesmoke;text-align:center;padding-top:50px;"><h1></h1><p><span id="position-index"></span> of <span id="position-total"></span></p><p id="word-definition"></p>'+ | |
'<div style="position: inherit;bottom: 10px;margin-left: 50%;">'+ | |
'<p><input type="text" id="jumpIndex" style="width: 40px;padding: 0;"><span><button id="jumpToIndex" style="height: 23px;">Jump To Index</button></span></p>'+ | |
'<button id="previous">Previous</button> <button id="next">Next</button></div></div><div style="opacity:0.5;position:absolute;top:0;left:0;width:100%;height:100%;z-index:1110;background:yellow"></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
List<Integer> parent_categories | |
************************************************************ | |
HomeFragment | |
lstCategoryWrapper -> parent_categories.forEach(pc-> viewModel.getCategory(pc.id)) | |
.stream() | |
.collect(List<LiveData<Resource<CategoryWrapper>>>) | |
lstCategoryWrapper.forEach(LiveData<Resource≤CategoryWrapper>>> liveData->{ |