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
| <template> | |
| <require from="./grid/grid"></require> | |
| <require from="./grid/column"></require> | |
| <grid rows.bind="people"> | |
| <column>${$index}</column> | |
| <column>${firstName}</column> | |
| <column>${lastName}</column> | |
| </grid> | |
| </template> |
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
| // with defined properties | |
| function accessors(index) { | |
| return { | |
| enumerable: true, configurable: false, | |
| get: function() { return this._value[index]; }, | |
| set: function(value) { this._value[index] = value; } | |
| }; | |
| } | |
| function defineTypeWithDefinedProperties(fields) { |
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
| 'use strict'; | |
| function createType() { | |
| function Thing() {}; | |
| Thing.prototype = Object.create(Object.prototype, { | |
| first: { value: 1, enumerable: true, writable: true, configurable: false }, | |
| second: { value: 2, enumerable: true, writable: true, configurable: false } | |
| }); | |
| return Thing; | |
| }; |
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 blessed = require('blessed'); | |
| var form = blessed.form({ width: 200, height: 200 }); | |
| var formLayout = blessed.boxlayout({ direction: 'vertical' }); | |
| formLayout.append(blessed.label({ content: 'Name:' })); | |
| formLayout.append(blessed.textbox({ name: 'name' })); | |
| formLayout.append(blessed.label({ content: 'Birthday:' })); | |
| formLayout.append(blessed.textbox({ name: 'birthday' })); | |
| formLayout.append(blessed.line({ direction: 'horizontal' })); |
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 doThing(key) { | |
| var updateData = {}; | |
| updateData[key] = r.row(key).add(1); | |
| return r.db('test').table('blah').get("350226c0-5572-42a9-9d31-e5658d1392e7") | |
| .update(updateData); | |
| } |
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
| r.db('mydb').table('blah') | |
| .filter(function(doc) { | |
| return doc('foo').filter({ id: 'thingYouWant' }).count().ne(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
| function doSomething(options) { | |
| var someThinkyModel; | |
| if (!!options.someOption) someThinkyModel.orderBy('blah'); | |
| if (!!options.someOtherOption) someThinkyModel.slice(3, 5); | |
| return someThinkyModel.run(); | |
| } |
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
| <template> | |
| <div id="details" class="ui small modal"> | |
| <div class="header"> | |
| <h4>${heading}</h4> | |
| </div> | |
| <div class="content"> | |
| <div class="description"> | |
| <compose view-model.bind="content" model.bind="record"></compose> | |
| </div> | |
| </div> |
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
| <template> | |
| <div class="field">Test: ${myattr}</div> | |
| </template> |
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
| #include <qpid/messaging/Connection.h> | |
| #include <qpid/messaging/Message.h> | |
| #include <qpid/messaging/Receiver.h> | |
| #include <qpid/messaging/Session.h> | |
| #include <vector> | |
| #include <string> | |
| #include <iostream> | |
| #include <sstream> |