This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| static class TimeConverter | |
| { | |
| const double SecondsPerTick = 1.0 / TimeSpan.TicksPerSecond; | |
| public static double GetTimestamp(TimeSpan timeSpan) | |
| { | |
| return GetTimestamp(timeSpan.Ticks); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq.Expressions; | |
| using System.Reflection; | |
| static class BinarySerializer | |
| { | |
| public static void Serialize<T>(BinaryWriter writer, T value) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.InteropServices; | |
| using Microsoft.Win32.SafeHandles; | |
| using System.IO; | |
| /// Resolve UWP package reparse point metadata (IO_REPARSE_TAG_APPEXECLINK) | |
| /// inspired by: https://stackoverflow.com/a/65583702/628228 | |
| internal static class AppExecLinkHelper | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import numpy as np | |
| import pandas as pd | |
| payloadtypes = { | |
| 1 : np.dtype(np.uint8), | |
| 2 : np.dtype(np.uint16), | |
| 4 : np.dtype(np.uint32), | |
| 8 : np.dtype(np.uint64), | |
| 129 : np.dtype(np.int8), | |
| 130 : np.dtype(np.int16), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Bonsai; | |
| using System; | |
| using System.ComponentModel; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Reactive.Linq; | |
| [Combinator] | |
| [Description("Decodes the current state of a quadrature encoder from raw A/B channels.")] | |
| [WorkflowElementCategory(ElementCategory.Transform)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using OpenTK; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Diagnostics; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| static class Delaunay | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Bonsai.Expressions; | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Linq.Expressions; | |
| using System.Reactive.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace Bonsai.Dynamic |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Runtime.CompilerServices; | |
| using System.Runtime.InteropServices; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| using System.Windows.Forms; | |
| namespace CommonDialogs |