Skip to content

Instantly share code, notes, and snippets.

View neomatrixcode's full-sized avatar
🏠
Working from home

Josué Acevedo (Neomatrix) neomatrixcode

🏠
Working from home
View GitHub Profile
import logo from './logo.svg';
import './App.css';
import AgregarTareaContainer from './containers/agregarTareaContainer'
function App() {
return (
<div className="App">
<header className="App-header">
import React from 'react'
const agregarTareaPresentational = ({ fusion_agregarTarea }) => {
let input
return (
<div>
<form onSubmit={e => {
e.preventDefault()
import { connect } from 'react-redux'
import { agregarTarea } from '../actions'
import agregarTareaPresentational from '../presentationals/agregarTareaPresentational'
const mapDispatchToProps = dispatch => ({
fusion_agregarTarea: text => dispatch(agregarTarea(text))
})
export default connect(
null
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { createStore } from 'redux'
import rootReducer from './reducers'
import { Provider } from 'react-redux'
let nextTodoId = 0
export const agregarTarea = tarea => ({
type: "AGREGAR_TAREA"
, id: nextTodoId++
, text: tarea
})
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { createStore } from 'redux'
import rootReducer from './reducers'
import {agregarTarea} from './actions'
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import reportWebVitals from './reportWebVitals';
import { createStore } from 'redux'
import rootReducer from './reducers'
// Creamos el store al pasar el reducer raiz
const tareas = (state = [], action) => {
switch (action.type) {
case 'AGREGAR_TAREA':
return [
...state,
{
id: action.id,
text: action.text
}
]
# This file is part of IVRE.
# Copyright 2011 - 2019 Pierre LALET <pierre.lalet@cea.fr>
#
# IVRE is free software: you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# IVRE is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
version: '3'
services:
ms:
restart: always
image: metasploitframework/metasploit-framework:latest
environment:
DATABASE_URL: postgres://postgres@db:5432/msf?pool=200&timeout=5
links:
- db
ports: