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
| import React, { Component, PropTypes } from 'react'; | |
| import ReactDOM from 'react-dom'; | |
| import classnames from 'classnames'; | |
| import { connect } from 'react-redux'; | |
| import { bindActionCreators } from 'redux'; | |
| import * as CommentActions from '../actions/CommentActions'; | |
| import Interact from '../wrappers/Interact'; | |
| import CommentView from './CommentView'; | |
| import CommentEdit from './CommentEdit'; | |
| import CommentNameEdit from './CommentNameEdit'; |
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
| require 'pp' | |
| def try_to_place(x, y, grid, size) | |
| if grid[x][y] | |
| # Generate new X and Y | |
| false | |
| else | |
| if can_place?(x, y, grid) | |
| temp_grid = grid | |
| temp_grid[x][y] = true |
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 PropertiesLocationCollection | |
| include ActionView::Helpers | |
| include Rails.application.routes.url_helpers | |
| def initialize(properties) | |
| @properties = properties | |
| end | |
| def build | |
| @locations = @properties.map do |property| |
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 PropertiesLocationCollection | |
| include ActionView::Helpers | |
| include Rails.application.routes.url_helpers | |
| def initialize(properties) | |
| @properties = properties | |
| end | |
| def build | |
| @locations = @properties.map do |property| |
NewerOlder