((?! ).{)
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
# get file from source | |
wget -c https://releases.linaro.org/14.03/components/toolchain/binaries/gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz | |
# uncompress file | |
tar xf gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux.tar.xz | |
# copy uncompressed file to /opt/ | |
sudo cp -r gcc-linaro-arm-linux-gnueabihf-4.8-2014.03_linux /opt/ | |
# remove downloaded files |
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
// Tire isso dps, to usando so pra n me preocupar com os includes kkk | |
#include <bits/stdc++.h> | |
#define POS_NUMBER 12 | |
#define POS_NAME 10 | |
#define POS_ENTOURAGE 18 | |
#define POS_CITY 41 | |
#define POS_STATUS 16 | |
struct Candidate { |
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 <queue> | |
#include <list> | |
int main() { | |
int n, c = 1; | |
int map[1000000]; | |
int t_map[1001]; | |
std::string line; |
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 <sstream> | |
struct Problem { | |
int id; | |
bool solved; | |
}; | |
struct Team { |
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
$ g++ -Wall -std=c++11 -I include/ src/teste.cpp src/drive.cpp -o bin/pg01 | |
$ ./bin/pg01 |
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
$ sudo gedit ~/.bashrc | |
# Add a comment to unset color_prompt force_color_prompt | |
# Remove '#' from force_color_prompt=yes | |
# To C++ friendly | |
# Add at the EOF: | |
# Set c++11 as default compiler | |
alias g++="g++ --std=c++11 -Wall" |
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
$ sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl |
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
sudo apt-get -f install | |
sudo apt-get autoremove | |
sudo apt-get -y autoclean | |
sudo apt-get -y clean |
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
$ sudo apt-get install nautilus-open-terminal |