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
AstNode( | |
GritNodePattern { | |
kind: JsSyntaxKind( | |
JS_LOGICAL_EXPRESSION, | |
), | |
args: [ | |
GritNodePatternArg { | |
slot_index: 0, | |
pattern: AstNode( | |
GritNodePattern { |
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
Look how beautiful this chart is: |
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
const fs = require("fs"); | |
// Setup: Place this file in `.yarn/plugins/list-plugin.js` and the following | |
// to `.yarnrc.yml`: | |
// | |
// ``` | |
// plugins: | |
// - path: .yarn/plugins/plugin-list.js | |
// ``` | |
module.exports = { |
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
/** | |
* Base class for continuous pagers. | |
*/ | |
return View.extend({ | |
constructor: function() { | |
/** | |
* The collection to render in the pager. | |
*/ |
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 Router() { | |
var self = this; | |
setTimeout(function() { | |
window.addEventListener("popstate", _.bind(self._onStatePopped, self)); | |
self._activateRoute(); | |
}, 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
/** | |
* Base class for all views. | |
* | |
* @param context Application or View instance that serves as a context for this view. If a | |
* View instance is given, it is assumed to be the parent view. | |
* @param options Optional options object. May contain the following properties: | |
* $el - jQuery container containing the top-level element to be used by this | |
* view. If none is given, a new element is created for the view. | |
*/ | |
function View(context, options) { |
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
/** | |
* Base class for all collections. | |
*/ | |
var Collection = Model.extend({ | |
constructor: function() { | |
Model.apply(this, arguments); | |
/** |
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
/** | |
* Base class for all models. | |
* | |
* @param application Application instance. | |
* @param attributes Optional map of attributes to assign to the model. | |
*/ | |
function Model(application, attributes) { | |
if (!application) { | |
console.log("Model instantiated without Application reference"); |
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
/** | |
* Extend method copied from Backbone.js 1.1.0 | |
* | |
* (c) 2010-2011 Jeremy Ashkenas, DocumentCloud Inc. | |
* (c) 2011-2013 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | |
* Backbone may be freely distributed under the MIT license. | |
* For all details and documentation: | |
* http://backbonejs.org | |
*/ | |
function extend(protoProps, staticProps) { |
NewerOlder