repo_name
stringlengths
6
97
path
stringlengths
3
341
text
stringlengths
8
1.02M
vovanbo/django-cms
cms/utils/compat/__init__.py
from distutils.version import LooseVersion import django # These means "less than or equal to DJANGO_FOO_BAR" DJANGO_1_8 = LooseVersion(django.get_version()) < LooseVersion('1.9') DJANGO_1_9 = LooseVersion(django.get_version()) < LooseVersion('2.0')
vovanbo/django-cms
cms/models/pagemodel.py
# -*- coding: utf-8 -*- from logging import getLogger from os.path import join from django.conf import settings from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.core.urlresolvers import reverse from django.db import models from django.shortcuts import get_obje...
vovanbo/django-cms
cms/test_utils/project/objectpermissionsapp/models.py
# -*- coding: utf-8 -*- from django.conf import settings from django.db import models from django.core.exceptions import ValidationError from django.contrib.auth.models import Permission from django.contrib.contenttypes.models import ContentType from django.contrib.contenttypes.fields import GenericForeignKey from djan...
vovanbo/django-cms
cms/utils/check.py
<filename>cms/utils/check.py # -*- coding: utf-8 -*- from contextlib import contextmanager import inspect from itertools import chain import os from django.conf import settings from django.template.base import Lexer, TOKEN_BLOCK from django.utils.decorators import method_decorator from django.utils.termcolors import c...
vovanbo/django-cms
cms/toolbar_pool.py
# -*- coding: utf-8 -*- from collections import OrderedDict from cms.exceptions import ToolbarAlreadyRegistered, ToolbarNotRegistered from cms.utils.conf import get_cms_setting from cms.utils.django_load import load, iterload_objects from django.core.exceptions import ImproperlyConfigured class ToolbarPool(object): ...
vovanbo/django-cms
cms/middleware/language.py
<reponame>vovanbo/django-cms<filename>cms/middleware/language.py # -*- coding: utf-8 -*- import datetime from django.utils.translation import LANGUAGE_SESSION_KEY, get_language from django.conf import settings class LanguageCookieMiddleware(object): def process_response(self, request, response): language...
vovanbo/django-cms
cms/test_utils/project/customuserapp/migrations/0001_initial.py
<reponame>vovanbo/django-cms # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations import re import cms.test_utils.project.customuserapp.models import django.core.validators class Migration(migrations.Migration): dependencies = [ ('auth', '0006_require_...
vovanbo/django-cms
cms/utils/reversion_hacks.py
<reponame>vovanbo/django-cms # -*- coding: utf-8 -*- # This large try / except is to account for reversion 1.10 (top) / 1.8 (bottom) support # This will go away in CMS 3.3 when only reversion 1.10 will be supported try: from reversion import revisions as reversion from reversion.admin import VersionAdmin as Mo...
vovanbo/django-cms
cms/tests/test_cache.py
# -*- coding: utf-8 -*- from django.template import Template, RequestContext from django.conf import settings from sekizai.context import SekizaiContext from cms.api import add_plugin, create_page from cms.cache import _get_cache_version, invalidate_cms_page_cache from cms.models import Page from cms.plugin_pool impor...
vovanbo/django-cms
cms/test_utils/project/placeholderapp/admin.py
<filename>cms/test_utils/project/placeholderapp/admin.py from cms.admin.placeholderadmin import PlaceholderAdminMixin, FrontendEditableAdminMixin from cms.test_utils.project.placeholderapp.models import ( Example1, MultilingualExample1, TwoPlaceholderExample, CharPksExample ) from cms.test_utils.project.placeho...
vovanbo/django-cms
cms/cache/placeholder.py
<reponame>vovanbo/django-cms<filename>cms/cache/placeholder.py # -*- coding: utf-8 -*- from django.conf import settings from django.utils.encoding import force_text from django.utils.timezone import get_current_timezone_name from cms.cache import _get_cache_version, _set_cache_version, _clean_key, _get_cache_key from c...
vovanbo/django-cms
cms/test_utils/project/pluginapp/plugins/manytomany_rel/migrations/0002_auto_20151101_0919.py
<filename>cms/test_utils/project/pluginapp/plugins/manytomany_rel/migrations/0002_auto_20151101_0919.py # -*- coding: utf-8 -*- from __future__ import unicode_literals from django.db import models, migrations class Migration(migrations.Migration): dependencies = [ ('cms', '0013_urlconfrevision'), ...
vovanbo/django-cms
cms/cache/page.py
# -*- coding: utf-8 -*- import hashlib from django.conf import settings from django.utils.cache import add_never_cache_headers from django.utils.encoding import iri_to_uri, force_text from django.utils.timezone import get_current_timezone_name from cms.cache import _get_cache_version, _set_cache_version, _get_cache_ke...
vovanbo/django-cms
cms/utils/compat/dj.py
from django.apps import apps __all__ = ['is_installed', 'installed_apps', 'get_apps', 'get_app_paths'] # import these directly from Django! from django.utils.encoding import ( # nopyflakes force_text as force_unicode, python_2_unicode_compatible, ) # TODO: move these helpers out of compat? def is_installed(app_...
vovanbo/django-cms
cms/middleware/utils.py
# -*- coding: utf-8 -*- from __future__ import absolute_import, unicode_literals from ..utils import apphook_reload class ApphookReloadMiddleware(object): """ If the URLs are stale, reload them. """ def process_request(self, request): apphook_reload.ensure_urlconf_is_up_to_date()
nedlrichards/Zoidberg_ROS
scripts/guidance_node.py
#!/usr/bin/env python """ Guidance node ============= User specifies desired depth, heading and velocity of robot. Guidance works with control system on Pixhawk to make this happen. """ from __future__ import print_function, division import roslib roslib.load_manifest('zoidberg_ros') import rospy from math import copy...
mihirp1998/pytorch-dense-correspondence
config/params.py
import socket hostname = socket.gethostname() if "compute" in hostname: DIR_DATA = '/projects/katefgroup/datasets/denseobj/' DIR_PROJ = '/home/mprabhud/projects/pytorch-dense-correspondence' else: DIR_DATA = '/media/mihir/dataset/denseobjnet' DIR_PROJ = '/home/mihir/Documents/projects/pytorch-dense-correspondence'
mihirp1998/pytorch-dense-correspondence
dense_correspondence/training/training_tutorial.py
<reponame>mihirp1998/pytorch-dense-correspondence<filename>dense_correspondence/training/training_tutorial.py import os import sys from config.params import * import logging os.chdir(DIR_PROJ) sys.path.append(os.path.join(DIR_PROJ, 'modules')) os.environ['DC_SOURCE_DIR'] = DIR_PROJ os.environ['DC_DATA_DIR'] = "{}/pdc"....
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/agenteInteligente/Inteligencia.py
class Inteligencia: def __init__(self, nomeArquivoIA, arquivosExternos, ambientes, entradas, todosTiposJogadores, preJogos): self.INomeArquivoIA = nomeArquivoIA self.IArquivosExternos = arquivosExternos self.IAmbientes = ambientes self.IEntradas = entradas se...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/Sensores.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem class Sensores: def __init__(self, ambiente, simboloCampoVazio, getTodasPecas): self.IAmbiente = ambiente self.ISimboloCampoVazio = simboloCampoVazio self.IJogadorUmPeca, self.IJogadorDoisPeca = getTodasPecas # retorna a posição ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/BaseDeDadosCtrl.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem<filename>Jogo_da_velha/controller/BaseDeDadosCtrl.py class BaseDeDadosCtrl: def __init__(self, ambientes, baseDeDados, nomeArquivoIA, inteligencia): self.IAmbientes = ambientes self.IBaseDeDados = baseDeDados self.INomeArquivoIA = nom...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafico_de_desempenho/model/TrataDadosBase.py
<filename>Grafico_de_desempenho/model/TrataDadosBase.py class TrataDadosBase: def __init__(self): pass def ConstroiListas(self, performanceDados): performanceDados = self.verificaBase(performanceDados) self.listPartidas(performanceDados) performanceDados = self.porcentagemVitori...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/secundario/TrataDados.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem<gh_stars>0 from model.ArquivosExternos import ArquivosExternos # import sys class TrataDados: def __init__(self): self.TodosOsNohs = [] self.NohsNaoVisitados = [] # sys.setrecursionlimit(10000) # usar em caso de erro de limite de r...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/agenteDificil/DificilJogadas.py
class DificilJogadas: def __init__(self, ambiente, entrada, dificilSensores, getJogadorUmPeca, simboloCampoVazio): self.IAmbiente = ambiente self.IEntrada = entrada self.IDificilSensores = dificilSensores self.IGetJogadorUmPeca = getJogadorUmPeca self.ISimbol...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/Atuadores.py
class Atuadores: def __init__(self, AleatorioJogadas, dificilJogadas, getTodosTiposJogadores, inteligente): self.IAleatorioJogadas = AleatorioJogadas self.IDificilJogadas = dificilJogadas self.IGetTodosTiposJogadores = getTodosTiposJogadores self.IInteligente = inteligente # def...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/TabuleirosCtrl.py
class TabuleiroCtrl: def __init__(self, ambiente, entradas, preJogo, inteligencia, telaTabuleiro, preJogoCtrl, fimDeJogosCtrl, pecasCtrl, atuadoresCtrl, todosTiposJogadores): self.IAmbiente = ambiente self.IEntradas = entradas self.IPreJogo = preJogo ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/PecasCtrl.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem<filename>Jogo_da_velha/controller/PecasCtrl.py class PecasCtrl: def __init__(self, sensores, peca): self.ISensores = sensores self.IPeca = peca def getPecasPelaVezCtrl(self): if self.ISensores.vezDoJogadorUm(): return...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafico_de_desempenho/view/TelaDesempenhos.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem import matplotlib.pyplot as plt class TelaDesempenhos: def __init__(self): self.graficoAtivado = False def graficoDesempenho(self, performanceDados): tipoUm = performanceDados["jogadorUm"]["tipo"] vitoriaUm = performanceDados["...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/PreJogosCtrl.py
<gh_stars>0 class PreJogosCtrl: def __init__(self, sensores, preJogo, dadosFixos): self.ISensores = sensores self.IPreJogo = preJogo self.IDadosFixos = dadosFixos def getTiposJogadoresCtrl(self): return self.IPreJogo.getTipoJogadorUm(), self.IPreJogo.getTipoJogadorDois() de...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/ScrollWindow.py
<filename>Grafo_de_IA/grafos/ScrollWindow.py import matplotlib # Make sure that we are using QT5 matplotlib.use('Qt5Agg') import matplotlib.pyplot as plt from PyQt5 import QtWidgets from matplotlib.backends.backend_qt5agg import FigureCanvasQTAgg as FigureCanvas from matplotlib.backends.backend_qt5agg import Navigatio...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/view/TelaPreJogos.py
import PySimpleGUI as sg class TelaPreJogos: def __init__(self, getTodosTiposJogadores): sg.change_look_and_feel('lightGrey1') # define tema de cores self.GetTodosTiposJogadores = getTodosTiposJogadores self.Valores = self.conteudo() # define tudo que vai estar na janela def layo...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/controller/ControladorDinamicoEmTempoReal.py
from controller.Preenchimento import Preenchimento class ControladorDinamicoEmTempoReal(Preenchimento): def __init__(self): self.ultimoJogoAnterior = self.manipularDados(self.jogadasFormatadas, self.scoresFormatados) self.isFirstTime = True def atualizarDados(self): isDifferent = False...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/DinamicoEmTempoReal.py
import networkx as nx import matplotlib.pyplot as plt from grafos.Arvore import hierarchy_pos #from grafos.ScrollWindow import ScrollableWindow from controller.ControladorDinamicoEmTempoReal import ControladorDinamicoEmTempoReal fig = plt.figure(1, figsize=(15, 6.5)) G = nx.Graph() raiz = 0 #preenchimento = Preenchim...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/agenteDificil/DificilSensores.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem class DificilSensores: def __init__(self, sensores, aleatorioJogadas, getTodasPecas): self.ISensores = sensores self.IAleatorioJogadas = aleatorioJogadas self.IGetTodasPecas = getTodasPecas # isso garante que o agente dificil pos...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/controller/Preenchimento.py
from model.ArquivosExternos import ArquivosExternos class Preenchimento: jogadasFormatadas = [] scoresFormatados = [] duplasDeNosExperimentadas = [] labelsParaNosExperimentados = {} listaDeScores = {} def __init__(self): self.manipularDados(self.jogadasFormatadas, self.scoresFormatados...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/AtuadoresCtrl.py
<gh_stars>0 class AtuadoresCtrl: def __init__(self, atuadores, preJogoCtrl): self.IAtuadores = atuadores self.IPreJogoCtrl = preJogoCtrl def jogadaJogadoresCtrl(self): tipoJogadores = self.IPreJogoCtrl.getTipoJogadorPelaVezCtrl() return self.IAtuadores.jogadaJogadores(tipoJogado...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/DadosFixos.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem class DadosFixos: def __init__(self): pass # retorna o Simbolo do jogador um def getJogadorUmPeca(self): return 'X' # retorna o Simbolo do jogador dois def getJogadorDoisPeca(self): return 'O' def getTodosTiposJ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/Dinamico.py
<gh_stars>0 import networkx as nx import matplotlib.pyplot as plt from grafos.Arvore import hierarchy_pos #from grafos.ScrollWindow import ScrollableWindow from controller.Preenchimento import Preenchimento fig = plt.figure(1, figsize=(15, 6.5)) G = nx.Graph() raiz = 0 preenchimento = Preenchimento() duplas = preen...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafico_de_desempenho/controller/DesempenhoCtrl.py
<gh_stars>0 from model.ArquivosExternos import ArquivosExternos from model.TrataDadosBase import TrataDadosBase from view.TelaDesempenhos import TelaDesempenhos class DesempenhoCtrl: def mandaDadosPraTela(self): telaGrafico = TelaDesempenhos() base = ArquivosExternos() trataDadosBase = Tra...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/Arvore.py
<gh_stars>0 def hierarchy_pos(G, root, levels=None, width=1., height=1.): """If there is a cycle that is reachable from root, then this will see infinite recursion. G: the graph root: the root node levels: a dictionary key: level number (starting from 0) value: num...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/controller/FimDeJogosCtrl.py
class FimDeJogosCtrl: def __init__(self, preJogoCtrl, telaTabuleiro, fimDeJogo, baseDeDadosCtrl, getTodosTiposJogadores, performances, inteligencia, entradas): self.IPreJogoCtrl = preJogoCtrl self.ITelaTabuleiro = telaTabuleiro self.IFimDeJogo = fimDeJogo ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/EstaticoEspecifico.py
<gh_stars>0 import networkx as nx import matplotlib.pyplot as plt from grafos.Arvore import hierarchy_pos from grafos.ScrollWindow import ScrollableWindow from controller.Preenchimento import Preenchimento fig = plt.figure(1, figsize=(100, 6.5)) #(15, 6.5) G = nx.Graph() raiz = 0 preenchimento = Preenchimento() d...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/app/Dependencia.py
class Dependencia: def __init__(self): self.IAtuadoreCtrl = None self.IBaseDeDadoCtrl = None self.IFimDeJogoCtrl = None self.IPecaCtrl = None self.IPreJogoCtrl = None self.IPreJogo = None self.ITabuleiroCtrl = None self.IAleatorioJogadas = None ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/model/ArquivosExternos.py
<gh_stars>0 import os import pickle class ArquivosExternos: def __init__(self): self.diretorio = 'C:/jogo_da_velha_json/' # Pega dados que foram salvos em um arquivo... def pega(self, nomeArquivo): self.criaDiretorio() nomeArquivo = f'{nomeArquivo}.json' caminho = self.dir...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/grafos/EstaticoGeral.py
<filename>Grafo_de_IA/grafos/EstaticoGeral.py import networkx as nx import matplotlib.pyplot as plt from grafos.Arvore import hierarchy_pos from grafos.ScrollWindow import ScrollableWindow from controller.Preenchimento import Preenchimento preenchimento = Preenchimento() fig = plt.figure(1, figsize=(300, 6.5), dpi=10...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/view/TelaTabuleiros.py
import PySimpleGUI as sg class TelaTabuleiros: def __init__(self): sg.change_look_and_feel('DarkBlue13') self.caixaTamanho = 165 self.Janela = sg.Window('Jogo da velha', self.layout(), finalize=True, keep_on_top=True) self.Evento = None self.Valores = None self.Mous...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/app/main.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem class Main: from grafos import Dinamico #from grafos import DinamicoEmTempoReal # (Rodar este junto ao jogo da velha (telas uma ao lado da outra)) #from grafos import EstaticoEspecifico if __name__ == '__main__': Main()
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/agenteInteligente/Inteligente.py
class Inteligente: def __init__(self, inteligencia, entradas): self.IInteligencia = inteligencia self.IEntradas = entradas # define qual é a melhor jogada a se fazer pegando o menor score, feito isso # verifica quantos valores repetidos existem e pega qualquer um aleatoriamente # é esse...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/Performances.py
<reponame>Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem class Performances: def __init__(self, preJogos, nomeArquivoPerformance, arquivosExternos, getTodasPecas): self.IPreJogos = preJogos self.INomeArquivoPerformance = nomeArquivoPerformance self.IArquivosExternos = arquivosExternos ...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/Ambientes.py
<gh_stars>0 class Ambientes: def __init__(self): self.Campo = ['_'] * 9 # retorna o campo def getCampo(self): return self.Campo def setCampo(self, jogada, peca): self.Campo[jogada] = peca return self.Campo
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafo_de_IA/model/BaseDeTeste.py
#from model.TrataBase import TrataBase from model.ArquivosExternos import ArquivosExternos #from model.TrataBase import TrataBase from controller.Preenchimento import Preenchimento ''' tratamento = ClasseTratamentoDeDados() jogosExperimentados = tratamento.getJogos() scores = tratamento.scoresExperimentados print("")...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/agenteAleatorio/AleatorioJogadas.py
class AleatorioJogadas: def __init__(self, entrada): self.IEntrada = entrada # Jogador que joga de forma aleatoria def aleatorioJoga(self): from random import randint jogadaAleatoria = randint(0, 8) while not self.IEntrada.valida(jogadaAleatoria): jogadaAleatoria...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/app/main.py
<gh_stars>0 from app.Dependencia import Dependencia class Main(Dependencia): def __init__(self): super().__init__() self.fluxoPrincipal() def fluxoPrincipal(self): partidas = self.preJogos().quantidadeDePartidasEscolhida() while partidas != 0: tabuleiroCtrl = self....
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Grafico_de_desempenho/app/main.py
from controller.DesempenhoCtrl import DesempenhoCtrl class Main: def fluxoPrincipal(self): DesempenhoCtrl().mandaDadosPraTela() if __name__ == '__main__': Main().fluxoPrincipal()
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/Entradas.py
class Entradas: def __init__(self, ambiente, simboloCampoVazio): self.IAmbiente = ambiente self.ISimboloCampoVazio = simboloCampoVazio self.EntradasEmOrdem = [] # verifica se a jogada realizada é valida def valida(self, jogada): simbolo = self.ISimboloCampoVazio camp...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/FimDeJogos.py
<gh_stars>0 class FimDeJogos: def __init__(self, ambiente, simboloCampoVazio): self.IAmbiente = ambiente self.ISimboloCampoVazio = simboloCampoVazio # verifica se o campo ainda tem posições vazias def velha(self): simbolo = self.ISimboloCampoVazio if simbolo not in self.IAmb...
Lucas-Dinelli/Projeto_Como_As_Maquinas_Aprendem
Jogo_da_velha/model/PreJogos.py
class PreJogos: def __init__(self, getValoresTela): self.TipoJogadorUm = None self.TipoJogadorDois = None self.IValoresTela = getValoresTela def getTipoJogadorUm(self): if self.IValoresTela: return self.IValoresTela['player1'][0] def getTipoJogadorDois(self): ...
meyersbs/phonetta-cli
dict/util.py
################################################################################# # @PROJECT: PhonTA - Phonetic Transcription Assistant # # @VERSION: # # @AUTHOR: <NAME> # # @EMAIL: <EMAIL> # # @LICENSE: MIT # ###############################################################################...
facundopadilla/QtDesigner-PySide2-PyQT5
Juego del TaTeTi/script.py
<filename>Juego del TaTeTi/script.py # Diseñado por <NAME> - https://www.github.com/facundopadilla # Éste contenido es de uso libre y contiene licencia MIT, por lo tanto, no me responsabilizo de daños y prejuicios en el caso de su uso y/o modificación. # @author: facundopadilla # @linkedin: https://www.linkedin.com/...
facundopadilla/QtDesigner-PySide2-PyQT5
RegisterUI/ui/ui_register.py
# -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'register.ui' ## ## Created by: Qt User Interface Compiler version 5.14.2 ## ## WARNING! All changes made in this file will be lost when recompiling UI file! ## ## De...
facundopadilla/QtDesigner-PySide2-PyQT5
RegisterUI/source2.py
<filename>RegisterUI/source2.py<gh_stars>10-100 # Resource object code (Python 3) # Created by: object code # Created by: The Resource Compiler for Qt version 5.14.2 # WARNING! All changes made in this file will be lost! from PySide2 import QtCore qt_resource_data = b"\ \x00\x00\x1b\xeb\ \x89\ PNG...
facundopadilla/QtDesigner-PySide2-PyQT5
Login+RegisterV2/ui_register.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'register.ui' # # Created by: PyQt5 UI code generator 5.14.2 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui...
facundopadilla/QtDesigner-PySide2-PyQT5
LoginUI/login.py
import sys from PySide2.QtWidgets import * from ui.ui_login import Ui_Login class Login(QDialog): def __init__(self): super(Login, self).__init__() # inicializo la app self.login = Ui_Login() # obtengo la clase self.login.setupUi(self) # cargo las propiedades if __name__ == "__...
facundopadilla/QtDesigner-PySide2-PyQT5
Login+RegisterV2/ui_login.py
<filename>Login+RegisterV2/ui_login.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'login.ui' # # Created by: PyQt5 UI code generator 5.14.2 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # WARNING! All changes made in this file will be lost! ...
facundopadilla/QtDesigner-PySide2-PyQT5
Juego del TaTeTi/ui_tateti.py
# -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'tateti.ui' # # Created by: PyQt5 UI code generator 5.14.2 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # WARNING! All changes made in this file will be lost! # Diseñado por <NAME> - https://www...
facundopadilla/QtDesigner-PySide2-PyQT5
Calculadora/script.py
<gh_stars>10-100 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ from PyQt5 import QtWidgets from ui_calculadora import Ui_MainWindow import sys class Calculadora(QtWidgets.QMainWindow): # creo una clase del tipo Calculadora donde recibe de QtWidgets la ventana QMainWindow (d...
facundopadilla/QtDesigner-PySide2-PyQT5
Login+RegisterV2/script.py
<filename>Login+RegisterV2/script.py # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ from PyQt5.QtWidgets import QApplication, QWidget, QPushButton, QMainWindow from PyQt5 import uic, QtWidgets from images import rcc_login from ui_register import Ui_Register import sys, ui_log...
facundopadilla/QtDesigner-PySide2-PyQT5
Calculadora/ui_calculadora.py
<gh_stars>10-100 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'calculadora.ui' # # Created by: PyQt5 UI code generator 5.14.2 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # # WARNING! All changes made in this file will be lost! # PARTE VI...
facundopadilla/QtDesigner-PySide2-PyQT5
LoginUI/ui/ui_login.py
<reponame>facundopadilla/QtDesigner-PySide2-PyQT5 # -*- coding: utf-8 -*- ################################################################################ ## Form generated from reading UI file 'login rojo.ui' ## ## Created by: Qt User Interface Compiler version 5.14.2 ## ## WARNING! All changes made in this fi...
facundopadilla/QtDesigner-PySide2-PyQT5
Editor de texto/script.py
<gh_stars>10-100 #!/usr/bin/env python # -*- coding: utf-8 -*- # @author: <NAME> - https://www.github.com/facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # License MIT from PyQt5 import QtWidgets from PyQt5.QtWidgets import QFileDialog, QMessageBox from ui_editor import Ui_MainWindow i...
facundopadilla/QtDesigner-PySide2-PyQT5
Login+RegisterV2/images/rcc_login.py
<filename>Login+RegisterV2/images/rcc_login.py # -*- coding: utf-8 -*- # Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.14.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x01\xfa\xd6\ \x89\ \x50\x4e\x47\x0d\x0a...
facundopadilla/QtDesigner-PySide2-PyQT5
RegisterUI/ui_register5.py
<reponame>facundopadilla/QtDesigner-PySide2-PyQT5<gh_stars>10-100 # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'register.ui' # # Created by: PyQt5 UI code generator 5.14.2 # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore, QtGui, QtWidgets ...
facundopadilla/QtDesigner-PySide2-PyQT5
Editor de texto/ui_editor.py
<filename>Editor de texto/ui_editor.py # -*- coding: utf-8 -*- # Form implementation generated from reading ui file 'editor.ui' # # Created by: PyQt5 UI code generator 5.14.2 # @author: facundopadilla # @linkedin: https://www.linkedin.com/in/facundopadilla/ # # WARNING! All changes made in this file will be lo...
facundopadilla/QtDesigner-PySide2-PyQT5
RegisterUI/register_pyside.py
import sys from PySide2.QtWidgets import * from ui_register import Ui_Register class Register(QDialog): def __init__(self): super(Register, self).__init__() # inicializo la app self.register = Ui_Register() # obtengo la clase self.register.setupUi(self) # cargo las propiedades ...
joshbrunty/SMStoCSV
SMSCSV.py
<filename>SMSCSV.py import sqlite3 import csv def extract_db(): sql_query = """ SELECT message.ROWID as 'ID', chat.ROWID as 'Chat ID', chat.chat_identifier as 'Chat Handle', message.date as 'Date', ...
snowyxx/WechatScripts
WeChatPython/Config.py
<reponame>snowyxx/WechatScripts<gh_stars>1-10 # coding:utf-8 ACCOUNTTYPE = "subscribe" # value could be one of ["service" "subscribe" "enterprise"] # enterprise account CORPID = "Your enterprise account's corpid" SECRET = "Your enterprise account's corpid secret" TOUSER = "@all" # @all - all users ; "UserID1|Use...
snowyxx/WechatScripts
WeChatPython/wxmsg.py
<filename>WeChatPython/wxmsg.py<gh_stars>1-10 #!/usr/bin/evn python #coding:utf-8 import sys reload(sys) sys.setdefaultencoding("utf-8") from Config import wxLogger from Config import CORPID from Config import SECRET from Config import TOUSER from Config import PARTYID from Config import TAGID from Config import AGENTI...
UtkarshMishra04/pisac
pisac/ceb_task.py
<filename>pisac/ceb_task.py<gh_stars>10-100 # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-...
UtkarshMishra04/pisac
pisac/train_pisac_test.py
# coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
UtkarshMishra04/pisac
distractors/render_n_body_problem_envs.py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. from n_body_problem import Planets, Electrons, IdealGas # env1 = Planets(num_bodies=10, num_dimensions=2, dt=0.01, contain...
UtkarshMishra04/pisac
pisac/run.py
<filename>pisac/run.py # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless requir...
UtkarshMishra04/pisac
pisac/metric_utils.py
<reponame>UtkarshMishra04/pisac # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unle...
UtkarshMishra04/pisac
pisac/sac_agent.py
<filename>pisac/sac_agent.py # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless ...
UtkarshMishra04/pisac
pisac/encoders.py
# coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
UtkarshMishra04/pisac
distractors/n_body_problem.py
<gh_stars>0 # Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import numpy as np import matplotlib.pyplot as plt import matplotlib.animation as animation from scipy.integrat...
UtkarshMishra04/pisac
dmc2gym/natural_imgsource.py
# Copyright (c) Facebook, Inc. and its affiliates. # All rights reserved. # # This source code is licensed under the license found in the # LICENSE file in the root directory of this source tree. import numpy as np import cv2 import skvideo.io import random import tqdm class BackgroundMatting(object): """ Pr...
UtkarshMishra04/pisac
pisac/dm_control_env.py
<filename>pisac/dm_control_env.py # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Un...
UtkarshMishra04/pisac
pisac/utils.py
# coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
UtkarshMishra04/pisac
pisac/train_pisac.py
<filename>pisac/train_pisac.py # coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unles...
UtkarshMishra04/pisac
pisac/schedule_utils.py
# coding=utf-8 # Copyright 2020 The PI-SAC Authors. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or...
andres-leon/rbp-mqtt-stats
systemdata.py
#References: Thanks to these resoruces! #http://www.isendev.com/app/entry/39 #https://pythonhosted.org/psutil/ import sys, psutil, datetime, paho.mqtt.client as mqtt, json from time import gmtime, strftime import os def getCPUtemperature(): try: res = os.popen('vcgencmd measure_temp').readlin...
teteu46/Prepara
Testes/testepython.py
msg = 'Ol<NAME>! print('Olá, Mundo!') print(msg)
corpusops/flask-deploy-common
.ansible/playbooks/roles/flask/templates/local.py
# Production {{ cops_flask_localpy_extra}}
j-stoner/SA-ctf_scoreboard
bin/sa_ctf_scoreboard/modalert_award_ebadge_helper.py
<reponame>j-stoner/SA-ctf_scoreboard # encoding = utf-8 import logging from splunk.appserver.mrsparkle.lib.util import make_splunkhome_path import splunk.rest import json import collections import urllib def process_event(helper, *args, **kwargs): logger = setup_logger(logging.INFO, 'scoreboard.log') lo...
kevinghost/P46Demo
hello.py
<gh_stars>0 # print hello print('Hello World') num1 = 1 num2 = 2 num3 = 3000 num4 = 4 num5 = 5
linzhonghong/dnspod_desktop
dnspod_desktop.py
# -*- coding: utf-8 -*- __author__ = 'linzhonghong' __version__ = '2013.11.001' import sys reload(sys) sys.setdefaultencoding('UTF-8') import os from signal import SIGTERM import wx import wx.lib.buttons as buttons from gui import MyStatusBar,MyListCtrl,WarnDialog,LogoutDialog,LoginDialog,WarnDialog2 ...
linzhonghong/dnspod_desktop
gui.py
# -*- coding: utf-8 -*- __author__ = 'linzhonghong' import sys reload(sys) sys.setdefaultencoding('UTF-8') import os import time from ping import quiet_ping import wx import wx.lib.agw.ultimatelistctrl as ULC from wx.lib.mixins.listctrl import ListCtrlAutoWidthMixin#, TextEditMixin from utils import ...
linzhonghong/dnspod_desktop
utils.py
# -*- coding: utf-8 -*- __author__ = 'linzhonghong' # from threading import Thread import ConfigParser import os import re import sys import shutil import hashlib # 线程装饰器 def call_thread(func): def _wrapper(*args, **kwargs): t = Thread(target=func, args=args, kwargs=kwargs) t.daemon ...
linzhonghong/dnspod_desktop
dnspod_api.py
<reponame>linzhonghong/dnspod_desktop<gh_stars>0 #-*- coding:utf-8 -*- __author__ = 'linzhonghong' import sys reload(sys) sys.setdefaultencoding('utf8') import json import urllib2,cookielib,urllib import re import traceback import time class dnspod_api(object): def __init__(self,user="",passwd="",d...
anandakelvin/instagrump
instagrump/Profile.py
from bs4 import BeautifulSoup as soup import requests class Profile: def __init__(self, username): api_endp = '__a=1' self.username = username self.url = 'https://www.instagram.com/%s?%s' % (self.username, api_endp) self.data = requests.get(self.url).json()['graphql']['user'] self.name = self.data['full_na...