Skip to main content

Posts

Showing posts from 2015

JS: Insertion Sort

Insertion sort is a simple sorting algorithm that builds the final sorted array (or list) one item at a time. Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertion sort removes one element from the input data, finds the location it belongs within the sorted list, and inserts it there. It repeats until no input elements remain. Here is a practical implementation of it.     

JS: Fibonacci sequence

The first 21 Fibonacci numbers F n for n = 0, 1, 2, ..., 20 are: 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765. The sequence can also be extended to negative index n using the re-arranged recurrence relation F n-2 = F n - F n-1 So here is a sample program to generate Fibonacci series or sequence.  

App: The Legacy Game of FLAME

It is a legacy game of FLAME, that children and teenagers use to play on their crushes. The theory of flame states that it could forecast the relationship in between 2 person by doing a flame-test on their individual names. The result of flame-test would be one out of these F = Friends  L = Lovers  A = Affectionate  M = Marriage  E = Enemies Now keep the worry aside and let's play the game of flame. Calculate The FLAME test result is NA Although it's fun but please don't rely on this as a matter of concern. Have fun!

English Grammar: Tenses - Cheatsheet

You can download the tenses cheatsheet as pdf from here .

Sanskrit: The dictionary of बीजाक्षर

It is not correct to say that one Sanskrit word can be used in different places with different meaning in different contexts as संस्कृत is considered, even by Western Indologists [uncompromising people], as a scientific language which means in-variance in truth factors, a basic requirement of a scientific entity and, it consists basically of 'बीजाक्षर' – conceptual seeds, embodying an entire ‘Concept’ in a Phenom. The dictionary of बीजाक्षर is as follows: अ = antonym of,  आ = invite,  इ = include,  उ = uplift,  ए = era,  ओ = old,  अं = to the edge, ultimate, क = what, question, inquiry,  ख = space, sky,  ग = to move,  घ = to bend,  च = and, in connection with,  छ = clean,  ज = to take birth,  झ = splash,  त = place, placement,  थ = heavy placement, heavily placed,  द = to give,  ध = holding,  न = negative, non,  ट = virtue,  ठ = large,  ड = scare, causing fear,  ढ = poisonous,  ण = atom, very small quantity.  प = guard, to take guard,  फ = to manif

JS: Open on InAppBrowser for Cordova/Phonegap based mobile application

There is requirement when we want to load the external link inside our mobiapp. So to ease the process I have created a class that will help in achieving it. You just have to create an instance of it. That's it! var OpenOnInAppBrowser = function () { window.name = "projectname"; var iabRef = null; window.notifier = { flag: false, start: function() { if(!window.notifier.flag) { window.notifier.flag = true; navigator.notification.activityStart('Loading!', 'Please wait ...'); } }, stop: function() { window.notifier.flag = false; navigator.notification.activityStop(); } } var iabLoadStart = function (event) { console.log('OpenOnInAppBrowser -> iabLoadStart: ' + event.type + ' - ' + event.url); window.notifier.st