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 paramiko | |
client = paramiko.SSHClient() | |
client.load_system_host_keys() | |
client.set_missing_host_key_policy(paramiko.WarningPolicy()) | |
server_add = "127.0.0.1" | |
username = "yyy" | |
password = "xxx" |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
Data;D1;D2;D3;D4;D5;D6;Arrecadacao_Total;Sena;Rateio_Sena;Quina;Rateio_Quina;Quadra;Rateio_Quadra;Acumulado;Valor_Acumulado | |
11/03/1996;41;5;4;52;30;33;0;0;0.00;17;39158.92;2016;330.21;SIM;1714650.23 | |
18/03/1996;9;39;37;49;43;41;0;1;2307162.23;65;14424.02;4488;208.91;NÃO;0.00 | |
25/03/1996;36;30;10;11;29;47;0;2;391192.51;62;10515.93;4261;153.01;NÃO;0.00 | |
01/04/1996;6;59;42;27;1;5;0;0;0.00;39;15322.24;3311;180.48;SIM;717080.75 | |
08/04/1996;1;19;46;6;16;2;0;0;0.00;98;5318.10;5399;96.53;SIM;1342488.85 | |
15/04/1996;19;40;7;13;22;47;0;0;0.00;109;7214.66;7147;110.03;SIM;2286166.33 | |
22/04/1996;56;38;21;20;3;5;0;0;0.00;100;8746.05;5736;152.48;SIM;3335692.28 | |
29/04/1996;53;17;38;4;47;37;0;0;0.00;60;16084.11;5262;183.40;SIM;4493748.19 | |
06/05/1996;55;43;56;54;8;60;0;0;0.00;17;60043.79;2175;469.31;SIM;5718641.49 |
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
from operator import __or__ as OR | |
listadeqobjects = [ Q(nome__istartswith="foo"), | |
Q(sobrenome__istartswith="foo"), | |
Q(cidade__istartswith="foo"), | |
Q(descricao__istartswith="foo"), | |
] | |
qs = MeuModelo.objects.filter(reduce(OR, listadeqobjects)) |
We can't make this file beautiful and searchable because it's too large.
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
EMPRESA (SIGLA);EMPRESA (NOME);EMPRESA (NACIONALIDADE);ANO;MÊS;AEROPORTO DE ORIGEM (SIGLA);AEROPORTO DE ORIGEM (NOME);AEROPORTO DE ORIGEM (UF);AEROPORTO DE ORIGEM (REGIÃO);AEROPORTO DE ORIGEM (PAÍS);AEROPORTO DE ORIGEM (CONTINENTE);AEROPORTO DE DESTINO (SIGLA);AEROPORTO DE DESTINO (NOME);AEROPORTO DE DESTINO (UF);AEROPORTO DE DESTINO (REGIÃO);AEROPORTO DE DESTINO (PAÍS);AEROPORTO DE DESTINO (CONTINENTE);NATUREZA;GRUPO DE VOO;PASSAGEIROS PAGOS;PASSAGEIROS GRÁTIS;CARGA PAGA (KG);CARGA GRÁTIS (KG);CORREIO (KG);ASK;RPK;ATK;RTK;COMBUSTÍVEL (LITROS) - APENAS EMPRESAS BRASILEIRAS;DISTÂNCIA VOADA (KM);DECOLAGENS;CARGA PAGA KM;CARGA GRATIS KM;CORREIO KM;ASSENTOS;PAYLOAD;HORAS VOADAS | |
AAL;AMERICAN AIRLINES;ESTRANGEIRA;2015;1;KDFW;DALLAS/FORT WORTH;;;ESTADOS UNIDOS;AMÉRICA DO NORTE;SBGL;RIO DE JANEIRO - GALEÃO;RJ;SUDESTE;BRASIL;AMÉRICA DO SUL;Internacional;Regular;2254;42;20723;0;4109;23158668;18940362;3823365;1629190.446;;109239;13;174135369;0;34527927;2756;455000; | |
AAL;AMERICAN AIRLINES;ESTRANGEIRA;2015;1;KDFW;DALLAS/FO |
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
from sklearn import svm | |
X = mega_results[['D1','D2','D3','D4','D5','D6']] | |
y = mega_results['Sena'] | |
clf = svm.SVC() | |
clf.fit(X, y) | |
import random |
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 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
Data;D1;D2;D3;D4;D5;D6;Arrecadacao_Total;Sena;Rateio_Sena;Quina;Rateio_Quina;Quadra;Rateio_Quadra;Acumulado;Valor_Acumulado | |
11/03/1996;4;5;30;33;41;52;0;0;0;17;39158.92;2016;330.21;SIM;1714650.23 | |
18/03/1996;9;37;39;41;43;49;0;1;2307162.23;65;14424.02;4488;208.91;NÃO;0 | |
25/03/1996;10;11;29;30;36;47;0;2;391192.51;62;10515.93;4261;153.01;NÃO;0 | |
01/04/1996;1;5;6;27;42;59;0;0;0;39;15322.24;3311;180.48;SIM;717080.75 | |
08/04/1996;1;2;6;16;19;46;0;0;0;98;5318.10;5399;96.53;SIM;1342488.85 | |
15/04/1996;7;13;19;22;40;47;0;0;0;109;7214.66;7147;110.03;SIM;2286166.33 | |
22/04/1996;3;5;20;21;38;56;0;0;0;100;8746.05;5736;152.48;SIM;3335692.28 | |
29/04/1996;4;17;37;38;47;53;0;0;0;60;16084.11;5262;183.4;SIM;4493748.19 | |
06/05/1996;8;43;54;55;56;60;0;0;0;17;60043.79;2175;469.31;SIM;5718641.49 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
<link rel="import" href="../components/polymer/polymer.html"> | |
<polymer-element name="my-element"> | |
<template> | |
<style> | |
:host { | |
position: absolute; | |
width: 100%; | |
height: 100%; |
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
var x_target = -1; | |
var y_target = -1; | |
var target_valid = false; | |
var idle_counter = 0; | |
var time_frame = 0; | |
var last_reverse = -10000; | |
var last_turn = -10000; | |
var at_wall = false; | |
var clockwise = true; |
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
var Robot = function(robot) { | |
robot.clone(); | |
}; | |
Robot.prototype.onIdle = function(ev) { | |
ev.robot.back(30); | |
robot.rotateCannon(180); | |
}; |
NewerOlder