Skip to content

Instantly share code, notes, and snippets.

View felipealmeida's full-sized avatar

Felipe Magno de Almeida felipealmeida

View GitHub Profile
--- a/fancontrol 2023-07-20 13:36:14.445379955 -0300
+++ b/fancontrol 2023-07-20 13:35:52.058095224 -0300
@@ -43,6 +43,18 @@
#DEBUG=1
MAX=255
+declare -A DEVNAMEPATH
+
+function ReplacePath
+{
[felipe@felipe-desktop ~/dev/eleicoes/novo-site/transmitidos-totalizacao (master)]$ ./venv/bin/python ../../python/bu_dump.py -a ../../spec/bu.asn1 -b BA/o00407-3413401710232.bu
2022-11-10 00:51:53,134 - INFO - Converte BA/o00407-3413401710232.bu com as especificações ['../../spec/bu.asn1']
EntidadeEnvelopeGenerico:
. cabecalho:
. . dataGeracao = 20221030T170632
. . idEleitoral = ('idPleito', 407)
. fase = oficial
. identificacao = ('identificacaoSecaoEleitoral', {'municipioZona': {'municipio': 34134, 'zona': 171}, 'local': 1120, 'secao': 232})
. tipoEnvelope = envelopeBoletimUrna
EntidadeBoletimUrna:
diff --git a/src/tools/compiler/include/pandagen/ast-consumer/proto-nodes.h b/src/tools/compiler/include/pandagen/ast-consumer/proto-nodes.h
index 86875af..e9926be 100644
--- a/src/tools/compiler/include/pandagen/ast-consumer/proto-nodes.h
+++ b/src/tools/compiler/include/pandagen/ast-consumer/proto-nodes.h
@@ -53,8 +53,10 @@ public:
auto vardecl = clang::dyn_cast<clang::VarDecl>(decl);
auto type = vardecl->getType().getAsString();
- if (type == "const struct panda_proto_node" && vardecl->hasInit())
+ if ((type == "const struct panda_proto_node"
/** trigger data structure */
typedef std::variant<int, float, bool, std::string> state_type;
struct relational_state_timed_trigger {
std::string id, metricName;
state_type value;
class enum relational_operator {
gt, lt, ge, le, eq
} operator_;
class relationalStateTimedDto {
triggerType: string;
id: string;
metricName: string;
value: number | string | boolean;
operator: string;
for: number;
}
class stateTimedDto {
diff --git a/main.cpp b/main.cpp
index 5c98814..0ff840b 100644
--- a/main.cpp
+++ b/main.cpp
@@ -51,7 +51,7 @@ struct MacroOnly : boost::wave::context_policies::default_preprocessing_hooks {
IteratorT const& seqend) {
auto macro = macro_name.get_value();
- if (macro == "PANDA_DECL_PARSE_NODE") {
+ if (macro == "PANDA_DECL_PARSE_NODE" || macro == "PANDA_DECL_TLVS_PARSE_NODE") {
[ 1.305230] panfrost e82c0000.mali: get clock failed -2
[ 1.305252] panfrost e82c0000.mali: clk init failed -2
[ 1.305260] panfrost e82c0000.mali: Fatal error during GPU init
ready : /src/data/elementary/images/icon_23.png
ERR<19804>:elementary ../src/lib/elementary/efl_ui_image_zoomable.c:2118 _internal_file_set() Things are going bad for 'non_existing.png' (0x400000030f2c) : 2
ERR<19845>:eina_safety ../src/lib/elementary/efl_ui_win.c:1790 elm_win_rotation_get() safety check failed: obj == NULL
ERR<19991>:elementary ../src/lib/elementary/efl_ui_format.c:84 _format_string_check() Format string '50 percent (50%)' has unknown format element ')' in format. It must have one format element of type 's', 'f', 'F', 'd', 'u', 'i', 'o', 'x' or 'X'
ERR<20437>:elementary ../src/lib/elementary/elm_code_widget.c:94 _elm_code_widget_efl_object_finalize() Elm_Code_Widget cannot finalize without calling elm_code_widget_code_set.
VkSubpassDependency storage_subpass_dependency = {};
storage_subpass_dependency.srcSubpass = VK_SUBPASS_EXTERNAL;
storage_subpass_dependency.srcAccessMask = 0;
storage_subpass_dependency.srcStageMask = VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
storage_subpass_dependency.dstSubpass = 0;
storage_subpass_dependency.dstAccessMask = VK_ACCESS_SHADER_READ_BIT | VK_ACCESS_SHADER_WRITE_BIT;
storage_subpass_dependency.dstStageMask = VK_PIPELINE_STAGE_VERTEX_SHADER_BIT | VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT;
storage_subpass_dependency.dependencyFlags = VK_DEPENDENCY_DEVICE_GROUP_BIT;
#version 450
#extension GL_ARB_separate_shader_objects : enable
const int tex_max_size = 4096;
const int screen_width = 1280;
const int screen_height = 1000;
// input from vertex shader
layout(location = 0) in vec2 fragTexCoord;
layout(location = 1) in flat uint zindex;