Para estudar para a prova:
- Singleton
- Facade
- Observer
- Strategy
- Template Method
- Adapter
- Composite
<!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"> |
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', |
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 |
sudo pacman -Syyu | |
sudo pacman -Sc --noconfirm | |
sudo pacman -R $(pacman -Qdtq) |
#include <iostream> | |
#include <fstream> | |
#include <sstream> | |
#include <vector> | |
#include <map> | |
struct Proc { | |
int pid; | |
int ppid; | |
double memory; |
#include <iostream> | |
using namespace std; | |
class Base { | |
public: | |
Base() {} | |
virtual ~Base() {}; | |
virtual ostream &print(ostream &o) const = 0; |
#include <iostream> | |
using namespace std; | |
class Base { | |
public: | |
Base() {} | |
virtual ~Base() = 0; | |
ostream& print(ostream &o) const { | |
o << "id: " << id << "\n"; |