Skip to content

Instantly share code, notes, and snippets.

View yanivkalfa's full-sized avatar

Yaniv kalfa yanivkalfa

  • United states of America
View GitHub Profile
export default (state, action) => {
if (action.type === LOGOUT_SUCCESS) {
return appReducer(fromJS( {
routing: state.get('routing')
}), action);
}
return appReducer(state, action);
};
import React from 'react';
import PropTypes from 'prop-types';
import { Modal } from 'react-bootstrap';
import './assets/styles/styles.scss';
const NoContentDialog = ({ onClose }) => {
console.log('onClose', onClose);
return (
<Modal onHide={ onClose }>
'use strict';
var path = require('path');
var webpack = require('webpack');
var HtmlWebpackPlugin = require('html-webpack-plugin');
var devConfigs = require('../dev-server/configs');
module.exports = {
devtool: 'eval-source-map',
entry: [
class DisconnectMessage {
constructor() {
this._container = document.getElementById('warning');
this._isNeeded = 0;
this._children = [];
}
_render() {
import React from 'react';
import { match } from 'react-router';
import renderLayout from 'render-layout';
import render from 'render';
import store from '/configure-store';
const initialState = store.getState();
import routes from '/routes'
export default (req, res) => {
import React, { Component, PropTypes } from 'react';
import { Link, IndexLink } from 'react-router';
import styles from "./someCompWithStyle.css";
export default class SomeCompWithStyle extends Component {
constructor(props) {
super(props);
}
var path = require('path');
var webpack = require('webpack');
const rootFolder = path.resolve(__dirname, '..');
module.exports = {
entry: [
'babel-polyfill',
path.join(rootFolder, 'src/client/index.js'),
],
output: {
function someFunction(vaiable){
if (vaiable) {
//.... do wahtever you need to do.
}
}
// VS
function someFunction(vaiable){
if ( !vaiable ) {
import React, { PropTypes, Component } from 'react';
import { connect } from 'react-redux'
import * as Consts from '../constants';
import * as Action from '../actions/index';
import * as Utils from '../utils/index';
export default class WebNotification extends Component {
constructor(props) {
super(props);
#!/usr/bin/bash
set -x
su - myUser << eof
cd www/folder
eof