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
| const { google } = require('googleapis'); | |
| const { authenticate } = require('@google-cloud/local-auth'); | |
| const fs = require('fs').promises; | |
| const oldFs = require('fs'); | |
| const path = require('path'); | |
| const process = require('process'); | |
| const SCOPES = ['https://www.googleapis.com/auth/photoslibrary.readonly']; | |
| const TOKEN_PATH = path.join(process.cwd(), 'token.json'); | |
| const CREDENTIALS_PATH = path.join(process.cwd(), 'credentials.json'); |
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
| const a = 1; | |
| const b = 2; | |
| const c = 3; | |
| (function firstFunction() { | |
| const b = 5; | |
| const c = 6; | |
| (function secondFunction() { | |
| const b = 8; | |
| (function thirdFunction() { |
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
| const p = () => Promise.resolve(5); | |
| const y = async () => { | |
| const t = await p(); | |
| console.log(t); | |
| }; | |
| y(); | |
| console.log('hello'); |
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
| function foo() { | |
| baz(); | |
| } | |
| function bar() { | |
| baz(); | |
| } | |
| function baz() { | |
| console.log(`baz() was called from: ${whereWasICalledFrom()}`); |
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
| const mongoose = require('mongoose'); | |
| (async()=>{ | |
| await mongoose.connect('mongodb://nodeco-test-user:nodecotest1234@ds163822.mlab.com:63822/nodeco-test-01-mayo', { | |
| useNewUrlParser: true, | |
| useUnifiedTopology: true | |
| }); | |
| })() | |
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
| /* for (var i = 1; i <= 5; i++) { | |
| (function() { | |
| setTimeout(function timer() { | |
| console.log(i); | |
| }, i * 1000); | |
| })(); | |
| } */ | |
| /* for (var i = 1; i <= 5; i++) { | |
| (function() { |
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
| const getReview = async slug => { | |
| try { | |
| const userUid = await knex('user') | |
| .where({ | |
| company_name: slug | |
| }) | |
| .select('uid'); | |
| const userReviews = await axios.get( | |
| `${url}/quotes/v1/reviews/?user=${user_uid}`, |
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
| <html> | |
| <body> | |
| <div> | |
| <div>PROP: <span>hola soy un texto estático</span></div> | |
| <div>ESTADO: <span id="clicks">0</span></div> | |
| <button id="boton">click acá</button> | |
| </div> | |
| <script type="text/javascript"> | |
| const clicksElement = document.getElementById('clicks'); | |
| const boton = document.getElementById('boton'); |
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
| <html> | |
| <head> | |
| <title>un título</title> | |
| <meta charset="UTF-8" /> | |
| <style> | |
| .letra-color-azul { | |
| color: blue; | |
| } | |
| </style> | |
| </head> |
NewerOlder