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
| aahed | |
| aalii | |
| aargh | |
| abaca | |
| abaci | |
| aback | |
| abada | |
| abaff | |
| abaft | |
| abaka |
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
| def farked?(dice_array) | |
| puts "farked" if has_3_of_kind?(dice_array) || has_1?(dice_array) || has_5(dice_array) | |
| end | |
| def has_1?(dice_array) | |
| dice_array.include?(1) | |
| end | |
| def has_5?(dice_array) | |
| dice_array.include?(1) |
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
| def create | |
| Project.create(project_params) | |
| end |
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 ProjectsController < ApplicationController | |
| uses_ripped_params :project_params | |
| end |
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
| # lib/ripped_params/project_params.yml | |
| --- | |
| :require: :project | |
| :permit: | |
| - :name | |
| - :service_id | |
| - :quote | |
| - :document_attributes: | |
| - :filepicker_url |
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 ProjectsController < ApplicationController | |
| def create | |
| Project.create(project_params) | |
| end | |
| def project_params | |
| params.require(:project).permit( | |
| :name, | |
| :tags [ | |
| :id, |
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
| # components/split-date-selector.js.coffee | |
| Teleborder.SplitDateSelectorComponent = Ember.Component.extend | |
| change: -> | |
| selects = @$().find('select') | |
| month = selects.filter('[name="month"]').val() | |
| day = selects.filter('[name="day"]').val() | |
| year = selects.filter('[name="year"]').val() | |
| currentDate = moment(new Date(year, month, day)) | |
| @set('date', new Date(currentDate.toISOString())) if currentDate |
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 Mammal(options){ | |
| this.name = options.name; | |
| this.sex = options.sex; | |
| this.alive = true; | |
| } | |
| function Person(options){ | |
| Mammal.call(this, options); | |
| this.children = []; | |
| this.wife; |
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 livingThing(options){ | |
| this.name = options.name; | |
| this.sex = options.sex; | |
| this.alive = true; | |
| } | |
| function Person(options){ | |
| livingThing.call(this, options); | |
| this.children = []; | |
| this.wife; |
NewerOlder