- Guia de estilo eslint + ´AirBnb´ + prettier
- Errores de servicio en el api se controlan dentro de cada módulo de logica de negocio, en el api y sus manejadores simplemente se les envia el error de APP
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
| sudo add-apt-repository ppa:phd/chromium-browser | |
| echo ' | |
| Package: * | |
| Pin: release o=LP-PPA-phd-chromium-browser | |
| Pin-Priority: 1001 | |
| ' | sudo tee /etc/apt/preferences.d/phd-chromium-browser | |
| sudo apt update |
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
| --[[ | |
| lvim is the global options object | |
| Linters should be | |
| filled in as strings with either | |
| a global executable or a path to | |
| an executable | |
| ]] | |
| -- THESE ARE EXAMPLE CONFIGS FEEL FREE TO CHANGE TO WHATEVER YOU WANT |
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
| public abstract class Singleton<T> : MonoBehaviour where T : MonoBehaviour | |
| { | |
| private static readonly Lazy<T> LazyInstance = new Lazy<T>(CreateSingleton); | |
| public static T Instance => LazyInstance.Value; | |
| private static T CreateSingleton() | |
| { | |
| var ownerObject = new GameObject($"{typeof(T).Name} (singleton)"); | |
| var instance = ownerObject.AddComponent<T>(); |
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
| a |
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 crypto = require('crypto'); | |
| const globalConfig = require('config'); | |
| const SHOPIFY_APP_SECRET = globalConfig.get(`SHOPIFY_APP_SECRET`); | |
| module.exports = async (ctx) => { | |
| const shop = ctx.request.headers['x-shopify-shop-domain']; | |
| // compare hmac to our own hash | |
| const hmac = ctx.request.headers['x-shopify-hmac-sha256']; | |
| const hash = crypto.createHmac('sha256', SHOPIFY_APP_SECRET) | |
| .update(ctx.request.rawBody, 'utf8', 'hex') | |
| .digest('base64'); |
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
| #!/bin/bash | |
| # compiled from https://docs.docker.com/engine/installation/linux/debian/#/debian-jessie-80-64-bit | |
| sudo apt-get update | |
| sudo apt-get dist-upgrade -y | |
| sudo apt-get install apt-transport-https ca-certificates -y | |
| sudo sh -c "echo deb https://apt.dockerproject.org/repo debian-jessie main > /etc/apt/sources.list.d/docker.list" | |
| sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys 58118E89F3A912897C070ADBF76221572C52609D |
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
| //////////////////////////////////////////////////// | |
| // Para acceder al primer elemento del array | |
| //////////////////////////////////////////////////// | |
| const head = ([x]) => x | |
| const array = [1,2,3,4,5] | |
| head(array) // 1 | |
| //////////////////////////////////////////////////// |
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
| 0x81acD02b05D13253D6aE1563e1316c2BBDa1fA8A |
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
| var BrainJSClassifier = require('natural-brain'); | |
| var classifier = new BrainJSClassifier(); | |
| classifier.addDocument('no pasa mi test unitario', 'software'); | |
| classifier.addDocument('he probado el programa, esta bugeado', 'software'); | |
| classifier.addDocument('mañana tengo una reunion', 'meeting'); | |
| classifier.addDocument('mi pendrive tiene 1Tb de capacidad', 'hardware'); | |
| classifier.addDocument('necesito un nuevo disco duro', 'hardware'); | |
| classifier.addDocument('puedes reproducir musica?', 'music'); |
NewerOlder