This file contains 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 puppeteer from 'puppeteer'; | |
import path from 'path'; | |
(async () => { | |
const browser = await puppeteer.launch({ headless: false }); | |
const page = await browser.newPage(); | |
const client = await page.target().createCDPSession(); |
This file contains 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
#Comillas simples | |
cads = 'Texto entre comillas simples' | |
#Comillas doble | |
cadd = "Texto entre comillas" | |
print(type(cads)) |
This file contains 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 Person = require('../../src/api/models/person'); | |
const dbHandler = require('../db-handler'); | |
// Connect to a new in-memory database before running any test | |
beforeAll(async () => await dbHandler.connect()); | |
// Clear all test data after every test | |
afterEach(async () => await dbHandler.clearDatabase()); | |
// Remove and close the db and server |
This file contains 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
# Created by https://www.toptal.com/developers/gitignore/api/node,vscode | |
# Edit at https://www.toptal.com/developers/gitignore?templates=node,vscodes | |
### Node ### | |
# Logs | |
logs | |
*.log | |
npm-debug.log* | |
yarn-debug.log* | |
yarn-error.log* |
This file contains 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
// Cargamos nuestros módulos | |
const Bcrypt = require('bcrypt'); | |
const jwt = require('jsonwebtoken'); | |
// Añadimos dotenv para utilizar las variables de entorno | |
const dotenv = require('dotenv'); | |
// Cargamos nuestro modelo | |
const User = require('../../models/user'); | |
// Cargamos nuestras variables de entorno |
This file contains 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
// Cargamos nuestros módulos | |
const Bcrypt = require('bcrypt'); | |
const jwt = require('jsonwebtoken'); | |
// Añadimos dotenv para utilizar las variables de entorno | |
const dotenv = require('dotenv'); | |
// Cargamos nuestro modelo | |
const User = require('../../models/user'); | |
// Cargamos nuestras variables de entorno |
This file contains 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'); | |
const validator = require('validator'); | |
const Schema = mongoose.Schema; | |
const UserSchema = new Schema( | |
{ | |
username: { | |
type: String, | |
required: true, | |
unique: true, |
This file contains 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
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using EasyAR; | |
/* This script fixes the model shake behavior on EasyAr v2. You should | |
use this instead of ImageTargetBehaviour on your target. Just delete the | |
ImageTargetBehaviour component and add this one | |
It is a fixed and improved version of the one posted on this thread: |
This file contains 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
module.exports = { | |
extends: ['airbnb', 'prettier'], | |
plugins: ['prettier'], | |
rules: { | |
'import/no-extraneous-dependencies': 0, | |
// Admit use of console.log and derivates in app | |
'no-console': 0, | |
'prettier/prettier': 'error', | |
}, | |
globals: { |
This file contains 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
/** | |
* Layout component that queries for data | |
* with Gatsby's useStaticQuery component | |
* | |
* See: https://www.gatsbyjs.org/docs/use-static-query/ | |
*/ | |
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import { useStaticQuery, graphql } from 'gatsby'; |
NewerOlder