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> | |
const int REALLOC_SIZE = 10000; | |
const int IT = 1000000; | |
int main(){ | |
void* ptr=NULL; | |
void* last; | |
int n=0; |
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 <climits> | |
#include <iostream> | |
#include <vector> | |
#include <queue> | |
#include <stack> | |
#include <algorithm> | |
const int infinity = INT_MAX; | |
const int BLACK = 2; | |
const int GREY = 1; |
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
/* | |
* File: 1234.cpp | |
* Author: daniel | |
* | |
* Created on 2 de Agosto de 2015, 20:31 | |
*/ | |
#include <iostream> | |
#include <string> | |
#include <algorithm> |
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 <iostream> | |
#include <string> | |
#include <algorithm> | |
using namespace std; | |
/* | |
* | |
*/ |
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 <iostream> | |
int main(){ | |
std::cout << "Hello World\n"; | |
return 0; | |
} |
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
#!/usr/bin/env bash | |
# memusg -- Measure memory usage of processes | |
# Usage: memusg COMMAND [ARGS]... | |
# | |
# Author: Jaeho Shin <[email protected]> | |
# Created: 2010-08-16 | |
set -um | |
# check input | |
[ $# -gt 0 ] || { sed -n '2,/^#$/ s/^# //p' <"$0"; exit 1; } |
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 <iostream> | |
#include <vector> | |
#include <algorithm> | |
using namespace std; | |
class valorHora{ | |
public: | |
int valor; |
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
int j; | |
void* aux,*tmp; | |
tmp = vet[i]; | |
for(j=i;j<tam-1;j++){ | |
aux = vet[j+1]; | |
vet[j+1] = tmp; | |
tmp = aux; | |
} |
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
var express = require('express'); | |
Livro = require('../models/livroModel'); | |
//Livro = mongoose.model('Livro'); | |
var router = express.Router(); | |
router.route('/') | |
.get(function (req,res){ | |
Livro.find({}, function(err,livro){ | |
if(err){ |
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
var express = require('express'); | |
var port = process.env.PORT || 8080; | |
var app = express(); | |
var mongoose = require('mongoose'); | |
var Livro = require('./app/models/livroModel'); | |
var bodyParser = require('body-parser'); | |
mongoose.connect('mongodb://127.0.0.1/Livros', function(err) { | |
if (err) throw err; | |
}); |
OlderNewer