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
{ | |
"redhat.telemetry.enabled": true, | |
"yaml.customTags": [ | |
"!And", | |
"!And sequence", | |
"!If", | |
"!If sequence", | |
"!Not", | |
"!Not sequence", | |
"!Equals", |
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
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 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
#Comillas simples | |
cads = 'Texto entre comillas simples' | |
#Comillas doble | |
cadd = "Texto entre comillas" | |
print(type(cads)) |
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 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 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
# 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 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
// 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 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
// 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 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'); | |
const validator = require('validator'); | |
const Schema = mongoose.Schema; | |
const UserSchema = new Schema( | |
{ | |
username: { | |
type: String, | |
required: true, | |
unique: 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
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 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
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: { |
NewerOlder