Hello World in Node.js

Watch out! This tutorial is over 7 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

This is how you would script “Hello World” in Node.js

// requiring the HTTP interfaces in node 
var http = require('http'); 

// create an http server to handle requests and response 
http.createServer(function (req, res) 
{ 

  // sending a response header of 200 OK 
  res.writeHead(200, {'Content-Type': 'text/plain'}); 

  // print out Hello World 
  res.end('Hello World\n'); 

// use port 8080
}).listen(8080); 

console.log('Server running on port 8080.');

Hello World in Morse code on Raspberry Pi

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

Somebody posted a tutorial on YouTube showing a LED blinking “hello world” in Morse code using a Raspberry Pi.  However, they only show the code executing, not how it was put together. They also don’t show the hardware setup 🙁

Continue reading

Hello World in Python

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

This is how you would display “Hello World” in Python.

print("Hello, World!")

Hello World in C

Watch out! This tutorial is over 8 years old. Please keep this in mind as some code snippets provided may no longer work or need modification to work on current systems.

This is how you would display “Hello World” in C.

#include<stdio.h>

main()
{
    printf("Hello World");

}