/
/main.py
/test
test_app.py
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 kivy.uix.gridlayout import GridLayout | |
from kivy.uix.label import Label | |
from kivy.uix.checkbox import CheckBox | |
from functools import partial | |
class ChoiceGrid(GridLayout): | |
def __init__(self, group='group', **kwags): | |
super().__init__(cols=2, **kwags) | |
self.active = None |
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
def acumular(): | |
""" | |
Toda vez que yield recebe um valor, adiciona ao contador. | |
contador = 0 | |
acumular.send(10) # contador = 10 | |
acumular.send(10) # contador = 20 | |
Quando receber None, retorna o valor final da contagem | |
acumular.send(None) # 20 |
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 faker import Faker | |
from kivy.lang import Builder | |
from kivy.properties import StringProperty | |
from kivy.uix.screenmanager import ScreenManager, Screen | |
from kivymd.app import MDApp | |
from kivymd.uix.list import ThreeLineAvatarIconListItem, IRightBodyTouch | |
from kivymd.uix.selectioncontrol import MDCheckbox | |
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 flask import Flask, jsonify, abort, request, make_response, url_for | |
from flask_restx import Api, Namespace, Resource, fields | |
app = Flask(__name__, static_url_path='') | |
api = Api( | |
app, | |
'todos', | |
description='Opera莽玫es ligadas as suas tarefas', | |
) |
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
""" | |
$ pip install numba | |
$ python jit.py | |
resultados: | |
$ python test_cc.py | |
Tempos com JIT | |
cc_0_jit - Min: 0.15884569298941642, Max: 0.1812134649953805, Mean: 0.16276181136781814 | |
cc_1_jit - Min: 0.15603229100815952, Max: 0.18515240401029587, Mean: 0.16477074182126672 | |
cc_2_jit - Min: 0.1618276800145395, Max: 0.25311970300390385, Mean: 0.17394073442847002 |
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
<!DOCTYPE html> | |
<html lang="en" dir="ltr"> | |
<head> | |
<meta charset="utf-8"> | |
<title>LT</title> | |
<script type="text/javascript" | |
src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js"> | |
</script> | |
<script type="text/javascript" | |
src="https://cdn.jsdelivr.net/npm/[email protected]/brython_stdlib.min.js"> |
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
/* @theme selenium_course */ | |
:root { | |
width: 1280px; | |
height: 960px; | |
font-size: 40px; | |
padding: 1rem; | |
font-family: monospace; | |
margin: 0.5em 0 0 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
<html lang="pt-BR"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Aula 09 a</title> | |
<script type="text/javascript" | |
src="https://cdn.jsdelivr.net/npm/[email protected]/brython.min.js"> | |
</script> | |
<script type="text/javascript" | |
src="https://cdn.jsdelivr.net/npm/[email protected]/brython_stdlib.min.js"> | |
</script> |