Monthly Archives: May 2017

A simple todo app in javascript

Asked in Box onsite interview. With a node.js server on backend. $().ready(function() { $(‘#add’).on(‘click’, addTask); $(‘#tasks’).on(‘click’, markComplete); // Alternative way // var tasksElement = document.getElementById(‘tasks’); // tasksElement.addEventListener(‘click’, markComplete); //document.getElementById(‘task-input’).onkeydown = function(e){ $(‘#task-input’).on(‘keydown’, function(e) { if(e && e.keyCode == 13){ addTask(); … Continue reading

Posted in Javascript | Leave a comment

System Design Resources

Grokking the System Design Interview https://www.educative.io/collection/5668639101419520/5649050225344512

Posted in General | Leave a comment

Atlassian Hackerrank Interview

1) Implement a method ‘find’ that will find the starting index (zero based) where the second list occurs as a sub-list in the first list. It should return -1 if the sub-list cannot be found. Arguments are always given, not … Continue reading

Posted in Algorithms | Leave a comment

Authentication for REST Apis

https://hashedin.com/2016/07/05/choosing-right-authentication-for-rest-apis/

Posted in Concepts | Leave a comment