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; | |
using System.Diagnostics; | |
using System.Threading; | |
using System.Threading.Tasks; | |
namespace WaitHandleTasks | |
{ | |
public static class WaitHandleExtension | |
{ | |
public static Task AsTask(this WaitHandle waitHandle) |
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
// ConsoleApplication1.cpp : Defines the entry point for the console application. | |
// | |
#include "stdafx.h" | |
class IBase | |
{ | |
public: | |
virtual int Method1(int a, int b) = 0; | |
virtual int Method2(int a, int b) = 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
using System; | |
using System.Collections.Concurrent; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.IO; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace csharp_agg_csv2 |
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; | |
using System.IO; | |
using System.Linq; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using AngleSharp.Dom.Html; | |
using AngleSharp.Parser.Html; | |
namespace ConsoleApp1 | |
{ |
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
// https://github.com/kekyo/SeeedJP_STM32F4/commit/cf9cd45caaae41c1d5e71eeec5ea3d25bcc2dae0 | |
#include <Wio3GforArduino.h> | |
Wio3G Wio; | |
void setup() | |
{ | |
SerialUSB.begin(115200); | |
SerialUSB.println(""); |
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; | |
using System.Collections.Generic; | |
using System.Globalization; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ConsoleApp2 | |
{ | |
class CalendarControl |
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
let center = 12 | |
let startRed = 0 | |
let startGreen = 0 | |
let startBlue = 0 | |
let red = 0 | |
let green = 0 | |
let blue = 0 | |
let data: Buffer = pins.createBuffer(4) | |
let dummy: Buffer = pins.createBuffer(4) |
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 GHIElectronics.TinyCLR.BrainPad; | |
using System; | |
using System.Collections; | |
using System.Text; | |
using System.Threading; | |
namespace TinyCLRApplication1 | |
{ | |
class Program | |
{ |
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; | |
namespace ExceptionTest | |
{ | |
class Program | |
{ | |
static string GetMessage(Exception ex, string banner) | |
{ | |
Console.WriteLine(banner); | |
return ex.Message; |
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 <stdio.h> | |
#include <signal.h> | |
#include <setjmp.h> | |
jmp_buf jb; | |
// Run in windows, this handler called from SEH filter context from "_seh_filter_exe()". | |
// The SEH __try - __except() block contains at "__scrt_common_main_seh()," | |
// the callgraph is: | |
// __scrt_common_main_seh() --> __try --> main() --> [SEGV] --> __except() --> _seh_filter_exe() --> handler() |