Skip to content

Instantly share code, notes, and snippets.

View eltonvs's full-sized avatar
🏠
Working from Home

Elton Viana eltonvs

🏠
Working from Home
View GitHub Profile
@eltonvs
eltonvs / beagle_compiler_installer.sh
Created October 19, 2016 13:01
A shell to make the cross compiler installation (from BeagleBone Black) quick and easy
# 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
@eltonvs
eltonvs / asdasdasdsad.cpp
Created September 20, 2016 14:37
asdasdasdas
// 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 {
@eltonvs
eltonvs / 540.cpp
Created August 19, 2016 21:22
kjdvdsknbdcbj k KÇN KMÇcCJ
#include <iostream>
#include <string>
#include <queue>
#include <list>
int main() {
int n, c = 1;
int map[1000000];
int t_map[1001];
std::string line;
@eltonvs
eltonvs / 10258.cpp
Created August 12, 2016 21:19
adsaassadsagthçVJÇ
#include <iostream>
#include <vector>
#include <sstream>
struct Problem {
int id;
bool solved;
};
struct Team {

To find elements without space between the content and '{'

((?! ).{)
$ g++ -Wall -std=c++11 -I include/ src/teste.cpp src/drive.cpp -o bin/pg01
$ ./bin/pg01
$ 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"
$ sudo ln -s /opt/sublime_text/sublime_text /usr/local/bin/subl
sudo apt-get -f install
sudo apt-get autoremove
sudo apt-get -y autoclean
sudo apt-get -y clean
$ sudo apt-get install nautilus-open-terminal