This file contains hidden or 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> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1" /> | |
<meta http-equiv="cache-control" content="no-cache" /> | |
<meta http-equiv="Pragma" content="no-cache"> | |
<title>FelipeBastosWeb</title> | |
<script type="module" src="./static/js/main.js"></script> | |
</head> |
This file contains hidden or 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
unit Widgets.ListViewCard; | |
interface | |
uses System.Classes, System.Generics.Collections, System.Variants, FMX.Controls, | |
FMX.Types, FMX.ListView, FMX.ListView.Types, | |
FMX.Graphics, FMX.ListView.Appearances, FMX.ListView.Adapters.Base, FMX.Objects; | |
type | |
TListViewCard = class(TListViewItem) |
This file contains hidden or 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
// not open HomeForm | |
procedure TMainForm.ListBox1ItemClick(const Sender: TCustomListBox; | |
const Item: TListBoxItem); | |
if BiometricAuth1.IsSupported then begin | |
BiometricAuth1.Authenticate; | |
end; | |
end; | |
procedure TMainForm.BiometricAuth1AuthenticateSuccess(Sender: TObject); | |
begin |
This file contains hidden or 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
unit unit1; | |
{$mode delphi} | |
interface | |
uses | |
Classes, SysUtils, AndroidWidget, Laz_And_Controls; | |
type |
This file contains hidden or 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
unit unit1; | |
{$mode delphi} | |
interface | |
uses | |
Classes, SysUtils, AndroidWidget, Laz_And_Controls, And_jni, | |
Laz_And_Controls_Events; |
This file contains hidden or 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 time | |
import json | |
import requests | |
colors = ('w', 'r', 'b') | |
last_results = '' | |
pattern_list = [ | |
'rrr', |
This file contains hidden or 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 time | |
import requests | |
total_pages = 1724 | |
csv_file = open('./double_history.csv', 'a+') | |
# latest to current pages | |
for page in reversed(range(1, total_pages)): | |
result_json = (requests.get("https://blaze.com/api/roulette_games/history?page=" + str(page))).json() | |
# more latest to minus latest results of page |
This file contains hidden or 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 requests | |
from bs4 import BeautifulSoup | |
def coleta_a_cada_40_minutos(): | |
ultimos_resultados = [] | |
documento = requests.get("https://kitblaze.com/double/?visitante=home") | |
html_doc = BeautifulSoup(documento.text, 'html.parser') #html inteiro do site | |
ultimos_giros = html_doc.find_all('div',{'class':'pdi'}) #variavel lista c/ ult 100 giros | |
for giro in ultimos_giros: | |
cor = giro.get('data-cortxt')[0] |
This file contains hidden or 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 time | |
import json | |
import requests | |
colors = ('w', 'r', 'b') | |
before_result = '' | |
while True: | |
resultado = (requests.get("https://api-v2.blaze.com/api/roulette_games/current")).json() | |
if resultado['status'] == 'rolling': |
This file contains hidden or 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
// Durante inicialização do App os comandos para plataforma Android só funcionam no JNIPrompt | |
procedure TMainPage.MainPageJNIPrompt(Sender: TObject); | |
var querySuccess : Boolean; | |
begin | |
// iniciando o Android, torna visível todas as vezes que abrir ou retornar para esta tela | |
self.Visible := True; | |
self.Text := 'Casa da Aprendizagem'; | |
// atualiza o banco de dados se já existir ou cria o banco de dados se não existir | |
querySuccess := jSqliteDataAccess1.CheckDataBaseExists('casadaaprendizagem.db'); |