I hereby claim:
- I am loic-moriame on github.
- I am loic_moriame (https://keybase.io/loic_moriame) on keybase.
- I have a public key ASCmaACgfX1uCt_1c9bnJyeqS9rqCag2KoOgF0REeqy31wo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
'use strict'; | |
var Sequelize = require('sequelize'); | |
var sequelize = new Sequelize('mainDB', null, null, { | |
dialect: "sqlite", | |
storage: './test.sqlite', | |
}); | |
sequelize |
# from the VM to export | |
# Remove the udev persistent net rules file: | |
rm -f /etc/udev/rules.d/70-persistent-net.rules | |
# Clean history | |
rm .bash_history | |
history -c | |
# Shutdown the virtual machine: |
Structure & besoins d'une application construite avec ExpressJS + AngularJS. | |
BESOINS | |
======== | |
- avoir un frontend avec authentification obligatoire pour accéder à l'applicatif | |
> la première page sera celle de login | |
- la partie "admin" doit permettre de gérer les utilisateurs / permissions | |
USERS : |
Array.prototype.isEqualTo = function(array) { | |
if(!array) { | |
return false; | |
} | |
if(!(array instanceof Array)) { | |
return false; | |
} | |
if(this.length != array.length) { |
Array.prototype.unset = function(value, global){ | |
var index = this.indexOf(value), | |
global = global || false; | |
while(index > -1) { | |
this.splice(index, 1); | |
index = global ? this.indexOf(value) : -1; | |
} | |
} |
var port = 3000, | |
express = require('express'), | |
io = require('socket.io').listen(app.listen(port)); | |
// routing | |
app.get('/', function (req, res) { | |
res.sendfile(__dirname + '/chat.html'); | |
}); | |
// usernames which are currently connected to the chat |