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 / 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());
@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 / jobs.txt
Last active November 11, 2019 13:08
### Repositórios Github com vagas (Estão em Issues) ###
Backend Vagas
https://github.com/backend-br/vagas
https://github.com/backend-br/vagas/issues/1845
Fronted Vagas
https://github.com/frontendbr/vagas
import { Component, OnInit } from '@angular/core';
import { AngularFireDatabase, AngularFireList } from 'angularfire2/database';
import { Observable } from 'rxjs';
@Component({
selector: 'app-listagem',
templateUrl: './listagem.page.html',
styleUrls: ['./listagem.page.scss'],
})
#include <stdio.h>
#define TAM 10
struct lista {
int n;
char elemen[TAM];
}Lista;
void iniciaListaVazia(struct lista *L){ L->n = 0;}
#include <stdio.h>
#define TAM 10
struct pilha {
int topo;
char elemen[TAM];
}Pilha;
void inicia(struct pilha *P){
P->topo = -1;
#include <stdio.h>
#define TAM 10
struct fila {
int inicio, fim, tamanho;
char elemen[TAM];
}Fila;
void iniciar(struct fila *F){
F->inicio = 1;
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
struct No {
char info;
struct No *prox;
};
typedef struct No Registro;
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TAM 100000
void aleatorio(int *vetor){
srand(time(NULL));
for(int i = 0 ; i < TAM ; i ++)
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#define TAM 10
void aleatorio(int *vetor){
srand(time(NULL));
for(int i = 0 ; i < TAM ; i ++)