Skip to content

Instantly share code, notes, and snippets.

View diurivj's full-sized avatar

Diego Vazquez diurivj

View GitHub Profile

Content Authenticity Initiative

Example of payload using js-sdk library, using React hooks


    const sampleImage = '';
    const imageProvenance = useProvenance(sampleImage);
diurivj / settings.json
Last active May 12, 2022 20:18
Visual Studio Code settings
"editor.hover.enabled": true,
"window.restoreFullscreen": false,
"window.restoreWindows": "none",
"workbench.startupEditor": "none",
"workbench.colorTheme": "Dracula",
"editor.formatOnSave": true,
"editor.minimap.enabled": false,
"editor.fontSize": 20,
"editor.fontFamily": "Dank Mono",
diurivj /
Last active January 9, 2020 16:52
This file have all the tools that I use for web development and other stuff.

Learning Goals

After this lesson, you will be able to:

  • Understand what Passport is and how it's used in web applications.
  • Configure Passport as a middleware in our application.
  • Allow users to log in to our application using Passport Local Mongoose.
  • Create protected routes.
  • Manage errors during the login process using the connect-flash package.
  • Allow users to logout from our application using Passport.
diurivj /
Last active November 10, 2019 17:16
This is the MongoDB's recommended way to install MongoDB Enterprise Server.

MongoDB Installation

1. Download the files from MongoDB's page:

MongoDB recommends to use the most complete version of MongoDB Server, in order to do this, we will download MongoDB Enterprise. Download the package for your SO in TGZ format.

2. Extract the files:

$ tar -xvzf [name-of-the-file.tgz]
diurivj / Javascript.gif
Last active October 24, 2019 23:08
JavasScript ❤️
diurivj /
Last active October 24, 2019 23:13
Best Practices for Github 😎🔥

Github's Profile

Profile Photo

A picture with a friendly smile can help recruiters make a connection with you but it isn’t mandatory. If you’re not using a picture of yourself be sure to include a picture that somehow captures your personality. But nothing crude.

General Information

Below is some general information and a link to his email and twitter profile. Recruiters can look through your tweets to get a sense of the things you are interested in.


diurivj / HOW TO
Last active August 11, 2023 10:12


  1. Change the .env file:
  1. Initialize git, commit your changes and push to heroku:
$ git init 

Module 2 / Updates / Sandra, Joss, Diego

Week 4


Week 5


💡 What is the current problem in lesson X:

diurivj /
Last active October 8, 2019 15:27

React | Hooks

Learning Goals

After this lesson you will be able to:

  • Understand what are React Hooks and why are so hot 🔥
  • Understand how to use useState()