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
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 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 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 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 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
_handlePushNotification(){ | |
PushNotification.setApplicationIconBadgeNumber(4); | |
PushNotification.localNotificationSchedule({ | |
message: "Schedule Message", | |
date: new Date(Date.now() + (60 * 1000)) | |
}); | |
PushNotification.localNotification({ | |
message: "Local Notification Message", | |
playSound: true, |
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
{ | |
"meta": { | |
"code": 200 | |
}, | |
"data": [ | |
{ | |
"can_sort_tasks_by": [ | |
"name", | |
"dueBy", | |
"createdAt", |
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
import React, { Component, PropTypes } from 'react'; | |
import { Text, | |
TouchableHighlight, | |
View, | |
ListView, | |
Image} from 'react-native'; | |
import { styles } from '../styles/css'; | |
import EditTask from './EditTask'; | |
import Icon from 'react-native-vector-icons/FontAwesome'; | |
import CheckBox from './CheckBox'; |
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
import React, {Component, PropTypes} from 'react'; | |
import { | |
Picker, | |
Text, | |
View, | |
TouchableHighlight, | |
} from 'react-native'; | |
import {styles} from '../styles/css'; | |
export default class IterationPicker extends Component { |
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
import React, { Component } from "react"; | |
import PropTypes from "prop-types"; | |
import { createSwitchNavigator } from "react-navigation"; | |
import { StyleSheet, View } from "react-native"; | |
import SwitchCustom from "../components/SwitchCustom/SwitchCustom"; | |
import MainHeader from "../components/MainHeader/MainHeader"; | |
import Main from "../routes/Main"; | |
import DriverAnalytics from "../routes/DriverAnalytics"; | |
import DeliveryStart from "../routes/DeliveryStart"; | |
import AppContainer from "../containers/AppContainer"; |
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
const ENABLE_MAP = "ENABLE_MAP"; | |
const DISABLE_MAP = "DISABLE_MAP"; | |
const SET_CENTER_COORDINATE = "SET_CENTER_COORDINATE"; | |
const SET_PLACEHOLDER = "SET_PLACEHOLDER"; | |
const CLEAR_PLACEHOLDER = "CLEAR_PLACEHOLDER"; | |
const START_NAVIGATION_MODE = "START_NAVIGATION_MODE"; | |
const STOP_NAVIGATION_MODE = "STOP_NAVIGATION_MODE"; | |
const SET_ACTIVE_POINT = "SET_ACTIVE_POINT"; | |
const RESET_POINTS = "RESET_POINTS"; |
OlderNewer