Skip to content

Instantly share code, notes, and snippets.

@shikolay
shikolay / ModulePattern.js
Created October 30, 2012 01:25 — forked from paulobsf/ModulePattern.js
JavaScript Module Pattern
/*
* Source: http://www.jeremyjohnstone.com/blog/2007-12-27-useful-javascript-oo-pattern.html/comment-page-1#comment-88
*/
var myObj = function() {
// private instance variables
var foo = 33;
// pseudo static initializer
var staticInitializer = function() {
// do some code here, will run only once
@shikolay
shikolay / index.html
Created October 9, 2012 04:39
Index file for SmartTV app experiments
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<!--<link rel="stylesheet" type="text/css" href="style.css"/>-->
<!--<script src="main.js" type="text/javascript"></script>-->