-
JAVA 9 takeWhile and doWhile
Trying to get my hands wet with Java 9. Looks like the streams have got another round of good method updates. Here in this gist, we are trying to demonstrate the takeWhile and the dropWhile filter in the Java 9. public static List createSong() { return Arrays .asList(new Song(“Venilave”, 2000, “Rehman”), new Song(“Va Va Vasanthame”,…
-
TED talk Friday., but wait is it.
I really enjoyed this commencement speech from David foster. This was from Tim Ferris news letter. The narration where the speech is talking about compassion. In the middle of the speech, I was thinking this is another left wing constructed speech talking about first world problems. I was wrong, and am glad that I heard…
-
Free-code camp Inventory update solution
One other interesting problem with the inventory update challenge from freecodecamp. After this, it is going to be the modules for creating calculators and other challenges. function updateInventoryWithArr(curInv, newInv) { var arr1 = curInv; var arr2 = newInv; var finalOutPutArr = []; var arr1Map = new Map(); var arr2Map = new Map(); var arr3Map =…
-
Bootstrap 4 Tutorial
One of a kind tutorial, packed with all that is needed to start Bootstrap 4. When we are debugging an issue for some server side issue, we will need to know a lot of nit-picky details of Bootstrap. But this was a quite a walk thro’ of all the items that are needed to know…
-
Freecode camp checkCashRegister problem.
I did not like the solution to this problem. But here it is., the question was about giving exact change back to user. The probiem with a $100 spent for a $3.26 purchase. var changeGiven = []; var total = 0; var quarters = 0; var pennies = 0; var nickels = 0; var dimes…