This file contains 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
begin tran t1 | |
create table #recipe( | |
Id varchar(64) not null | |
,ParentID varchar(64) | |
,Amount real | |
,Yield real | |
,TimeSpan real | |
) |
This file contains 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.Buffers; | |
using System.Text; | |
namespace Panda728.Extensions; | |
public static class ShiftJisExtension | |
{ | |
// Encoding.RegisterProvider(CodePagesEncodingProvider.Instance); | |
readonly static Encoding _sjis = Encoding.GetEncoding("shift-jis"); | |
const int ARRAY_POOL_LIMIT = 2048; |
This file contains 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.Buffers; | |
using System.IO.Pipelines; | |
namespace Panda728.Helper; | |
public sealed class FilePipeReader | |
{ | |
public delegate void ReadTo(in ReadOnlySpan<byte> buffer); | |
readonly Pipe _pipe = new(); |
This file contains 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.Data; | |
using System.Reflection; | |
using System.Runtime.CompilerServices; | |
public static class DataTableExtension | |
{ | |
public static DataTable ToDataTable<T>(this IEnumerable<T> items) where T : new() | |
{ | |
var properties = Cache<T>.Properties.AsSpan(); |
This file contains 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.Reflection; | |
using Microsoft.Extensions.DependencyInjection; | |
namespace ServiceCollectionExtensions; | |
public static class ServiceCollectionExtensions | |
{ | |
/// <summary>Adds all types with the specifeid <typeparamref name="T"/> to the service with singleton.</summary> | |
public static IServiceCollection AddSingleton<T>(this IServiceCollection services, Assembly assembly, bool includeInternalTypes = false) where T : class | |
=> services.AddSpecifiedInterfaceFromAssembly(assembly, typeof(T), ServiceLifetime.Singleton, includeInternalTypes); |
This file contains 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
; config.ini | |
[ntp] | |
SERVER=ntp.jst.mfeed.ad.jp | |
TZ=JST-9 | |
[wifi] | |
SSID=MySSID | |
PASS=MyPassword | |
#IP=0.0.0.0 | |
#GATEWAY=0.0.0.0 |
This file contains 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
#include <Arduino.h> | |
#include <M5GFX.h> | |
#include <vector> | |
#include <map> | |
#include <float.h> | |
#include <time.h> | |
static float room1[] = {21.6, 21.6, 21.6, 21.6, 21.6, 21.5, 21.5, 21.5, 21.5, 21.5, 21.5, 21.5, 21.5, 21.5, 21.5, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.4, 21.3, 21.3, 21.3, 21.3, 21.3, 21.3, 21.3, 21.3, 21.3, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.2, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.1, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 21.0, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.8, 20.8, 20.8, 20.8, 20.8, 20.8, 20.8, 20.8, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 20.9, 21.0, 21.0, 21.1, 21.1, 21.1, 21.2, 21.3, 21.4, 21.4, 21.5, 21.6, 21.7, 21.9, 22.0, 22.1, 2 |