Skip to content

Instantly share code, notes, and snippets.

visible = { this.props.selected.indexOf(marker.display_type) > -1 }
import * as actions from '../../actions'
import * as types from '../../constants/actionTypes'
import itemTypeReducer from './ItemTypeReducer'
describe('itemTypeReducer', () => {
it('Toggles the Hotel item into the selected array', function() {
let initialState = {
selected: []
};
let action = {
import * as actionTypes from '../../constants/actionTypes';
const initialState = {
selected: ['Hotel'],
}
export default function itemTypeReducer(state = initialState, action) {
let selected = state.selected.slice(0);
let newArray = null;
import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import ItemListCounter from '../../../lib/Helpers/ItemListCounter';
import Counter from '../../Counter';
require('./style.scss');
class ItemTypeSelector extends Component {
constructor(props) {
super(props);
kibana:$apr1$Z/5.LALa$P0hfDGzGNt8VtiumKMyo/0
@KensoDev
KensoDev / delete-versions.sh
Created March 16, 2016 05:33
Delete old ElasticBeanstalk application versios
echo "Starting to delete versions of $APP"
while read ver; do
echo "Deleting version $ver"
aws elasticbeanstalk delete-application-version --version-label $ver --profile $PROFILE --application-name $APP
echo "Version $ver deleted!"
done
user=your-username
password=your-password
db=your-database-name
mysqldump -u $user -p$password --databases $db > `date +%Y%m%d`.$db.sql
Total download size: 30 M
Downloading packages:
http://repos.mesosphere.io/el/7/x86_64/RPMS/mesos-0.28.0%2Bgit20160221.1e65c7f-0.2.220.centos65.x86_64.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
Trying other mirror.
Error downloading packages:
mesos-0.28.0+git20160221.1e65c7f-0.2.220.centos65.x86_64: failure: RPMS/mesos-0.28.0+git20160221.1e65c7f-0.2.220.centos65.x86_64.rpm from mesosphere: [Errno 256] No more mirrors to try.
provider "aws" {
region = "${var.aws_region}"
}
module "base" {
source = "../base"
}
resource "aws_security_group" "core-services" {
name = "core-services"
Host ec2-*.*.compute.amazonaws.com
User deploy
UserKnownHostsFile /dev/null
StrictHostKeyChecking no