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
| // being used like: <div ng-repeat="item in rows()" class="s4-gridform-row"> | |
| scope.rows = function() { | |
| var rows = []; | |
| // TODO: technically this is bad form, relying on order in properties (since properties have no order according to spec) | |
| // It works for v1 though. | |
| for (var key in scope.validations) { | |
| rows.push({ |
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 path = require('path'); | |
| module.exports = function(app) { | |
| var getImage = [ | |
| app.users.matchOwner, | |
| app.images.matchImage, | |
| app.base.noCache, | |
| app.base.normal, | |
| app.users.createLocal |
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
| dtvModule.directive('messagekey', function($http) { | |
| var loadTimeout; | |
| var keys = {}; | |
| return { | |
| restrict: 'A', | |
| link: link | |
| }; |
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.exports = { | |
| use_stubs: false, | |
| restart: false, | |
| workers: 1, | |
| redis_sessions: false, | |
| silent: true, | |
| minified_js: false, | |
| use_timer: true, | |
| api_host: 'dotcommacpro01.la.frd.directv.com:9099' | |
| }; |
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
| node_modules | |
| bower_components/ | |
| !bower_components/jquery/jquery.js | |
| !bower_components/pixi/bin/pixi.js | |
| # why does this not allow me to include jquery.js or pixi.js? | |
| # On branch rigid-bodies | |
| # Changes not staged for commit: |
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
| //require('./jsx-modules'); // Enable JSX transforms for require | |
| var defer = require('q').defer; | |
| //var react = require('react-tools'); | |
| function *page() { | |
| this.body = yield render({ | |
| route: this.path | |
| }); | |
| } |
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
| /** @jsx React.DOM */ | |
| var React = require('react'); | |
| module.exports = React.createClass({ | |
| render: function() { | |
| <h1>Route: { this.props.route }</h1> | |
| } | |
| }); |
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
| builder | |
| .on('building', console.log.bind(console, 'building...')) | |
| .on('built', console.log.bind(console, 'built.')) | |
| .on('ready', console.log.bind(console, 'ready.')) | |
| .on('change', console.log.bind(console, 'changed:')) | |
| .on('watching', function(files) { | |
| console.log('watching', files.length, 'files.'); | |
| }) | |
| .build(); |
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
| function *cache(next) { | |
| this.set('ETag', '123'); | |
| if (this.fresh) { | |
| this.status = 304; | |
| return; | |
| } | |
| yield next; | |
| } |
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
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title>JS Bin</title> | |
| </head> | |
| <body> | |
| </body> | |
| </html> |