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 json2csv = require('json2csv'); | |
// const lineReader = require('readline').createInterface({ | |
// input: require('fs').createReadStream('usuarios_15.txt') | |
// }); | |
const fs = require('fs'); | |
var path = require('path'); | |
i = 0; | |
users = []; | |
const fields = ['userName', 'email']; |
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
<% include header %> | |
<h2>Write a new entry</h2> | |
<form method="post" role="form"> | |
<div class="form-group"> | |
<label for="title">Title</label> | |
<input type="text" class="form-control" id="title" name="title" placeholder="Entry title" required> | |
</div> | |
<div class="form-group"> |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Express Guestbook</title> | |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> | |
</head> | |
<body class="container"> | |
<h1> | |
Express Guestbook |
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
private def getBalanceAmountR(valAmount: Double, operations: List[Operation]): Double = operations match{ | |
case Nil => valAmount | |
case Purchase(_, value, _, _):: tail => valAmount - getBalanceAmountR(valAmount, tail) | |
case Deposit(_, value, _, _):: tail => valAmount + getBalanceAmountR(valAmount, tail) | |
case Withdrawal(_, value, _, _)::tail => valAmount - getBalanceAmountR(valAmount, tail) | |
} |
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
/** | |
* This file contains pieces of code related to our media REST routes. | |
* Requesting GET media/:id returns information about a media (photo or video) with that specific identifier. | |
* The JSON response also includes a self signed temporal URL to acess the image or video from AWS S3, | |
* also another URL for the thumbnail. | |
* | |
* This endpoint is used by the app to display thumbnails or the media content that the user is currently | |
* browsing in the app. However, for very large albums/folders that requires the app doing a lot of requests | |
* while the user is browsing. | |
* |
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
import java.util.HashMap; | |
public class Interview { | |
public static boolean sum(int[] A, int b){ | |
HashMap<Integer, Integer> hash = new HashMap<Integer, Integer>(); | |
for (int i = 0; i<A.length; i++){ | |
hash.put(A[i], i); | |
} |
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
#include <stdio.h> | |
#include<stdlib.h> | |
//ano 1800 dia 1 de janeiro era quarta feira | |
int main () | |
{ | |
int dia1,mes1,ano1,dia2,mes2,ano2,cont_dias,idade; | |
//Estabelecendo no vetor2 o ano sendo bissexto e no vetor1 o ano não sendo bissexto | |
int vetor1[12] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31}; |
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
# O primeiro vetor guarda os indices dos pais da BFS | |
# O segundo guarda se o vertice foi visitado ou nao na busca em largura | |
# Todas as variaveis com '@' sao globais | |
def bfs(s, t, n) | |
@pais = Array.new(20, 0) | |
@status = Array.new(20, false) | |
@status[s] = true | |
queue = [] | |
queue.push(s) |
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
#include<stdio.h> | |
#include<stdlib.h> | |
#include<string.h> | |
#include<queue> | |
using namespace std; | |
#define min(a, b) (a<b?a:b) | |
/* (()) |
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
Making check in src | |
make[1]: Entering directory `/home/dener/Downloads/NuSMV-2.5.4/nusmv/src' | |
Making check in parser | |
make[2]: Entering directory `/home/dener/Downloads/NuSMV-2.5.4/nusmv/src/parser' | |
\ | |
/bin/bash ../../helpers/ylwrap `test -f 'input.l' || echo './'`input.l lex.yy.c input.c -- /bin/bash /missing flex -l | |
/bin/bash: /missing: No such file or directory | |
make[2]: *** [input.c] Error 1 | |
make[2]: Leaving directory `/home/dener/Downloads/NuSMV-2.5.4/nusmv/src/parser' | |
make[1]: *** [check-recursive] Error 1 |
NewerOlder