This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import './App.css'; | |
import { BrowserRouter as Router, Route } from "react-router-dom"; | |
import SearchBar from './components/SearchBar' | |
import ItemList from './components/ItemList' | |
class App extends Component { | |
state = {items: []} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
heroku pg:backups capture --app sushi | |
curl -o latest.dump `heroku pg:backups public-url --app sushi` | |
pg_restore --verbose --clean --no-acl --no-owner -d <app_name>_development latest.dump | |
# To copy prodcution data to staging app | |
heroku pg:backups restore `heroku pgbackups:url -a production-app` DATABASE -a staging-app | |
# Store prodcution data to staging | |
heroku pg:backups restore `heroku pgbackups:url -a production-app` DATABASE -a staging-app | |
heroku pg:backups restore b001 DATABASE_URL --app sushi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#rspec , minitest cutest librerias | |
class Juego | |
GANA = { papel: :piedra, piedra: :tijera, tijera: :papel } | |
def initialize jugador1, jugador2 | |
@jugador1 = jugador1 | |
@jugador2 = jugador2 | |
end | |