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
% --- | |
% Inserir folha de aprovação | |
% --- | |
% Isto é um exemplo de Folha de aprovação, elemento obrigatório da NBR | |
% 14724/2011 (seção 4.2.1.3). Você pode utilizar este modelo até a aprovação | |
% do trabalho. Após isso, substitua todo o conteúdo deste arquivo por uma | |
% imagem da página assinada pela banca com o comando abaixo: | |
% |
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
import asyncio | |
async def A(): | |
try: | |
await asyncio.sleep(100) | |
except asyncio.CancelledError: | |
print("canceled (A)") | |
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
=== Run information === | |
Scheme: weka.associations.Apriori -N 50 -T 0 -C 0.5 -D 0.05 -U 1.0 -M 0.0453 -S -1.0 -c -1 | |
Relation: matrix_perticencia-weka.filters.unsupervised.attribute.NumericToNominal-Rfirst-last | |
Instances: 332 | |
Attributes: 272 | |
[list of attributes omitted] | |
=== Associator model (full training set) === | |
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
class switch(object): | |
def __init__(self, var): | |
self.var = var | |
def __enter__(self): | |
self.match = False | |
self.stops = False | |
def case(v=None): | |
if(self.stops): |
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 <bits/stdc++.h> | |
#define abs(x) ((x) < 0 ? -(x) : (x)) | |
#define uint unsigned int | |
using namespace std; | |
int gcd(int x, int y) | |
{ | |
if (x > y) | |
swap(x, y); | |
while (x > 0) { |
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 <Keyboard.h> | |
#include <SoftwareSerial.h> | |
// give it a name: Game control | |
// Pin names | |
int space = 2; //space | |
int up = 6; //up | |
int down = 12; //down | |
int left = 13; //left | |
int right = 8; //right |
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
{ | |
"meta": { | |
"total": 2, | |
"count": 2, | |
"offset": 0 | |
}, | |
"data": [ | |
{ | |
"request_at": "2016-11-23T04:01:06.584338", | |
"id": 2, |
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
[ | |
{ | |
"_id": "Main-Dashboard", | |
"_type": "dashboard", | |
"_source": { | |
"title": "Main Dashboard", | |
"hits": 0, | |
"description": "", | |
"panelsJSON": "[{\"col\":1,\"id\":\"Saude-Empresa\",\"panelIndex\":1,\"row\":1,\"size_x\":12,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Saude-Peek\",\"panelIndex\":2,\"row\":7,\"size_x\":12,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Saude-Peekbox\",\"panelIndex\":3,\"row\":4,\"size_x\":12,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Peekbox-Reportes-ao-longo-do-tempo\",\"panelIndex\":4,\"row\":12,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":7,\"id\":\"Peekbox-Memória\",\"panelIndex\":5,\"row\":12,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":1,\"id\":\"Peekbox-Snoop\",\"panelIndex\":6,\"row\":15,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"},{\"col\":7,\"id\":\"Peekbox-Processos\",\"panelIndex\":7,\"row\":15,\"size_x\":6,\"size_y\":3,\"type\":\"visualization\"} |
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
import Control.Monad.State | |
import Data.Set (member, singleton, Set) | |
type Tape a = ([Maybe a], [Maybe a]) | |
empty::Tape a | |
empty = ([], [Nothing]) | |
--create a Tape from a list point to the first element of it | |
fromList:: [a] -> Tape a | |
fromList a = ([], map (Just) a) |
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
import Data.List | |
media :: Fractional a => [a] -> a | |
media l = sum l / (fromIntegral $ length l) | |
desvios :: Fractional a => [a] -> a -> [a] | |
desvios xs m = map (subtract m) xs | |
powtwo :: Fractional a => [a] -> [a] | |
powtwo = map (^2) |
NewerOlder