Skip to content

Instantly share code, notes, and snippets.

View StevenJDH's full-sized avatar
🎯
Focusing

Steven Jenkins De Haro StevenJDH

🎯
Focusing
View GitHub Profile
@StevenJDH
StevenJDH / battery.cs
Created April 8, 2018 11:06 — forked from ahawker/battery.cs
Battery info from win32 api
using System;
using System.IO;
using Microsoft.Win32.SafeHandles;
using System.Collections.Generic;
using System.ComponentModel;
using System.Runtime.InteropServices;
using System.Text;
namespace Test
{
@StevenJDH
StevenJDH / WireFormatAvroProducer.java
Created October 22, 2025 19:47
Example showing how a Kafka producer can send an Avro message using Confluent Wire Format without integrating with the Schema Registry.
/*
* This file is part of Wire Format Producer Gist <https://github.com/StevenJDH>.
* Copyright (c) 2025 Steven Jenkins De Haro
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree or at
* https://opensource.org/licenses/MIT.
*/
package io.github.stevenjdh.examples.avro;
@StevenJDH
StevenJDH / WireFormatAvroConsumer.java
Created October 22, 2025 19:50
Example showing how a Kafka consumer can read an Avro message using Confluent Wire Format without integrating with the Schema Registry.
/*
* This file is part of Wire Format Consumer Gist <https://github.com/StevenJDH>.
* Copyright (c) 2025 Steven Jenkins De Haro
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree or at
* https://opensource.org/licenses/MIT.
*/
package io.github.stevenjdh.examples.avro;