Skip to content

Instantly share code, notes, and snippets.

@sanme98
sanme98 / Test.md
Created April 1, 2023 02:28
Testing Gist in Markdown
View Test.md

This is a testing

Console.WriteLine("Hello World!");

End of testing

@sanme98
sanme98 / The-Age-of-AI-Has-Begun.md
Created March 24, 2023 14:28
Some notes on The Age of AI has begun by Bill Gates using Mermaid Mindmap
View The-Age-of-AI-Has-Begun.md
mindmap
  root((The Age of AI has begun - Bill Gates))
    1. Introduction
      Revolutions
        Mobile phones
        Internet
        GUI of OS
        OpenAI
          GPT
@sanme98
sanme98 / LINQPad-MinAPI.linq
Created November 28, 2021 10:43
LINQPad 7 Minimum APIs
View LINQPad-MinAPI.linq
<Query Kind="Program">
<NuGetReference>Microsoft.EntityFrameworkCore.InMemory</NuGetReference>
<NuGetReference>Swashbuckle.AspNetCore</NuGetReference>
<Namespace>Microsoft.AspNetCore.Builder</Namespace>
<Namespace>Microsoft.EntityFrameworkCore</Namespace>
<Namespace>Microsoft.Extensions.DependencyInjection</Namespace>
<Namespace>Microsoft.OpenApi.Models</Namespace>
<Namespace>Microsoft.AspNetCore.Http</Namespace>
<IncludeAspNet>true</IncludeAspNet>
<RuntimeVersion>6.0</RuntimeVersion>
@sanme98
sanme98 / MakerpHATDemoCode.cs
Created September 29, 2021 14:53
Sample code for Maker pHAT in .NET C#
View MakerpHATDemoCode.cs
using System;
using System.Device.Gpio;
using System.Threading;
using System.Diagnostics;
//LED
int led1 = 17;
int led2 = 18;
int led3 = 27;
int led4 = 22;