This file contains hidden or 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
///<reference path='replace/path/${Extends}.ts'/> | |
module ${Namespace} { | |
import ${Extends} = StructureTS.${Extends}; | |
/** | |
* YUIDoc_comment | |
* | |
* @class ${NAME} |
This file contains hidden or 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
define(function(require) { | |
'use strict'; | |
var $ = require('jquery'); | |
var PubSubUtil = require('utils/PubSubUtil'); | |
/** | |
* Function typeof value | |
* | |
* @type String |
This file contains hidden or 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
getMatrix = function (obj) { | |
var matrix = obj.css("-webkit-transform") || | |
obj.css("-moz-transform") || | |
obj.css("-ms-transform") || | |
obj.css("-o-transform") || | |
obj.css("transform"); | |
var values = matrix.split('(')[1]; | |
values = values.split(')')[0]; | |
values = values.split(','); |
This file contains hidden or 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
this.smallMediaQuery = window.matchMedia('screen and (min-width: 320px) and (max-width: 768px)'); | |
this.mediumMediaQuery = window.matchMedia('screen and (min-width: 768px) and (max-width: 1280px)'); | |
this.largeMediaQuery = window.matchMedia('screen and (min-width: 1280px)'); | |
if (this.slider.length) { | |
this.smallMediaQuery.addListener(this.smallMediaQueryHandler.bind(this)); | |
this.mediumMediaQuery.addListener(this.mediumMediaQueryHandler.bind(this)); | |
this.largeMediaQuery.addListener(this.largeMediaQueryHandler.bind(this)); | |
this.smallMediaQueryHandler(); | |
this.mediumMediaQueryHandler(); |
This file contains hidden or 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
var PluginName = function(element) { | |
this.element = element; | |
}; | |
PluginName.prototype.update = function() { | |
}; | |
$.fn.myPlugin = function() { | |
this.myPluginId = 0; |
This file contains hidden or 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
<div class="page-hd"> | |
<div class="header"> | |
<div class="header-hd"> | |
<div class="masthead"> | |
</div> | |
</div> | |
<div class="header-bd"> | |
<div class="brand"> |
This file contains hidden or 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
var MAX = 150; | |
var MIN = 0; | |
var PERCENT = 0.5; | |
var value = ((MAX - MIN) * PERCENT) + MIN; | |
var percent = (value - MIN) / (MAX - MIN); | |
console.log(value); // 75 | |
console.log(percent); // 0.5 |
This file contains hidden or 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
class MyApp { | |
constructor() { | |
var myUsers = new CustomCollection<User>(); | |
var myMessages = new CustomCollection<Message>(); | |
myUsers.Add(new User()); | |
myMessages.Add(new Message()); | |
var user: User = myUsers.GetFirst(); | |
This file contains hidden or 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
<div class="modal"> | |
<div class="modal-box"> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum tortor quam, feugiat vitae, ultricies eget, tempor sit amet, ante. Donec eu libero sit amet quam egestas semper. Aenean ultricies mi vitae est. Mauris placerat eleifend leo.</p> | |
<p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vesti |
This file contains hidden or 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
module namespace { | |
export class Brick { | |
public color:string = "red"; | |
constructor() { | |
console.log("new "+ color +" brick created"); | |
} | |
} |