Skip to content

Commit

Permalink
Updated jQuery and Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
RamblingGeekUK committed Jan 14, 2025
1 parent 422ec9e commit 354e287
Show file tree
Hide file tree
Showing 56 changed files with 59,728 additions and 11 deletions.
27 changes: 27 additions & 0 deletions 2023-10-26T17_55_27Z/data/ssh/id_rsa_Vector-P6K4
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
-----BEGIN RSA PRIVATE KEY-----
MIIEowIBAAKCAQEAvOWedEq9/MyFRiQNfgQZCMSB/jPQL8dZTxOuxBK8rTRYnnQi
Px3KAknve0LYdTf6gMCDr6+D744cfeQMbm8D5qOd7nW/4Qj/ULSb6E6wKhaqjJ8j
BGjI1lJDMEqq60j9AL/JTSeWa9Y8ia1BqKdoOUbQy7X8/8lTLElKDHdRnGo+1kzm
Bg+3+C1Rdweq+d1hmuXWznlU4sqiQinvrcMqmUqX4Zuy0oKLiSO+srs6fcP1Dawp
t6VJfKoQOz9ceFPTJ5pk+/Mc3JCiqV9Hvb19jDajT1NWEim92Z7aih3/EEPokbJU
0VRROUhosBGLKTpTuNclRPID+i9vQ+ISsO0r5wIDAQABAoIBABL7mFLjd/hBrVsB
IIH7c3CYHuAm4NMMW4NA3R1DLMbTLdyumwpwue5E89YVP594AqqRrionn0ChrWdR
VZZ7fY7d/m8KUkARIWdA3zIXRkjUgksjaud0iEpRdgMSXd7LNPGwVFB2m/02SFsl
mCWUvTqUTUNLhKNH3h3jN5fNHdxz/GIoF5sC32C+JDld4KCRErGysos/qcu+yDTd
oq2MmIapa074RAYzrGKNqd5Seh141PlLXL1vv89TlXz1cp8heqP+57BScBG9Avwd
g1HSsXrCyh8Rvz2zdw+lDf+EWeqXY3aA8Ju54PObjC3Le5MpmKpDW+KI/AvrzkNW
1IDXtHECgYEA9ttR8zJT+4QmFeGcxPeucDcrWVAIwcpEmxatth92+80FmKo8ukBQ
K7yuQwEG2mZywBNutC/x7CGxGbcV9mWS8NslerrM6xmnxQ9hMghR9gB20TumtBRm
LGIKO0I3GGtIxXhAm2DM5h3cS2CR/yeiVs3xiDmcNnXV0to7UXzbS4MCgYEAw+S6
WvTo91Ff5bMIZrrUP5ETLtKMDd8M/NgTXtNIIypqZC+w8uC6AkSQ/Kqd5CyoucDu
oPTAdFMk7riZrCw/nDJuZaix4Q9JZDRduk+8GI2urvGNIsBSRTz1qAsYXbTd+3Sy
NLXazsplq5n8p/fAuxOh0V4sRET/ROjytqS1PM0CgYEAtMoJKaBZS2IL9oiGJOb0
dTCiacWotCyrtB2W2UQQAvezOoyq7wj87htAUMgmubrAHZXdxM88UWCXcKraxdq8
E/Obblfyjdf7O+I4n8jiJdVPL4uNWmN6NNUUgzPKX/Lql9yrDGCHj5yc4wN1yTXA
uewYEVmH44bHM6YqPVLA1HsCgYAoOsn2sgNB/0k1cA4Sot3B7DZHUGAI3TzalDlu
KO/QoP5WcuDhEDvDCXfJG/TvDijcdP3MulbnzMdx6yFMFY4+srCvWfSl5rDIzmRN
ReC4Hii4rsywTVTX+Uvt5dFsNR+9a1rJrmswOqqkkiwsBppjEQYTbEalApJ2AW0P
C0ZZJQKBgAxscevZMwstQqxE2gEnY7GiUS6gkZaTESmb4QatFxCkBNzh7iCE/qsd
z8QWfKzSk6ghvz0UHjJmeaJ2+BRQ7yDc04gly1KZ7M8oa7Tbp22RG0AKYteikyjc
rOzj01cXvQmSnZmisgWYOzujghCV45Govi+yeT9Boxo43DRIuRRE
-----END RSA PRIVATE KEY-----
1 change: 1 addition & 0 deletions 2023-10-26T17_55_27Z/data/ssh/id_rsa_Vector-P6K4.pub
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC85Z50Sr38zIVGJA1+BBkIxIH+M9Avx1lPE67EErytNFiedCI/HcoCSe97Qth1N/qAwIOvr4Pvjhx95AxubwPmo53udb/hCP9QtJvoTrAqFqqMnyMEaMjWUkMwSqrrSP0Av8lNJ5Zr1jyJrUGop2g5RtDLtfz/yVMsSUoMd1Gcaj7WTOYGD7f4LVF3B6r53WGa5dbOeVTiyqJCKe+twyqZSpfhm7LSgouJI76yuzp9w/UNrCm3pUl8qhA7P1x4U9MnmmT78xzckKKpX0e9vX2MNqNPU1YSKb3ZntqKHf8QQ+iRslTRVFE5SGiwEYspOlO41yVE8gP6L29D4hKw7Svn root@Vector-P6K4
26 changes: 26 additions & 0 deletions 2023-10-26T17_55_27Z/data/ssh/vector.ppk
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PuTTY-User-Key-File-3: ssh-rsa
Encryption: none
Comment: imported-openssh-key
Public-Lines: 6
AAAAB3NzaC1yc2EAAAADAQABAAABAQC85Z50Sr38zIVGJA1+BBkIxIH+M9Avx1lP
E67EErytNFiedCI/HcoCSe97Qth1N/qAwIOvr4Pvjhx95AxubwPmo53udb/hCP9Q
tJvoTrAqFqqMnyMEaMjWUkMwSqrrSP0Av8lNJ5Zr1jyJrUGop2g5RtDLtfz/yVMs
SUoMd1Gcaj7WTOYGD7f4LVF3B6r53WGa5dbOeVTiyqJCKe+twyqZSpfhm7LSgouJ
I76yuzp9w/UNrCm3pUl8qhA7P1x4U9MnmmT78xzckKKpX0e9vX2MNqNPU1YSKb3Z
ntqKHf8QQ+iRslTRVFE5SGiwEYspOlO41yVE8gP6L29D4hKw7Svn
Private-Lines: 14
AAABABL7mFLjd/hBrVsBIIH7c3CYHuAm4NMMW4NA3R1DLMbTLdyumwpwue5E89YV
P594AqqRrionn0ChrWdRVZZ7fY7d/m8KUkARIWdA3zIXRkjUgksjaud0iEpRdgMS
Xd7LNPGwVFB2m/02SFslmCWUvTqUTUNLhKNH3h3jN5fNHdxz/GIoF5sC32C+JDld
4KCRErGysos/qcu+yDTdoq2MmIapa074RAYzrGKNqd5Seh141PlLXL1vv89TlXz1
cp8heqP+57BScBG9Avwdg1HSsXrCyh8Rvz2zdw+lDf+EWeqXY3aA8Ju54PObjC3L
e5MpmKpDW+KI/AvrzkNW1IDXtHEAAACBAPbbUfMyU/uEJhXhnMT3rnA3K1lQCMHK
RJsWrbYfdvvNBZiqPLpAUCu8rkMBBtpmcsATbrQv8ewhsRm3FfZlkvDbJXq6zOsZ
p8UPYTIIUfYAdtE7prQUZixiCjtCNxhrSMV4QJtgzOYd3Etgkf8nolbN8Yg5nDZ1
1dLaO1F820uDAAAAgQDD5Lpa9Oj3UV/lswhmutQ/kRMu0owN3wz82BNe00gjKmpk
L7Dy4LoCRJD8qp3kLKi5wO6g9MB0UyTuuJmsLD+cMm5lqLHhD0lkNF26T7wYja6u
8Y0iwFJFPPWoCxhdtN37dLI0tdrOymWrmfyn98C7E6HRXixERP9E6PK2pLU8zQAA
AIAMbHHr2TMLLUKsRNoBJ2OxolEuoJGWkxEpm+EGrRcQpATc4e4ghP6rHc/EFnys
0pOoIb89FB4yZnmidvgUUO8g3NOIJctSmezPKGu026dtkRtACmLXopMo3Kzs49NX
F70Jkp2ZorIFmDs7o4IQleORqL4vsnk/QaMaONw0SLkURA==
Private-MAC: 835afe69d083099163f62727de5576665da676ae2435c94914f27a5b4cc37ec3
1 change: 1 addition & 0 deletions 2023-10-26T17_55_27Z/factory/log0
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"CameraCalibration":{"cx":318.86785888671875,"cy":181.15635681152344,"distortionCoeffs":[-0.12321031838655472,-0.1699414849281311,0.0029293263796716928,-0.000577606784645468,0.11517772823572159,0.0,0.0,0.0],"fx":366.61587524414062,"fy":360.80426025390625,"ncols":640,"nrows":360,"skew":0.0},"CliffsOnBackDrop":{"BL":14,"BR":21,"FL":970,"FR":926},"CliffsOnFrontDrop":{"BL":947,"BR":989,"FL":27,"FR":27},"CliffsOnGround":{"BL":934,"BR":983,"FL":973,"FR":928},"IMUInfo":{"DriftRate_degPerSec":0.0048050382174551487,"IMUTempDuration":{"TempEnd_c":51.193359375,"TempStart_c":51.119140625,"duration_ms":2040}},"IMUTempDuration":{"TempEnd_c":51.361328125,"TempStart_c":50.810546875,"duration_ms":90549},"ObservedCubePose":{"Rot_deg":[-1.6792374708529678e-06,6.7047817537968513e-06,0.36139637231826782],"Trans_mm":[438.53036499023438,0.25443506240844727,18.433460235595703]},"PlayPenTest":{"Result":"SUCCESS","SHA-1":"0","StationID":0,"Time":1454,"Timestamps":[1397820,1397880,1400280,1405980,1410780,1417200,1419000,1424460,1435680,0,0,0,0,0,0,0,0,1437060]},"PlaypenDistanceSensor80mm":[{"AmbientIntensity":0.0234375,"SensorDistanceRaw_mm":139,"SignalIntensity":23.9765625,"SpadCount":23.015625,"VisualAngleAway_rad":-0.0074084997177124023,"VisualDistance_mm":99.69024658203125}],"touchSensorOffCharger":[{"max":602.9000244140625,"min":593.2249755859375,"stddev":1.8515822887420654}],"touchSensorOnCharger":[{"max":605.4124755859375,"min":593.98748779296875,"stddev":1.9577113389968872}]}
8 changes: 8 additions & 0 deletions 2023-10-26T17_55_27Z/factory/log1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
total 13
dr--r----- 3 888 888 1024 Jan 1 1970 .
drwxr-xr-x 4 root root 1024 Jan 1 00:00 ..
dr--r----- 2 888 888 1024 Jan 1 1970 00403161
-r--r----- 1 888 888 1472 Jan 1 1970 AnkiRobotDeviceCert.pem
-r--r----- 1 888 888 1704 Jan 1 1970 AnkiRobotDeviceKeys.pem
-r--r----- 1 888 888 792 Jan 1 1970 Info00403161.json
QSN=348613601 # ESN=00403161
2 changes: 1 addition & 1 deletion Bot/ChatBot.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<TargetFramework>net8.0</TargetFramework>
</PropertyGroup>

