Mark codeinfront

View HTML5 Base Template.html
1 2 3 4 5 6 7 8 9 10
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en" class="no-js ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en" class="no-js ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
View jspatterns-module-pattern.js
1 2 3 4 5 6 7 8 9
if (typeof CIF === 'undefined') {
var CIF = {};
}
 
CIF.init = (function () {
 
console.log('Hello Kitty');
 
}());
View singleton
1 2 3 4 5 6 7 8 9
/*
* Encapsulated Singleton Design Pattern
* @url http://blogs.sitepoint.com/2010/11/30/my-favorite-javascript-design-pattern/
* @author James Edwards
*/
 
var myScript = {};
 
(function() {
View console-wrapper.js
1 2 3 4 5 6 7 8 9 10
/*
* Global debug method
* @method debug
* @param type {object} Defines log type (e.g. 'log', 'warn')
* @param obj A string or object, the suject of the log
* @param scope {string} Scope indentifier
*
* Usage: debug('log', 'Hello World!', 'global');
*/
var debug = function ( type, obj, scope ) {
View object-namespace-method.js
1 2 3 4 5 6 7 8 9 10
/*
* Global object namespacing method
* @method namespace
* @param {String} String of period delimited namespaces
* @return {Object} Reference to the last object created
*
* Usage: MYAPP.namespace('valid.string._of.property_names');
*/
 
// check if global namespace object already exists and
View gist:556978
1 2 3 4 5 6 7 8 9 10
var onDOMReady = function (cb) {
var loaded = false;
this.loaded = this.parentLoaded = false;
 
this.exec = function () {
if ( loaded ) { return; }
View build.properties
1 2 3 4 5 6 7 8 9
# Calculator Application Build Properties
 
# As long as the 'builder' project is cloned to the default folder
# next to the 'yui3' project folder, the 'builddir' property does
# not need to be changed
#
# If the 'builder' project is checked out to an alternate location,
# this property should be updated to point to the checkout location.
# builddir=../../../builder/componentbuild
View YUIDocTagTemplate.txt
1 2 3 4 5 6 7 8 9 10
/**
* Description. Can span multiple lines.
* @method | @module | @class | @property | @method | @event name ^
* @constructor The presence of this tag (which requires no description) indicates that this class is instantiable.
* @namespace Lets you describe your class just with the name (e.g. YAHOO.util.Event has a namespace of YAHOO.util and a class of Event).
* @submodule A submodule encompasses a subset of the parent module's functionality.
* @requires Used to identify dependencies in the module declaration.
* @extends Sets up an inheritance relationship between the current class and a parent class.
* @param {type} name description
* @static If a class does not have a constructor, then the static tag should be present to signal that it is a static class.
Something went wrong with that request. Please try again.