Skip to content

Instantly share code, notes, and snippets.

// 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({
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
dtvModule.directive('messagekey', function($http) {
var loadTimeout;
var keys = {};
return {
restrict: 'A',
link: link
};
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'
};
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:
//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
});
}
/** @jsx React.DOM */
var React = require('react');
module.exports = React.createClass({
render: function() {
<h1>Route: { this.props.route }</h1>
}
});
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();
function *cache(next) {
this.set('ETag', '123');
if (this.fresh) {
this.status = 304;
return;
}
yield next;
}
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
</body>
</html>