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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Resizable Rectangle</title>
<style>
* {
box-sizing: border-box;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Animated Banner</title>
<style>
* {
box-sizing: border-box;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>JS Expression Calculator</title>
</head>
<body>
<h1>Expression Calculator</h1>
Enter the expression:
<input id="expression" type="text" name="expression">

Design Patterns

Para estudar para a prova:

  • Singleton
  • Facade
  • Observer
  • Strategy
  • Template Method
  • Adapter
  • Composite
@eltonvs
eltonvs / obdtest.py
Last active May 5, 2017 13:14
Retrieve data from obd with python-OBD api
import argparse
import obd
# Configure cli parser
parser = argparse.ArgumentParser()
parser.add_argument('port', help='enter the OBD port to retrieve data')
parser.add_argument(
'-d',
'--debug',
@eltonvs
eltonvs / xampp_installer.sh
Created April 30, 2017 16:27
A script to an easy XAMPP installation
wget https://www.apachefriends.org/xampp-files/7.1.1/xampp-linux-x64-7.1.1-0-installer.run -O xampp-installer.run
chmod +x xampp-installer.run
sudo ./xampp-installer.run
rm xampp-installer.run
@eltonvs
eltonvs / daily_update.sh
Created January 12, 2017 01:08
Shell script to update all repositories (works on arch linux)
sudo pacman -Syyu
sudo pacman -Sc --noconfirm
sudo pacman -R $(pacman -Qdtq)
@eltonvs
eltonvs / get_proc_data.cpp
Last active November 21, 2016 01:35
aaaaaaaaaaaaaaaaaaaaaaaaaaaaa
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <map>
struct Proc {
int pid;
int ppid;
double memory;
@eltonvs
eltonvs / operator2.cpp
Created November 7, 2016 02:45
aaaaaaaaaaaaaaaaaaaaaaaaa
#include <iostream>
using namespace std;
class Base {
public:
Base() {}
virtual ~Base() {};
virtual ostream &print(ostream &o) const = 0;
@eltonvs
eltonvs / operator.cpp
Created November 7, 2016 02:27
aaaaaaaaaaaaaaaaaaaaa
#include <iostream>
using namespace std;
class Base {
public:
Base() {}
virtual ~Base() = 0;
ostream& print(ostream &o) const {
o << "id: " << id << "\n";