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
<?xml version="1.0" encoding="UTF-8" ?> | |
<!-- | |
HTML5 Boilerplate XSLT Master Stylesheet (based on Paul Irish's HTML5 Boilerplate index.html file) | |
Created by Brian Zerangue on 2010-11-15. | |
Copyright (c) 2010 Paul Irish (Everything but the XSLT), Brian Zerangue (XSLT). | |
HTML5 Boilerplate, http://html5boilerplate.com | |
--> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> |
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
BackButton = Ext.extend(Ext.Button, { | |
ui: 'back', | |
text: 'Back', | |
hidden: true, | |
id: 'back', | |
handler: function() { | |
var dispatchOptions = this.backStack.pop(); | |
Ext.dispatch(dispatchOptions); | |
if(this.backStack.length == 0) { |
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
require.config({ | |
baseUrl: '/backbone-tests/', | |
paths: { | |
'jquery' : '/app/libs/jquery', | |
'underscore' : '/app/libs/underscore', | |
'backbone' : '/app/libs/backbone', | |
'mocha' : 'libs/mocha', | |
'chai' : 'libs/chai', | |
'chai-jquery' : 'libs/chai-jquery', | |
'models' : '/app/models' |
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
var session = express.session(); | |
// Slightly Invasive | |
app.get('/home', session, routes.home); | |
app.get('/about', routes.about); | |
app.get('/faq', routes.faq); | |
// or | |
// Crude |
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
// Custom binding for modal dialog | |
// Bind a Bootstrap modal div to an observable | |
// boolean. When the observable changes, the | |
// modal window's visibility will also change. | |
// | |
// The binding is two-way, so changes to the | |
// modal window's visibility will also change | |
// the bound observable's value | |
ko.bindingHandlers.bootstrapShowModal = { | |
init: function (element, valueAccessor) { |
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
import React, { Component } from 'react'; | |
import TextField from 'components/base/TextField'; | |
const WAIT_INTERVAL = 1000; | |
const ENTER_KEY = 13; | |
export default class TextSearch extends Component { | |
constructor(props) { | |
super(); |