This readme is for macOS and Anaconda installed with
brew
Creating python virtual environment wiht specific python version and preinstalled libraries:
cd /usr/local/anaconda3/bin
./conda create -n myenv python=3.6 scipy=0.15.0 astroid babel
| import {useReducer, useEffect} from 'react'; | |
| const A_FETCH_SET_PARAM = 'FETCH_SET_PARAM'; | |
| const A_FETCH_INIT = 'FETCH_INIT'; | |
| const A_FETCH_SUCCESS = 'FETCH_SUCCESS'; | |
| const A_FETCH_FAILURE = 'FETCH_FAILURE'; | |
| const A_FETCH_FAILURE_RESET = 'FETCH_FAILURE_RESET'; | |
| const INITIAL_STATE = { | |
| isLoading: false, | |
| isError: false, |
| import {useReducer, useEffect} from 'react'; | |
| const A_FETCH_INIT = 'FETCH_INIT'; | |
| const A_FETCH_SUCCESS = 'FETCH_SUCCESS'; | |
| const A_FETCH_FAILURE = 'FETCH_FAILURE'; | |
| const INITIAL_STATE = { | |
| isLoading: false, | |
| isError: false, | |
| result: null, | |
| }; |
| import React from 'react'; | |
| import styled from 'styled-components/native'; | |
| import {StyleSheet, TouchableOpacity, View} from 'react-native'; | |
| import {Icon} from 'react-native-elements'; | |
| import {Colors} from 'react-native/Libraries/NewAppScreen'; | |
| import {Color} from '../styles'; | |
| import {Table, Cell, Row, TableWrapper} from 'react-native-table-component'; | |
| const HEIGHT_HEADER_AND_BTN = 30; |
| import React from 'react'; | |
| import styled from 'styled-components/native'; | |
| import {Color} from '../../styles'; | |
| import {IconButton} from './IconButton'; | |
| const MAX_STRING_LENGTH = 15; | |
| const StyledView = styled.View` | |
| flex: 1; | |
| flex-direction: row; |
| 'use strict'; | |
| import React, {PureComponent} from 'react'; | |
| import {StyleSheet, View, Alert} from 'react-native'; | |
| import {RNCamera} from 'react-native-camera'; | |
| class Scanner extends PureComponent { | |
| constructor(props) { | |
| super(props); | |
| this.state = { | |
| navigation: props.navigation, |
| import {useReducer, useEffect} from 'react'; | |
| const A_FETCH_INIT = 'FETCH_INIT'; | |
| const A_FETCH_SUCCESS = 'FETCH_SUCCESS'; | |
| const A_FETCH_FAILURE = 'FETCH_FAILURE'; | |
| const INITIAL_STATE = { | |
| isLoading: false, | |
| isError: false, | |
| result: null, | |
| }; |
| import React from 'react'; | |
| import Modal from 'react-native-modal'; | |
| import styled from 'styled-components/native'; | |
| import {View, StyleSheet} from 'react-native'; | |
| const styles = StyleSheet.create({ | |
| primaryContainer: { | |
| height: '30%', | |
| justifyContent: 'center', | |
| alignItems: 'center', |
| const useCombinedInfo = (id, combineInfo) => { | |
| const {realm} = useContext(MainContext); | |
| const [info, setInfo] = useState(null); | |
| const [isLoading, setIsLoading] = useState(false); | |
| const [isError, setIsError] = useState(false); | |
| const [serviceInfo, serviceLoading, serviceError] = useFetchSerial( | |
| [getResource], | |
| [{id, filter}], | |
| ); |
| # 1. Colocar este script en la ruta del server (ej: /opt/jboss7) | |
| # 2. Dar permisos de ejecución: | |
| # | |
| # chmod +x server_clean.sh | |
| # | |
| # 3. Agregar las correspondientes líneas al servicio cron: | |
| # | |
| # 00 00 1 * * /opt/jboss7/server_clean.sh | |
| # 00 00 4 * * /opt/jboss7/server_clean.sh | |
| # 00 00 7 * * /opt/jboss7/server_clean.sh |