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 <SoftwareSerial.h> | |
#include <HUSKYLENS.h> | |
/* | |
https://github.com/HuskyLens/HUSKYLENSArduino/issues/6 | |
Modify HUSKYLENS.h | |
line 376 by -> currentIndex = _min(currentIndex, result); | |
line 231 by -> protocolPtr = (Protocol_t *)realloc(protocolPtr, _max(protocolInfo.protocolSize, 1) * sizeof(Protocol_t)); | |
and line 707 by -> uint8_t data[7] = {length}; |
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; | |
namespace Mikes_Code | |
{ | |
public class Card | |
{ | |
public string Face; | |
public int Value; | |
public String Suit; |
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; | |
namespace Mikes_Code | |
{ | |
public class Card | |
{ | |
public string Face; | |
public int Value; | |
public String Suit; |
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 Mikes_Code | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
Console.WriteLine("Gimme a card"); | |
Console.Write("> "); |
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.Threading; | |
using System.Threading.Tasks; | |
using PuppeteerSharp; | |
using System.Collections.Generic; | |
namespace netDemo | |
{ | |
public 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
public static char? traverse(string s, bool caseInsensitiveMatching = true) | |
{ | |
var counts = new Dictionary<char, int>(); | |
for(int characterIndex=0; characterIndex < s.Length; characterIndex++) | |
{ | |
var c_upper = s[characterIndex]; | |
if(!caseInsensitiveMatching) | |
c_upper = char.ToUpper(s[characterIndex]); | |
if (counts.ContainsKey(c_upper)) |
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 Microsoft.AspNetCore; | |
using Microsoft.AspNetCore.Builder; | |
using Microsoft.AspNetCore.Hosting; | |
using Microsoft.Extensions.DependencyInjection; | |
using StackExchange.Redis; | |
using System; | |
using System.Net.WebSockets; | |
using System.Threading; | |
using System.Threading.Tasks; |
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://www.silabs.com/products/development-tools/software/usb-to-uart-bridge-vcp-drivers |