How to get a node content programmatically?
Assuming by 'contents' you mean the HTML for the node in a particular view mode, you're looking for node_view():


  Generates an array for rendering the given node.


e.g.

$node = node_load(1);
$view = node_view($node, 'full');
$rendered = drupal_render($view);