🏋️♂️
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
| case class Foo(foo: Int, bar: Boolean) | |
| new Foo(foo = 1, bar = false) |
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
| class TodoTxtBuilder | |
| constructor: (defaultParameters = {}) -> | |
| @date = defaultParameters.date or new Date | |
| @title = defaultParameters.title or '' | |
| @projects = defaultParameters.projects or [ ] | |
| @priority = defaultParameters.priority or undefined |
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
| new TodoTxtBuilder( | |
| priority: 1 | |
| title: 'example' | |
| projects: [example_project] | |
| ) |
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
| class TodoTxtBuilder | |
| constructor: ({ @date, @title, @projects, @priority }) -> |
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
| coffee> new TodoTxtBuilder {date: new Date, title: 'title', projects: []} | |
| { | |
| date: Fri Feb 06 2015 06:06:28 GMT+0100 (CET), | |
| title: 'title', | |
| projects: [], | |
| priority: undefined | |
| } |
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
| class TodoTxtBuilder | |
| title: (@title) -> @ | |
| projects: (@projects) -> @ | |
| date: (@date) -> @ | |
| priority: (@priority) -> @ |
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
| coffee> new TodoTxtBuilder() | |
| .date(new Date) | |
| .title('title') | |
| .projects([]) | |
| { | |
| date: Fri Feb 06 2015 06:15:25 GMT+0100 (CET), | |
| title: 'title', | |
| projects: [] | |
| } |
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 LinkBox = React.createClass({ | |
| handleAddLink: function(url) { | |
| link = {url: url}; | |
| $.ajax({ | |
| type: 'POST', | |
| url: this.props.url, | |
| data: link, | |
| headers: {'X-CSRFToken': $.cookie('csrftoken')}, | |
| success: function(data) { |
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(React, _) { | |
| var Song = require('../models/SongModel.js'); | |
| module.exports = React.createClass({ | |
| isDisabled: function() { | |
| return _.isBlank(this.state.artist) || _.isBlank(this.state.title); | |
| }, | |
| handleNewArtist: function() { | |
| this.setState(_.extend(this.state, { | |
| artist: event.target.value | |
| })); |
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
| Using rails-assets-angular 1.3.13 (was 1.3.8) | |
| Using rails-assets-angular-touch 1.3.13 (was 1.3.8) | |
| Using rails-assets-angular-carousel 0.3.10 (was 0.3.7) | |
| Using rails-assets-angular-mocks 1.3.13 | |
| Using rails-assets-angular-resource 1.3.13 (was 1.3.8) | |
| Using rails-assets-angular-scroll 0.6.4 | |
| Using rails-assets-angular-ui-router 0.2.13 | |
| Using rails-assets-sugar 1.4.2 (was 1.4.1) |