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
// exception.cc | |
// Entry point into the Nachos kernel from user programs. | |
// There are two kinds of things that can cause control to | |
// transfer back to here from user code: | |
// | |
// syscall -- The user code explicitly requests to call a procedure | |
// in the Nachos kernel. Right now, the only function we support is | |
// "Halt". | |
// | |
// exceptions -- The user code does something that the CPU can't handle. |
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 TreeItemView = Backbone.View.extend({ | |
tagName: 'div', | |
className: 'tree-item', | |
render: function() { | |
var self = this; | |
// Some function that retrieves an array of children for this model | |
var children = TreeCollection.children(this.model.get('id')); | |
// Render this tree item |
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 NewView = Backbone.View.extend({ | |
events: { | |
'webkitTransitionEnd div': 'afterTransitionEvt_' | |
}, | |
//... | |
afterTransitionEvt_: function(evt) { | |
// do things after the animation is finished. | |
} |
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
/** | |
* Determines if the given jasmine spec should run based on whether it's highest | |
* level suite desciption match the value of the runMatch parameter in the url. | |
* | |
* @param {Spec} spec Jasmine spec object that is about to be executed. | |
* | |
* @returns {Boolean} True if spec should run, false if it should be skipped. | |
*/ | |
var specFilter = function(spec){ | |
/** |
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
premise | Infractions | |
---|---|---|
1351 | 76 | |
217 | 75 | |
733 | 64 | |
2181 | 64 | |
1022 | 62 | |
2249 | 60 | |
416 | 58 | |
929 | 56 | |
1158 | 56 |
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
premise | Infractions | |
---|---|---|
1351 | 76 | |
217 | 75 | |
733 | 64 | |
2181 | 64 | |
1022 | 62 | |
2249 | 60 | |
416 | 58 | |
929 | 56 | |
1158 | 56 |
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
// The prototypes you added | |
MC.View = Backbone.View; | |
MC.View.prototype.Terms = Terms.m; | |
MC.View.prototype.formats = formats; | |
// In your view: | |
render : function() { | |
this.$el.html(this.template({ | |
terms: this.Terms | |
// Put any other data you want in your template inside this object as well |
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
// Simple unit testing in wren. | |
class Spec { | |
new(description, body) { | |
_description = description | |
_body = body | |
} | |
description { _description } |
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
// Simple unit testing in wren. | |
class Spec { | |
new(description, body) { | |
_description = description | |
_body = body | |
} | |
description { _description } |
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
// Simple unit testing in wren. | |
class Spec { | |
new(description, body) { | |
_description = description | |
_body = body | |
} | |
description { _description } |
OlderNewer