python3 altera_xml.py arquivo.xml
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 dataclasses import dataclass | |
from threading import Thread, Lock | |
from tkinter import * | |
from tkinter import messagebox | |
from time import sleep | |
from typing import Any | |
STATE = "state" | |
ENABLED = "normal" | |
DISABLED = "disabled" |
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 threading import Thread | |
from tkinter import * | |
from time import sleep | |
cont=0 | |
def clicou(): | |
global cont | |
while True: | |
cont+=1 | |
conta_label.config(text=f"contando: {cont}") |
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 tkinter import * | |
from time import sleep | |
cont=0 | |
def clicou(): | |
global cont | |
while True: | |
cont+=1 | |
conta_label.config(text=f"contando: {cont}") | |
print(cont) |
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
panic: runtime error: invalid memory address or nil pointer dereference [recovered] | |
panic: runtime error: invalid memory address or nil pointer dereference | |
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x615c5e] | |
goroutine 38 [running]: | |
go/types.(*Checker).handleBailout(0xc00043c000, 0xc0002cdbd0) | |
/usr/local/go/src/go/types/check.go:367 +0x88 | |
panic({0xa9d000?, 0xfa2cb0?}) | |
/usr/local/go/src/runtime/panic.go:770 +0x132 | |
go/types.(*StdSizes).Sizeof(0x0, {0xc17ab8, 0xfa99a0}) |
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 debian:12-slim as builder | |
RUN apt update && apt install -y --no-install-recommends \ | |
ca-certificates \ | |
git \ | |
wget \ | |
tar \ | |
gcc \ | |
g++ \ | |
make \ |
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
#include <stdio.h> | |
#include <iostream> | |
using namespace std; | |
#define MAXNODES 4 | |
int adj[MAXNODES][MAXNODES]; | |
int adjn[MAXNODES][MAXNODES]; | |
int ft[MAXNODES][MAXNODES]; |
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
#include <stdio.h> | |
#include <stdlib.h> | |
#include <malloc.h> | |
#include <locale.h> | |
#include <iostream> | |
#define TRUE 1 | |
#define FALSE 0 | |
using namespace std; |
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
Expression Language - EL | |
Definição: Linguagem criada pela Sun/Oracle que permite acesso pelas SSP's à componentes java visando reduzir o código java das páginas. | |
EL permite criar expressões tanto aritméticas como lógicas e permite o uso de inteiros, numeração com ponto flutuante, strings, valores booleanos (true/false) e null. | |
Tem como sintaxe o uso do "$" sucedido por uma expressão entre chaves "{}", ex.: ${expr} | |
Os operadores mais comuns em EL são "[]" e "." com eles é possível obter acesso a vários atributos dos JavaBeans. | |
EL permite o uso de parenteses para agrupar expressões. Por exemplo: (1+2)*3=9 mas 1+2*3=7. | |
Para desativar a avaliação de EL podemos usar o atributo IselIgnored nas JSP's: <%@ page IsELIgnored = "true/false" %> | |
Se o valor for "true", as expressões EL serão ignoradas pelo container. |
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 pdb | |
from io import BytesIO | |
from reportlab.lib.pagesizes import letter, A4 | |
from reportlab.platypus import SimpleDocTemplate, Paragraph | |
from reportlab.lib.styles import getSampleStyleSheet, ParagraphStyle | |
from reportlab.lib.enums import TA_CENTER | |
from reportlab.lib.units import inch | |
from reportlab.pdfgen import canvas | |
from reportlab.lib.units import mm | |
from reportlab.pdfbase.pdfmetrics import registerFont |
NewerOlder