Skip to content

Instantly share code, notes, and snippets.

View diurivj's full-sized avatar

Diego Vazquez diurivj

View GitHub Profile
const list1 = [
18944, 94847, 93893, 37174, 77982, 31706, 67726, 71456, 40482, 14585, 57069,
40699, 48676, 23514, 36128, 19869, 53224, 23070, 69524, 24599, 41935, 47751,
22288, 48293, 18945, 77769, 65140, 11513, 89714, 52610, 27185, 83658, 91134,
53850, 55054, 10212, 54102, 21657, 74862, 24811, 44850, 37491, 39163, 30157,
72424, 43654, 49496, 35899, 82281, 97192, 46034, 88365, 78817, 75589, 97939,
48643, 76050, 25408, 16067, 76415, 39296, 57548, 79498, 27852, 82634, 78249,
56840, 12951, 13039, 22477, 88807, 42685, 93702, 49909, 40950, 17686, 98863,
57293, 42078, 85441, 26599, 31809, 40119, 76115, 81044, 57936, 23584, 46888,
15361, 63692, 52670, 60619, 13696, 89912, 72773, 83210, 81206, 77155, 47208,

Content Authenticity Initiative


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

Implementation

    const sampleImage = 'https://js-sdk.contentauthenticity.org/c2pa-samples/CAICAI.jpg';
    const imageProvenance = useProvenance(sampleImage);
@diurivj
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
diurivj / Uses.md
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
diurivj / MongoDB_Installation.md
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
diurivj / Javascript.gif
Last active October 24, 2019 23:08
JavasScript ❤️
Javascript.gif
@diurivj
diurivj / HOW TO DEPLOY.md
Last active August 11, 2023 10:12
STEPS FOR DEPLOYING THE FULL STACK PROJECT.

Backend

  1. Change the .env file:
FRONTENDPOINT=yourproductionendpointforthefrontend(netlify)
  1. Initialize git, commit your changes and push to heroku:
$ git init 

Module 2 / Updates / Sandra, Joss, Diego

Week 4

Week4

Week 5

Week5

💡 What is the current problem in lesson X: