Instantly share code, notes, and snippets.

View basic_server.js
const http = require('http');
const url = require('url');
const fs = require('fs');
console.log('Server Started');
http.createServer(function(req, res){
fs.readFile('./index.html', (error, data) => {
if (error) {
res.writeHead(404, {'Content-type':'text/plain'});
View html5-template.html
<!doctype html>
<html>
<title>PAGE</title>
<meta charset="utf-8">
<body onload="inform()">
<template id="chelli-link">
<style>
a {
color: red;
View baby-router.html
<!doctype html>
<html>
<title></title>
<meta charset="utf-8">
<style>
page {
display: none;
}
</style>
<body onload="inform()">
View modules.css
/* Staring Sheet for Changing OrgSync Module Styles
This stylesheet contains each module id */
/* Defaults */
.pod {
}
/* Calendar Module */
#module_calendar {}
View dir.conf
<IfModule mod_dir.c>
DirectoryIndex index.php index.html index.cgi index.pl index.xhtml index.htm
</IfModule>
# vim: syntax=apache ts=4 sw=4 sts=4 sr noet
View index.html
<!doctype html>
<html>
<title></title>
<meta charset="utf-8">
<link rel="stylesheet" href="reset.css" />
<link rel="stylesheet" href="style.css" />
<body>
<header>
<nav></nav>