I hereby claim:
- I am paoloo on github.
- I am paolooliveira (https://keybase.io/paolooliveira) on keybase.
- I have a public key whose fingerprint is A0CE 2402 B756 0064 303F 5524 F95C 1A5D A519 9C2B
To claim this, I am signing this object:
#!/bin/bash | |
## windows x86_64 mingw cross-compilation on linux | |
## ============= INSTALATION SCRIPT ============= | |
## ========== paolo oliveira <paolo@fisica.ufc.br> | |
if [ "$(id -u)" != "0" ]; then | |
echo "This instalation script requires root" 1>&2 | |
exit 1 | |
fi | |
# ==========[ download ]=========================================================================== |
import itertools, math | |
# gerar serie 1,2,4,7,11,…N | |
def seriea(N): | |
serie=[] | |
ac=1 | |
for i in range(N): | |
ac+=i | |
serie.append(ac) | |
return(serie) |
#!/usr/bin/python | |
# ============================================================================= | |
# Pesquisa e Ordenacao - 2016.1 | |
# ============================================================================= | |
import random | |
import bisect | |
class _BTreeNode(object): | |
def __init__(self, values=None, children=None): | |
self.parent = None |
# -*- coding: utf-8 -*- | |
class Estado(): | |
def __init__(self, missionarios_esq, missionarios_dir, canibais_esq, canibais_dir, lado_rio): | |
self.missionarios_esq, self.missionarios_dir, self.canibais_esq, self.canibais_dir = missionarios_esq, missionarios_dir, canibais_esq, canibais_dir | |
self.lado_rio = lado_rio | |
self.m_previo_esq, self.m_previo_dir, self.c_previo_esq, self.c_previo_dir = missionarios_esq, missionarios_dir, canibais_esq, canibais_dir | |
self.pai = None | |
self.filhos = [] |
# -*- coding: utf-8 -*- | |
from heapq import heappush, heappop | |
from random import shuffle | |
import time | |
import sys | |
class Estado: | |
def __init__(self, valores, movimentos=0, parent=None): | |
self.valores = valores | |
self.movimentos = movimentos |
# entre os datasets sugeridos pelo senhor, escolhi usar o bank.csv | |
# encontrado em: http://archive.ics.uci.edu/ml/datasets/Bank+Marketing | |
from math import log | |
class ID3(object): | |
def __init__(self): | |
self.root = None | |
def training(self, dataset, target, exclude=[]): |
COUNTRY | A2 (ISO) | A3 (UN) | NUM (UN) | DIALING CODE | |
---|---|---|---|---|---|
Afghanistan | AF | AFG | 4 | 93 | |
Albania | AL | ALB | 8 | 355 | |
Algeria | DZ | DZA | 12 | 213 | |
American Samoa | AS | ASM | 16 | 1-684 | |
Andorra | AD | AND | 20 | 376 | |
Angola | AO | AGO | 24 | 244 | |
Anguilla | AI | AIA | 660 | 1-264 | |
Antarctica | AQ | ATA | 10 | 672 | |
Antigua and Barbuda | AG | ATG | 28 | 1-268 |
; The official HD AI | |
; An Artificial Intelligence Script written by Archon and Promiskuitiv | |
; Get in contact with Promiskuitiv by sending a mail to neuernamae@web.de | |
; List of taunts it reacts to: | |
; Standard taunts. | |
; 33 - Stop slinging resources. If slinging is requested early and is immediately canceled it may mess up the strategy. | |
; 38 - Sling Resources. Human player only, stops any unit production except for civilian units. |
I hereby claim:
To claim this, I am signing this object: