Skip to content

Instantly share code, notes, and snippets.

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';
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
class PropertiesLocationCollection
include ActionView::Helpers
include Rails.application.routes.url_helpers
def initialize(properties)
@properties = properties
end
def build
@locations = @properties.map do |property|
class PropertiesLocationCollection
include ActionView::Helpers
include Rails.application.routes.url_helpers
def initialize(properties)
@properties = properties
end
def build
@locations = @properties.map do |property|