Skip to content

Instantly share code, notes, and snippets.

View MareMare's full-sized avatar
🌴
On vacation

MareMare MareMare

🌴
On vacation
View GitHub Profile
@MareMare
MareMare / Building a project that target .NET Framework 4.5 in Visual Studio 2022.md
Last active December 23, 2022 07:43
Building a project that target .NET Framework 4.5 in Visual Studio 2022
@MareMare
MareMare / scottplot-issue-2132.md
Last active September 22, 2022 08:28
DateTimeTickUnits: The X-axis of `DateTime` mixture 24-hour and 12-hour notation.

ScottPlot/ScottPlot#2132


DateTimeTickUnits: The X-axis of DateTime mixture 24-hour and 12-hour notation.

Zoom in on a graph displaying DateTime data on the X-axis with the mouse wheel or right-click.

In this case, the 24-hour and 12-hour displays show different times, depending on whether they zoom to the nearest second or include milliseconds. It appears that 24-hour notation is used for zooms that display up to seconds, and 12-hour notation is used for zooms that also display milliseconds.

@MareMare
MareMare / Form1.cs
Last active April 19, 2022 05:48
ScottPlot: How to remove list of text labels
using ScottPlot;
using ScottPlot.Plottable;
namespace ScottPlot_Issue1784;
public partial class Form1 : Form
{
private readonly List<IPlottable> _texts = new ();
public Form1()
@MareMare
MareMare / ScottPlot_DemoForm6.cs
Last active April 4, 2022 18:39
ScottPlot: I want to display the value of the data point closest to the cursor from data containing gaps.
using System;
using System.Collections.Generic;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Windows.Forms;
namespace ScottPlotSandbox.NET48
{
public partial class DemoForm6 : Form
@MareMare
MareMare / GetAsyncWithCancellation2.cs
Last active June 7, 2019 19:12
GetAsyncWithCancellation2
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Globalization;
using System.Linq;
using System.Net;
using System.Net.Sockets;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
@MareMare
MareMare / GetAsyncWithCancellation.cs
Last active November 24, 2016 01:09
#Snmp(v.9.0.3) GetAsync With Cancellation.
using System;
using System.Collections.Generic;
using System.Net;
using System.Runtime.InteropServices;
using System.Threading;
using System.Threading.Tasks;
using Lextm.SharpSnmpLib;
using Lextm.SharpSnmpLib.Messaging;
namespace SandboxForGetAsync