This file contains hidden or 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
#! /bin/bash | |
mkdir -p ativ-tutorial/ | |
cd ativ-tutorial/ | |
echo \ | |
'#include <stdlib.h> | |
#include <stdio.h> | |
#include "util.h" | |
#include "cpu.h" |
This file contains hidden or 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
sudo apt-get update | |
sudo apt-get install -y mongodb | |
rm -rf ~/workspace | |
rm -rf ~/data | |
mkdir ~/workspace | |
cd ~/workspace | |
wget "https://drive.google.com/uc?export=download&id=0B2kxVreQtp4mdk1tT2dwWW5FY2s" -O code.zip | |
unzip code.zip |
This file contains hidden or 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> | |
int remRep(int vec[], int size){ | |
int i, k, m; | |
for (i = 1; i < size; i++){ | |
for (k = i; k > 0; k--){ | |
if(vec[k] < vec[k-1]){ | |
int aux = vec[k]; | |
vec[k] = vec[k-1]; |
This file contains hidden or 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 logfmt = require("logfmt"); | |
var app = express(); | |
app.use(logfmt.requestLogger()); | |
app.get('/', function(req, res) { | |
res.send('Hello World!'); | |
}); |