Skip to content

Instantly share code, notes, and snippets.

@fhtino
fhtino / protobuf-net_automap.cs
Last active April 7, 2024 07:43
ProtoBuf-net automap
using (var protoFile = File.Create("data.bin"))
{
ProtoBufUtils.GetModel<Customer>().Serialize(protoFile, allCustomers);
}
using (var protoFile = File.OpenRead("data.bin"))
{
_customers = ProtoBufUtils.GetModel<Customer>().Deserialize<List<Customer>>(protoFile);
}
@fhtino
fhtino / wakelocktests.html
Last active October 4, 2021 16:43
wakelocktests
<html>
<body>
<div id="infoDiv">...<br /></div>
<script type="text/javascript">
async function DoTest() {
var infoDiv = document.getElementById("infoDiv");
let wakeLock = null;
@fhtino
fhtino / test.md
Created April 2, 2020 07:54
My test gist

lorem ipsum