Skip to content

Instantly share code, notes, and snippets.

View EdibertoLima's full-sized avatar

Ediberto Lima EdibertoLima

View GitHub Profile
@EdibertoLima
EdibertoLima / canibais_missionarios.py
Last active April 15, 2019 05:30
canibais_missionarios
#coding: utf-8
inicio = [["m","m","m","c","c","c"],[0]]
estado = [[[["m","m","m","c","c","c"],[0]], [0,0]]]
iteracoes = [["m",0], ["c",0], ["m","c"],["m","m"],["c","c"]]
continuar = True
while continuar:
#clonando o estado
temp = [[estado[0][0][0][:],estado[0][0][1][:]]]
% Ponto de visão
e = [10 10 10];
objetos = {};
objetos{1} = struct();
objetos{1}.cor = [50 0 255];
objetos{1}.tipo = 'esfera';
objetos{1}.centro = [0 0 0];
objetos{1}.raio = 3;
#EXTM3U
#EXTINF:0, 10x10 (LEG)
http://cdn96.micetop.us/httpdelivery/sex/antigos/nc/L/10X10LEG.mp4
#EXTINF:0, 10x10 (LEG)
http://cdn96.micetop.us/httpdelivery/sex/antigos/nc/L/10X10LEG.mp4
#EXTINF:0, 12 HERÓIS (LEG)
http://cdn96.micetop.us/httpdelivery/sex/antigos/nc/L/12HEROISHDLEG.mp4
#EXTINF:0, 12 HERÓIS (LEG)
http://cdn96.micetop.us/httpdelivery/sex/antigos/nc/L/12HEROISHDLEG.mp4
#EXTINF:0, 15h17: Trem Para Paris (DUB)
#EXTM3U
#EXTINF:-1 tvg-logo="https://goo.gl/TMGueQ" group-title="The Angry Birds",The Angry Birds
https://6e30cf1f719b12515b4420529841bbfc5e7000f5.googledrive.com/host/1McKwqgsfWxW93moFz7pu6s1CJn7bFmQJcQ
https://9bfb927acbcc03b749de3cebf95b9a86068b38c8.googledrive.com/host/1V1ZQdR2uhW2vMXSUXsyuGgGvAxyNrh6Mmw
#EXTINF:-1 tvg-logo="https://goo.gl/TMGueQ" group-title="Outcast Dublado",1x11utcast
http://videomega.tv/?ref=8KjQ77hwQppQwh77QjK8
#EXTINF:-1 tvg-ID="" tvg-name="VIP PREMIERE" tvg-logo="" group-title="CANAIS ARABICA",VIP PREMIERE
http://198.27.68.69:8000/live/betoskol/12333/42543.ts
class RedBlackTree:
#Red/Black tree implementation based on
#Algorithms in C++, Sedgewick
#Introduction To Algorithms Cormen, Thomas H. / Leiserson, Charles E . / Rivest, Ronald L . The MIT Press 07/1990
# NOTE : LOOK AT END OF FILE TO SEE DIFFERENCES IN TRAVERSAL IDIOMS
red,black = range(2)
# double underscores induce name mangling to make methods private
def __copy(self,node):
import matplotlib.pyplot as plt
import random
from random import randrange
import timeit
tempos_bubble = []
tempos_selection = []
tempos_insertion = []
import matplotlib.pyplot as plt
import random
from random import randrange
import timeit
tempos_bubble = []
tempos_selection = []
tempos_insertion = []
import matplotlib.pyplot as plt
import random
from random import randrange
import timeit
tempos_bubble = []
tempos_selection = []
tempos_insertion = []
tempos_quick = []
import matplotlib.pyplot as plt
import random
from random import randrange
import timeit
tempos_bubble = []
tempos_selection = []
tempos_insertion = []
import matplotlib.pyplot as plt
import random
from random import randrange
import timeit
tempos_bubble = []
tempos_selection = []
tempos_insertion = []