Skip to content

Instantly share code, notes, and snippets.

View wherewhere's full-sized avatar
🏛️
Busy in studying...

where where wherewhere

🏛️
Busy in studying...
View GitHub Profile
@wherewhere
wherewhere / marked.js
Last active December 8, 2024 10:02
Marked JS for IE 8 supports
/**
* marked - a markdown parser
* Copyright (c) 2011-2021, Christopher Jeffrey. (MIT Licensed)
* https://github.com/markedjs/marked
*/
/**
* DO NOT EDIT THIS FILE
* The code in this file is generated from files in ./src/
*/
@wherewhere
wherewhere / DefaultInterpolatedStringHandler.cs
Last active June 25, 2024 09:47
A DefaultInterpolatedStringHandler realized by StringBuilder
#if !NET6_0_OR_GREATER
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
using System.Globalization;
using System.Text;
namespace System.Runtime.CompilerServices
{
/// <summary>
@wherewhere
wherewhere / FrameBufferOpenCVExtensions.cs
Last active March 23, 2024 10:05
The extension for FrameBuffer to get Mat
// <copyright file="FrameBufferOpenCVExtensions.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere">
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved.
// </copyright>
using AdvancedSharpAdbClient.Models;
using OpenCvSharp;
using System;
using System.Runtime.CompilerServices;
/// <summary>
@wherewhere
wherewhere / FrameBufferWinRTExtensions.cs
Last active March 23, 2024 10:06
The extension for FrameBuffer to get WriteableBitmap
// <copyright file="FrameBufferWinRTExtensions.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere">
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved.
// </copyright>
using AdvancedSharpAdbClient.Models;
using System;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Threading;
using System.Threading.Tasks;
@wherewhere
wherewhere / FrameBufferDrawingExtensions.cs
Last active March 23, 2024 10:04
The extension for FrameBuffer to get Bitmap
// <copyright file="FrameBufferDrawingExtensions.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere">
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved.
// </copyright>
using AdvancedSharpAdbClient.Models;
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
@wherewhere
wherewhere / Test.il
Created March 20, 2024 11:10
All members name are Test
.assembly Test {
.ver 0:0:0:0
}
.class public abstract Test extends [System.Runtime]System.ValueType {
.field public static Test Test
.method public void .ctor() {
.maxstack 8
ldarg.0
@wherewhere
wherewhere / SyncServiceFolderExtensions.cs
Created March 20, 2024 09:56
The extension for SyncService to manage folder
// <copyright file="SyncServiceFolderExtensions.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere">
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved.
// </copyright>
using AdvancedSharpAdbClient;
using AdvancedSharpAdbClient.DeviceCommands;
using AdvancedSharpAdbClient.Models;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
@wherewhere
wherewhere / FrameBufferSkiaExtensions.cs
Last active March 25, 2024 08:30
The extension for FrameBuffer to get SKBitmap
// <copyright file="FrameBufferSkiaExtensions.cs" company="The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere">
// Copyright (c) The Android Open Source Project, Ryan Conrad, Quamotion, yungd1plomat, wherewhere. All rights reserved.
// </copyright>
using AdvancedSharpAdbClient.Models;
using SkiaSharp;
using System;
using System.Runtime.CompilerServices;
/// <summary>
@wherewhere
wherewhere / Program.jsl
Last active March 30, 2024 15:22
A J# program to use AdvancedSharpAdbClient
package ADBClientTest;
import AdvancedSharpAdbClient.*;
import AdvancedSharpAdbClient.Models.*;
import java.io.*;
import System.*;
import System.Collections.Generic.*;
public class Program
{
@wherewhere
wherewhere / ReverseIslands.cs
Last active December 28, 2023 05:24
Show win32 controls on UWP
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.Numerics;
using System.Runtime.InteropServices;
using System.Text;
using Windows.Foundation;
using Windows.UI.Composition;
using Windows.UI.Core;