Skip to content

Instantly share code, notes, and snippets.

View GamerSenior's full-sized avatar
🏠
Working from home

Giovani Garcia Abel GamerSenior

🏠
Working from home
View GitHub Profile
@GamerSenior
GamerSenior / single_linked_list.zig
Created May 20, 2024 03:49
Single Linked List in Zig
const std = @import("std");
const assert = std.debug.assert;
const testing = std.testing;
const Allocator = std.mem.Allocator;
pub fn Node(comptime T: type) type {
return struct {
value: T,
next: ?*Node(T),
};
/home/giovani/Projetos/Zig/testing.zig:1:11: error: C import failed
const c = @cImport({
^
/home/giovani/Projetos/Zig/testing.zig:1:11: note: libc headers not available; co
mpilation does not link against libc
const c = @cImport({
^
/home/giovani/Projetos/Zig/zig-cache/o/4i6yN2Cr69iYKQ6IcKO_tg4j_iXEUekDi8zeyAsDUv
Oefmc6JHXngh2AGFANG2WF/cimport.h:1:10: note: 'GLFW/glfw3.h' file not found
#include <GLFW/glfw3.h>
lld: error: unable to find library -lglfw
lld: error: unable to find library -lepoxy
The following command exited with error code 1:
/opt/zig-linux-x86_64-0.4.0+326b7b79/zig build-exe /home/giovani/Projetos/Zig/tetris/src/main.zig --c-source -std=c99 /home/giovani/Projetos/Zig/tetris/stb_image-2.22/stb_image_impl.c --library c --library glfw --library epoxy --cache-dir /home/giovani/Projetos/Zig/tetris/zig-cache --name tetris -isystem /home/giovani/Projetos/Zig/tetris/stb_image-2.22 -isystem /usr/local/include -isystem /usr/include/x86_64-linux-gnu -isystem /usr/include --library-path /usr/local/lib --library-path /usr/lib/x86_64-linux-gnu --library-path /usr/lib --library-path /lib/x86_64-linux-gnu --cache on
Build failed. The following command failed:
/home/giovani/Projetos/Zig/tetris/zig-cache/o/XW6J3G-xQIDPGUGjxEezN_E-XpUk6oKUvaNXVsdhpBmmsbeQ9uxA1haslzwqrPWr/build /opt/zig-linux-x86_64-0.4.0+326b7b79/zig /home/giovani/Projetos/Zig/tetris /home/giovani/Projetos/Zig/tetris/zig-cache play
INSERT INTO SINTB538 (NTAB_CODITAB_538, NTAB_DESCTAB_538, USUARIOATUALIZACAO, DATAATUALIZACAO, NTAB_CODMARC_538, NTAB_EXCFERR_538) VALUES (47, 'Dafra', null, TO_DATE('2015-09-30 09:57:02', 'YYYY-MM-DD HH24:MI:SS'), ' ', 0);
INSERT INTO SINTB538 (NTAB_CODITAB_538, NTAB_DESCTAB_538, USUARIOATUALIZACAO, DATAATUALIZACAO, NTAB_CODMARC_538, NTAB_EXCFERR_538) VALUES (1, 'AG-Chem', null, TO_DATE('2015-03-13 15:47:38', 'YYYY-MM-DD HH24:MI:SS'), null, 0);
INSERT INTO SINTB538 (NTAB_CODITAB_538, NTAB_DESCTAB_538, USUARIOATUALIZACAO, DATAATUALIZACAO, NTAB_CODMARC_538, NTAB_EXCFERR_538) VALUES (2, 'Alfa', null, TO_DATE('2015-03-13 15:47:38', 'YYYY-MM-DD HH24:MI:SS'), null, 0);
INSERT INTO SINTB538 (NTAB_CODITAB_538, NTAB_DESCTAB_538, USUARIOATUALIZACAO, DATAATUALIZACAO, NTAB_CODMARC_538, NTAB_EXCFERR_538) VALUES (3, 'Asia Motors', null, TO_DATE('2015-03-13 15:47:38', 'YYYY-MM-DD HH24:MI:SS'), null, 0);
INSERT INTO SINTB538 (NTAB_CODITAB_538, NTAB_DESCTAB_538, USUARIOATUALIZACAO, DATAATUALIZACAO, NTAB_CODMARC_538, NTAB_EXC
@GamerSenior
GamerSenior / destaque.css
Created July 10, 2018 17:23
Cores Destaque Sinc
tr.VERMELHO_CLARO, tr.VERMELHO_CLARO a,
tr.VERMELHO_ESCURO, tr.VERMELHO_ESCURO a,
tr.VERDE_CLARO, tr.VERDE_CLARO a,
tr.VERDE_ESCURO, tr.VERDE_ESCURO a,
tr.AZUL_CLARO, tr.AZUL_CLARO a,
tr.AZUL_ESCURO, tr.AZUL_ESCURO a,
tr.MAGENTA_CLARO, tr.MAGENTA_CLARO a,
tr.MAGENTA_ESCURO, tr.MAGENTA_ESCURO a,
tr.CIANO_CLARO, tr.CIANO_CLARO a,
tr.CIANO_ESCURO, tr.CIANO_ESCURO a,
@GamerSenior
GamerSenior / loadData.js
Last active July 3, 2018 18:17
loadData
$scope.loadData = function (identificacao) {
var orcamentos = $.Deferred();
var ordens = $.Deferred();
var recalls = $.Deferred();
var racs = $.Deferred();
var ocorrencias = $.Deferred();
$scope.lock = true;
$.ajax({
@GamerSenior
GamerSenior / gist:98a46f92699628264da64a2cdbe956af
Created June 27, 2018 12:20
Erro - HoraQuatroDigitosLongUserType.nullSafeSet
2018-06-26 06:10:00,903 ERROR [br.com.support.sinc.scf.service.impl.EnvioDownloadAgendamentosServiceImpl] (SchedulerFactory_Worker-8) Erro ao salvar agendamento.: java.lang.NullPointerException
at br.com.support.sinc.core.util.DateUtils.converteHoraDate4DigitosParaLong(DateUtils.java:500) [sinc-core-1.0-SNAPSHOT.jar:]
at br.com.support.sinc.core.model.usertype.HoraQuatroDigitosLongUserType.nullSafeSet(HoraQuatroDigitosLongUserType.java:33) [sinc-core-1.0-SNAPSHOT.jar:]
at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:164) [hibernate-core-4.1.9.Final.jar:4.1.9.Final]
at org.hibernate.param.NamedParameterSpecification.bind(NamedParameterSpecification.java:66) [hibernate-core-4.1.9.Final.jar:4.1.9.Final]
at org.hibernate.loader.hql.QueryLoader.bindParameterValues(QueryLoader.java:608) [hibernate-core-4.1.9.Final.jar:4.1.9.Final]
at org.hibernate.loader.Loader.prepareQueryStatement(Loader.java:1870) [hibernate-core-4.1.9.Final.jar:4.1.9.Final]
at org.hibernate.loader.Loader.executeQueryStatemen
2018-06-26 18:10:07,478 INFO [br.com.support.sinc.scf.service.impl.SalvarAgendamentoServiceImpl] (SchedulerFactory_Worker-2) Inserindo agendamentos
2018-06-26 18:10:07,479 INFO [br.com.support.sinc.scf.service.impl.SalvarAgendamentoServiceImpl] (SchedulerFactory_Worker-2) Dados do agendamento. Horario: 26/06/2018 15:40 - Consultor: 101751
2018-06-26 18:10:07,489 ERROR [br.com.support.sinc.scf.service.impl.EnvioDownloadAgendamentosServiceImpl] (SchedulerFactory_Worker-2) Erro ao salvar agendamento.: java.lang.NullPointerException
at br.com.support.sinc.core.util.DateUtils.converteHoraDate4DigitosParaLong(DateUtils.java:506) [sinc-core-1.0-SNAPSHOT.jar:]
at br.com.support.sinc.core.model.usertype.HoraQuatroDigitosLongUserType.nullSafeSet(HoraQuatroDigitosLongUserType.java:33) [sinc-core-1.0-SNAPSHOT.jar:]
at org.hibernate.type.CustomType.nullSafeSet(CustomType.java:164) [hibernate-core-4.1.9.Final.jar:4.1.9.Final]
at org.hibernate.param.NamedParameterSpecification.bind(NamedPar
2018-06-26 17:56:56,984 INFO [br.com.support.sinc.scf.marshaller.FordFacilMarshaller] (SchedulerFactory_Worker-3) Creating JAXBContext with context path [com.dealerconnection.agendaford]
2018-06-26 17:56:58,526 ERROR [br.com.support.sinc.scf.service.impl.EnvioInformacoesAgendaFordServiceImpl] (SchedulerFactory_Worker-3) Erro ao enviar informa▒▒es!: org.springframework.oxm.UnmarshallingFailureException: JAXB unmarshalling exception; nested exception is javax.xml.bind.UnmarshalException: elemento inesperado (uri:"http://schemas.xmlsoap.org/soap/envelope/", local:"Fault"). Os elementos esperados s▒o <{urn:ford/interface/Consumer/ServiceSchedule/v1}ReportVehicleAssistance>,<{urn:ford/interface/Consumer/ServiceSchedule/v1}ReportVehicleAssistanceResponse>,<{urn:ford/interface/Consumer/ServiceSchedule/v1}RetrieveSchedule>,<{urn:ford/interface/Consumer/ServiceSchedule/v1}RetrieveScheduleResponse>
at org.springframework.oxm.jaxb.Jaxb2Marshaller.convertJaxbException(Jaxb2Marshaller.java:907) [spring-oxm-3.2.14
@GamerSenior
GamerSenior / json
Created June 6, 2018 11:23
JSON Salvar Checklist
This file has been truncated, but you can view the full file.
{"token":"6e3f3190944843ff9bd7d1603d2f15bc","emitente":100,"numeroOrdem":84737,"placa":"GGF7200","proprietario":"ELEKTRO ELETRICIDADE E SERVICOS S.A","modelo":"CAMINHAO FORD/F4000 4X4","email":"borante@gmail.com","telefone":"1998954551","odometro":"44444","combustivel":"1/4","condutor":"Aaa","imagemAnterior":"iVBORw0KGgoAAAANSUhEUgAABDgAAALuCAYAAABLp6aHAAAgAElEQVR4Xuy9abdkt3Eseprd7JmDKFFXkuUn3es7L9+3/N7//xH+4A9eHpYt2ZIlkRRn9kSyLyIzA0hgY+/adc5pdtepOGR1TXsAAgkUMhCZuPWy/F3oTwgIASEgBISAEBACQkAICAEhIASEgBAQAieMwC0RHCfceiq6EBACQkAICAEhIASEgBAQAkJACAgBIWAIiOCQIQgBISAEhIAQEAJCQAgIASEgBISAEBACJ4+ACI6Tb0JVQAgIASEgBISAEBACQkAICAEhIASEgBAQwSEbEAJCQAgIASEgBISAEBACQkAICAEhIAROHgERHCffhKqAEBACQkAICAEhIASEgBAQAkJACAgBISCCQzYgBISAEBACQkAICAEhIASEgBAQAkJACJw8AiI4Tr4JVQEhIASEgBAQAkJACAgBISAEhIAQEAJCQASHbEAICAEhIASEgBAQAkJACAgBISAEhIAQOHkERHCcfBOqAkJACAgBISAEhIAQEAJCQAgIASEgBISACA7ZgBAQAkJACAgBISAEhIAQEAJCQAgIASFw8giI4Dj5JlQFhIAQEAJCQAgIASEgBISAEBACQkAICAERHLIBISAEhIAQEAJCQAgIASEgBISAEBACQuDkERDBcfJNqAoIASEgBISAEBACQkAICAEhIASEg