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
var mysql = require('mysql'); | |
var util = require('util'); | |
//New comment for update | |
var pool = mysql.createPool({ | |
multipleStatements: true, | |
host: 'localhost', | |
user: 'root', | |
database: 'test', | |
password: 'password', |
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
var mysql = require('mysql'); | |
var util = require('util'); | |
var Promise = require('promise'); | |
//New comment for update | |
var pool = mysql.createPool({ | |
multipleStatements: true, | |
host: '192.168.94.27', | |
user: 'root', | |
database: 'test', |
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
var context = require('rabbit.js').createContext('amqp://localhost'); | |
var async = require('async'); | |
//var sub = context.socket('SUBSCRIBE', {noCreate: true}); | |
var worker = context.socket('WORKER', { | |
prefetch: 1 | |
}); | |
worker.setEncoding('utf8'); | |
worker.connect('hello'); |
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
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: gitlab | |
namespace: default |
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
kind: ClusterRoleBinding | |
apiVersion: rbac.authorization.k8s.io/v1 | |
metadata: | |
name: gitlab-cluster-admin | |
subjects: | |
- kind: ServiceAccount | |
name: gitlab | |
namespace: default | |
roleRef: | |
kind: ClusterRole |
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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: sise-deploy | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: sise | |
template: |
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
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQCtBU+o0UGRwT6/+b98fDV43Z0MSIDtZHOBPuX6Xjm0vSNM/tLCM0EXH0Mzv4g6MtEEsISYpAoy7UYfaohTnujaNR3SQ20wN+Z9Pf7zpGyDmlhaezKIAXnKYAGuHNUpt9bTddYP+/OOPICJK2XXyIv5Fg/0S0mS7nDhzplGoDNriocEI0WFbge+NZZvGDPb81GGu0GWmME/k8nU5dahcvYawwlQVzJ8nmSkkn+6/3iz6nywYtGMW5D5PZA/0phNNGW9wXhiBiJ/uUoNlu5ORy+AKgaJ0w8OEG/cF/FAnBS7UkerRfT9uWFa9PNuqRQUH0shmQ9AJLCr0l2yxirHPi08/hd8kA0vCISCeuQHw1aQBgUGK8+mX1xF2alyhRKMdIb0KcDvUSMoRZ4v2ngxGaRAiMJJIeL3UZfhSClJYpOBocBDfQr9XHdBANkGcgaxdpnMuWcbmvrmMbQc1dW82C1iQb3GjoCOCoO7vSNpmdD92Re2FO78MNBcnyB+sxVKfpEP/D8qGCDT+ZwiEJM6c9P3fovnlfRIIB9FHL2IyQkYa1ZjJeXd5kDNiNpPPgsDO61rilbeI4KXE80mP6M5ultuinfcQP1vs8Qc0Z0AQxx7z8qccPU7J2nNlqFC4FKYeT0GsWtoXdvZcjFcDzh3LD39bmJz0q4R6KsIS15xlE3NQw== [email protected] | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQC8ZIak3fH7nBcWQPN9+F72bbTP8GDoydo9KgnR7fe1Ulbn5py0UCRx70nXPl4rKpfsSlTg6ndSQX0E1NdqMs5zTZd4cXxxwnuUNzGSAJ86wEKSqPA+zXFB40eR5eyvXUZlZn+SH7Bl+7sTxBxheTv1tD5MKRqINtlc5ZCTA2YMrsDcLIyndSa/jsY/R6p9pVanzMauvw3koZfeifDE5qP/ |
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 { NlpManager } = require('node-nlp'); | |
const manager = new NlpManager({ languages: ['en','nl'], nlu: { useNoneFeature: false, log: false } }); | |
async function mainExtractEntities() { | |
const result = await manager.extractEntities('en', 'Are you able to identify that [email protected] is an email and [email protected] is another email so there are 2 emails in 20 minutes?'); | |
console.log(result.entities); | |
} | |
async function mainFullExample() { |