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
/* This makes the transition smooth.Add it globally. */ | |
div { | |
-webkit-transition: all 0.3s ease-in-out 0s; /* Chrome, Safari 3.1+ */ | |
-moz-transition: all 0.3s ease-in-out 0s; /* Firefox 3.5+ */ | |
-ms-transition: all 0.3s ease-in-out 0s; /* IE 9 */ | |
-o-transition: all 0.3s ease-in-out 0s; /* Opera 10.50-12.00 */ | |
transition: all 0.3s ease-in-out 0s; /* Firefox 16+, IE 10+, Opera 12.10+ */; | |
} | |
.circular { |
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
var conn = new Mongo(); | |
db = conn.getDB(<DB_NAME>); | |
var cursor = db.<COLLECTION>.find(); | |
var items = []; | |
items = cursor.toArray(); | |
var dbstruc = {}; | |
for (var i = 0; i < items.length; ++i) { | |
var target = items[i]; | |
getKP(target,dbstruc); | |
} |
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
var getCells = function (num) { | |
var cellArray = []; | |
for (var i = 0; i < num; ++i) { | |
cellArray.push(cellAt(i + 1)); | |
} | |
return cellArray; | |
}; | |
var cellAt = function (num) { | |
if (num <= 26) { | |
return String.fromCharCode(97 + num - 1); |
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
var BinaryTree = function (val) { | |
'use strict'; | |
this.val = val || null; | |
this.left = null; | |
this.right = null; | |
}; | |
BinaryTree.prototype.create = function (num) { | |
'use strict'; | |
var i; | |
for (i = 0; i <= num; i = i + 1) { |
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
var Node = function (val) { | |
this.val = val || null; | |
this.next = null; | |
}; | |
var SinglyLinkedList = function () { | |
this.head = null; | |
this.tail = null; | |
}; |
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
class Node{ | |
int val; | |
Node left; | |
Node right; | |
} | |
class Tree{ | |
Node root; | |
} |
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
var a = "{{{}}}}"; | |
var ts = []; | |
var mismatch = false; | |
for (var i = 0; i < a.length; ++i) { | |
if (a[i] === '{') { | |
ts.push('{'); | |
} | |
if (a[i] === '}') { | |
if (ts.length == 0) { | |
mismatch = true; |
Apart from the official and the best android resource (http://developer.android.com/develop/index.html), here are few links to help one get started with android.
I have two accounts on github, one is personal account and other is office account. I typically face this problem to manage pushing to different repos using these different accounts.
I found a great way of doing it without any hassle.
Suppose my personal id is [email protected] and office account is [email protected]
Follow the steps mentioned here to generate ssh keys : https://help.github.com/articles/generating-ssh-keys/
OlderNewer