Skip to content

Instantly share code, notes, and snippets.

View rogerprz's full-sized avatar
🥑
We gonna learn today!!!!

Roger Perez rogerprz

🥑
We gonna learn today!!!!
View GitHub Profile
@rogerprz
rogerprz / Heroku-Helpful-Commands.md
Created January 23, 2019 18:59
Heroku terminal commands

How to reset PG Database on Heroku?

  • Step 1: heroku restart
  • Step 2: heroku pg:reset DATABASE (no need to change the DATABASE)
  • Step 3: heroku run rake db:migrate
  • Step 4: heroku run rake db:seed (if you have seed)

One liner

heroku restart; heroku pg:reset DATABASE --confirm APP-NAME; heroku run rake db:migrate

@rogerprz
rogerprz / Roger-Perez-Resume.MD
Last active December 21, 2018 22:13
Roger Perez markdown resume
// OOP
class GroceryList{
constructor(items){
this.items = items }
addItem(item) {
this.items.push(item)
}
}
class GroceryItem{
constructor(items){

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL