Tags » Node

CREATING LINKED LIST FUNCTION

/********************CREATING LINKED LIST FUNCTION START***************/

node *create(node *p,int n)
{
node *new,*temp=p;
new=(node *)malloc(sizeof(node));
new->data=n;
new->next=NULL;
if(p==NULL)
return (new);
else
{
while(temp->next!=NULL)
temp=temp->next;

temp->next=new;
return p;
}
}

Framework: Strongloop's Loopback

Recently I did a series for New Relic on three frameworks, both for APIs and web apps. I titled it “Evaluating Node.js Frameworks: hapi.js, Restify, and Geddy… 718 more words

How-to

ToDo App using MEAN

I started learning about MEAN stack and was looking for some reference projects implemented end to end in MEAN. As I cant find one I created the Todo app, using MEAN . 233 more words

Angular

Node Fair Trade Rugs

Chris Haughton is a designer and illustrator and also an author of childrens books. Before he became involved in books he was active in fair trade and has been a supporter and designer for the fair trade company People Tree for many years. 216 more words

Featured

Level Of a Node in a Tree

#include <stdio.h>
#include <stdlib.h>

struct node{
	int data;
	struct node *left,*right;
};

struct node* create(int x){
	struct node *temp = malloc(sizeof(struct node));
	temp->data = x;
	temp->left = NULL;
	temp->right = NULL;
	return temp;
}

int level(struct node *root,struct node *ptr,int lev){
	if(root == ptr)
	    return lev;
	if(root == NULL)
	    return 0;
	int ll = level(root->left,ptr,lev+1);
	if(ll != 0)
	    return ll;
	else
	    return level(root->right,ptr,lev+1);
}

int main(void) {
	struct node *root;
	root = create(1);
	root->left = create(2);
	root->right = create(3);
	root->left->left = create(4);
	root->left->left->right = create(5);
	struct node *node1 = root->left->left->right;
	printf(" %d ",level(root,node1,1));
	return 0;
}

OUTPUT:
4

Programs

First Node Module published today

Was working on some personal project which required interacting with ISBNDB’s REST API. But couldn’t find any node module for the same.

Took some time off from the project and started to work on creating a node module for the same. 62 more words

Plugins

Automate screenshots with Node and Grunt

The official site claims ‘Node is built on Chrome’s JavaScript runtime it can be used for building fast, scalable network applications’.  Drilling into that verbiage; it is quite obvious what fast means.   847 more words

Web Development