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
# Base view class that all views extend | |
# NOTE: This is from real production code, so it has some messiness for | |
# dealing with real production issues. | |
View = Backbone.View.extend | |
initialize: (@model) -> | |
@render | |
super |
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
TLDR: We need more time to review your proposals. You'll get a yes or no by Sunday, April 30th. | |
Dear wonderful CFP submitters: | |
Thank you so much for your proposals. There are SO MANY, WOW. Unfortunately, we have not been able to give them all the attention they deserve. We said we'd notify submitters by April 23rd, but to make sure we have time to carefully review them all we are changing that date to Sunday, April 30th. Estimates are hard. | |
We are sorry we are pushing back the notification date. We would rather change a deadline than make rushed decisions, but ideally we would have been done already. We are reviewing and changing our CFP review process to make sure this won't happen again. Sorry for the delay, thank you for your proposals, and we will be in touch. | |
- Jamison and Matt |
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
update : Action -> Model -> (Model, Effects Action) | |
update action model = | |
case action of | |
Actions.PlaySound soundName -> | |
( model, sendToJs soundName ) | |
Actions.NoOp -> | |
( model, Effects.none ) | |
Actions.SetAngel showing -> | |
let | |
updatedModel = {model | showingAngels = showing } |
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
Ticket = Backbone.Model.extend({ | |
urlRoot: 'api/Ticket/' | |
}); | |
TicketView = Backbone.View.extend({ | |
initialize: function(model) { | |
this.model = model; | |
this.listenTo(this.model, 'change', this.render.bind(this)); | |
this.render() |
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
<!DOCTYPE html> | |
<head> | |
<title>Ordr: Rstaurant Mnu Systm</title> | |
<script type="text/x-handlebars" data-template-name="tab"> | |
<ul> | |
{{#each tabItem in tabItems}} | |
{{ partial "tabItem" }} | |
{{else}} | |
<li><h3>Click a food to add it</h3></li> | |
{{/each}} |
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
// @flow | |
require('./es6')() |
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
// Assume the error handling logic is pretty different at each async step, | |
// and I have multiple different error conditions that require different | |
// actions to handle them. | |
// How can I do this with promises without passing some kind of additional | |
// data to the error handler so it can know what logic to use? | |
function someFattyAsyncThing(data, cb) { | |
someAsyncOp(data, function (err, res) { | |
if (err) { | |
return cb(err); | |
} |
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
define( [ 'views/SearchView' ], function( SearchView ){ | |
describe('SearchView', function() { | |
var searchView, spy | |
beforeEach(function() { | |
setFixtures( $( "<input type='search' id='search'/>" ) ) | |
searchView = new SearchView() | |
searchView.render() | |
spy = jasmine.createSpyObj( 'event', [ 'handler' ] ) | |
}) |
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
destroy: function() { | |
this.$el.remove() | |
this.off() | |
// destroy any children | |
for (var selector in this.autoChildren) | |
this.destroyChild(selector) | |
this.autoChildren = null | |
} |
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
⨀_⨀ | |
⨂_⨂ | |
(/◔ ◡ ◔)/ | |
°ﺑ° | |
(¬_¬) | |
(´・ω・`) | |
(ʘ_ʘ) | |
(ʘ‿ʘ) | |
(๏̯͡๏ ) | |
(◕_◕) |
NewerOlder