<ItemGroup>
Expand Down
3 changes: 1 addition & 2 deletions Bot/Commands/CommandALive.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ namespace ChatBot.Base
{
public class CommandALive : CommandBase, ICommand
{
public CommandALive(TwitchClient client)
: base(client)
public CommandALive(TwitchClient client) : base(client)
{
}

Expand Down
24 changes: 24 additions & 0 deletions Bot/ReadSecrets.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ChatBot
{
public class ReadSecrets
{
public T ReadSection<T>(string sectionName)
{
var environment = Environment.GetEnvironmentVariable("NETCORE_ENVIRONMENT");
var builder = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{environment}.json", optional: true)
.AddEnvironmentVariables();
var configurationRoot = builder.Build();

return configurationRoot.GetSection(sectionName).Get<T>();
}
}
}
20 changes: 20 additions & 0 deletions Bot/SecretAppsettingReader.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
using Microsoft.Extensions.Configuration;
using System;

namespace ChatBot
{
public class SecretAppsettingReader
{
public static T ReadSection<T>(string sectionName)
{
var environment = Environment.GetEnvironmentVariable("NETCORE_ENVIRONMENT");
var builder = new ConfigurationBuilder()
.AddJsonFile("appsettings.json")
.AddJsonFile($"appsettings.{environment}.json", optional: true)
.AddEnvironmentVariables();
var configurationRoot = builder.Build();

return configurationRoot.GetSection(sectionName).Get<T>();
}
}
}
16 changes: 8 additions & 8 deletions Bot/TwitchBot/TwitchBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public Task Start()

this.commands = CommandHelper.GetCommands(client);

coders = GetLiveCoders(); // this fails :D
//coders = GetLiveCoders(); // this fails :D
}
catch (Exception)
{
Expand All @@ -72,13 +72,13 @@ private void OnMessageReceived(object sender, OnMessageReceivedArgs e)

var fclient = new FaunaClient(endpoint: ENDPOINT, secret: Settings.Fauna_Secret);

if (coders.Contains(e.ChatMessage.DisplayName))
{
//string name = await GetVectorPronunciation(fclient, e.ChatMessage.DisplayName);
_ = ("!so " + e.ChatMessage.DisplayName);
new CommandAnnounce(client).Execute($"A live coder is in the chat, check out {e.ChatMessage.DisplayName}, stream at twitch dot tv/{e.ChatMessage.DisplayName}", e);
coders.Remove(e.ChatMessage.DisplayName);
}
//if (coders?.Any() != true | coders != null && coders.Contains(e.ChatMessage.DisplayName))
//{
// //string name = await GetVectorPronunciation(fclient, e.ChatMessage.DisplayName);
// _ = ("!so " + e.ChatMessage.DisplayName);
// new CommandAnnounce(client).Execute($"A live coder is in the chat, check out {e.ChatMessage.DisplayName}, stream at twitch dot tv/{e.ChatMessage.DisplayName}", e);
// coders.Remove(e.ChatMessage.DisplayName);
//}

foreach (Match link in Regex.Matches(e.ChatMessage.Message,
@"(https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})"))
Expand Down
Loading

0 comments on commit 354e287

Please sign in to comment.