Skip to content

Instantly share code, notes, and snippets.

View lesimoes's full-sized avatar
😎
bugging && debugging

Leandro Simões lesimoes

😎
bugging && debugging
View GitHub Profile
@lesimoes
lesimoes / ibm
Created March 3, 2017 10:49
ibm
{"name":"tutorial_bot","created":"2017-01-30T10:37:15.543Z","intents":[{"intent":"about","created":"2017-02-10T13:41:24.680Z","updated":"2017-02-22T14:07:02.745Z","examples":[{"text":"Conte me mais","created":"2017-02-10T13:41:43.340Z","updated":"2017-02-10T13:41:43.340Z"},{"text":"Estou interessado","created":"2017-02-10T13:41:49.543Z","updated":"2017-02-10T13:41:49.543Z"},{"text":"Me fale mais","created":"2017-02-10T13:41:32.349Z","updated":"2017-02-10T13:41:32.349Z"},{"text":"Quero conhecer a smart","created":"2017-02-22T14:07:02.745Z","updated":"2017-02-22T14:07:02.745Z"},{"text":"Sobre a Smart NX","created":"2017-02-10T13:41:40.040Z","updated":"2017-02-10T13:41:40.040Z"}],"description":null},{"intent":"ajax","created":"2017-02-10T17:13:36.830Z","updated":"2017-02-22T20:04:42.116Z","examples":[{"text":"Como está o ticket","created":"2017-02-10T19:50:39.260Z","updated":"2017-02-10T19:50:39.260Z"},{"text":"consultar status de um atendimento","created":"2017-02-22T20:04:42.116Z","updated":"2017-02-22T20:04:4
@lesimoes
lesimoes / sessions.js
Last active March 26, 2017 16:49
Sessions on nodejs
var express = require('express');
var bodyParser = require('body-parser');
var expressSession = require('express-session');
var cookieParser = require('cookie-parser');
var app = express();
app.use(cookieParser());
app.use(expressSession({secret:'nicetoken'}));
app.use(bodyParser());