Skip to content

Instantly share code, notes, and snippets.

stalingrad ~ $ rvm install 1.9.1
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
/Users/aurelian/.rvm/scripts/match: line 8: conditional binary operator expected
/Users/aurelian/.rvm/scripts/match: line 8: syntax error near `=~'
/Users/aurelian/.rvm/scripts/match: line 8: ` [[ "$1" =~ $2 ]]'
var exchange = require('./exchange');
module.exports = BinaryHeap;
function BinaryHeap(scoreFunction, options){
this.content = [];
if (options)
this.options = options;
else
this.options = {};
@ZwaarContrast
ZwaarContrast / signin.js
Last active January 3, 2018 19:52
Sign in Component using updated redux-form.
import React, { Component } from 'react';
import {Field,reduxForm} from 'redux-form';
import {connect} from 'react-redux';
import * as actions from '../../actions';
class Signin extends Component {
handleSignin({ email, password }){
// Log values
console.log('Email', email);