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
# Travaux Pratiques | |
## TP 1 : Syntaxe et Expression Régulières | |
**=>** Ecrire une fonction comparer, qui prend 2 paramètres a et b, et qui retourne le résultat de la comparaison ==. | |
* Ecrire les tests correspondants | |
* Changer l'implémentation en === |
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
2014-08-14 09:29:24,696 [611044891] INFO - #git4idea.commands.GitHandler - cd /Users/remi/Code/IUT | |
2014-08-14 09:29:24,696 [611044891] INFO - #git4idea.commands.GitHandler - git add --ignore-errors -- public/libs/.gitignore | |
2014-08-14 09:29:27,590 [611047785] INFO - a.repo.GitUntrackedFilesHolder - GitUntrackedFilesHolder: Index has changed, marking file:///Users/remi/Code/IUT recursively dirty | |
2014-08-14 09:29:41,917 [611062112] INFO - a.repo.GitUntrackedFilesHolder - GitUntrackedFilesHolder: Index has changed, marking file:///Users/remi/Code/IUT recursively dirty | |
2014-08-14 09:29:42,380 [611062575] INFO - ellij.concurrency.JobScheduler - 50 ms execution limit failed for: com.intellij.util.Alarm$Request@6012a956: property.inspector active=true scheduled=1; elapsed time was 59ms | |
2014-08-14 09:29:43,128 [611063323] INFO - #git4idea.commands.GitHandler - cd /Users/remi/Code/IUT | |
2014-08-14 09:29:43,128 [611063323] INFO - #git4idea.commands.GitHandler - git add --ignore-errors -- public/cs |
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
def qaCatalinaBase = '/opt/apache-tomcat-8-qa' | |
def qaHttpPort = 8081 | |
def stagingCatalinaBase = '/opt/apache-tomcat-8-staging' | |
def stagingHttpPort = 8082 | |
def perfsCatalinaBase = '/opt/apache-tomcat-8-perfs' | |
def perfsHttpPort = 8084 | |
def productionCatalinaBase = '/opt/apache-tomcat-8-production' |
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 EventEmitter = require('events'); | |
const myEmitter = new EventEmitter(); | |
let value = 1; | |
myEmitter.on('event', () => { | |
value = 2 | |
}); | |
myEmitter.on('event', () => { | |
value += 2 | |
}); |
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 createUserAndCompany(userCompany) { | |
return sequelize.transaction((registerTrans) => { | |
return new Promise((resolve, reject) => { | |
const { user, company} = userCompany; | |
User.create(user) | |
.then((newUser) => { | |
Company.create({...company,idUser: newUser.id}) | |
.then((newCompany) => { | |
EventEmitter.emit('USER_CREATED', {user:newUser}); // HERE IS THE PROBLEM | |
EventEmitter.emit('COMPANY_CREATED', {company: newCompany}); // OR HERE |
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
let value = 1; | |
setImmediate(() => { | |
value = 2; | |
}) | |
console.log(value); // This will print 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
const EventEmitter = require('events'); | |
const myEmitter = new EventEmitter(); | |
let value = 1; | |
myEmitter.on('event', () => { | |
setImmediate(() => { | |
value = 2 | |
}); | |
}); | |
myEmitter.on('event', () => { |
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 Emittery = require('emittery'); | |
const myEmitter = new Emittery(); | |
let value = 1; | |
myEmitter.on('event', () => { | |
value = 2 | |
}); | |
myEmitter.on('event', () => { | |
value += 2 | |
}); | |
myEmitter.emit('event'); |
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
{ | |
"disabled": false, | |
"bindings": [{ | |
"type": "httpTrigger", | |
"name": "req", | |
"direction": "in", | |
"dataType": "binary", | |
"methods": [ | |
"post" | |
] |
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
stream create --name 'uppercase' --definition 'http | transform --expression=payload.toUpperCase() | log' |
OlderNewer