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
//Javascript Logic 101 | |
//make "that" have the value of true (boolean) | |
that = true | |
//check if "that" is false | |
if (!that) { //returns false. (it is not true that the value is set to false) | |
//do something | |
} |
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
<!-- video pauses when tab is not in view. Uses Page Visibility API. --> | |
<html> | |
<head> | |
<title>Page Visibility API</title> | |
</head> | |
<body> | |
<p>Credit for video: http://ptaff.ca/orage_montreal/?lang=en_CA </p> | |
<video> | |
<source src="1696_lightnings.ogg" type="video/ogg"> | |
</video> |
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
/* | |
A well commented http server written in node. | |
Written by: Tom Lane, http://github.com/tomlane | |
All Public Work by Tom Lane is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.0 UK: England & Wales License. | |
*/ | |
//calling the required http and fs modules | |
var http = require('http'); |
NewerOlder