Skip to content

Instantly share code, notes, and snippets.

@HoraceBury
HoraceBury / ArchGen_ReadMe.md
Last active March 25, 2024 15:30
Generate Solution Architecture Diagram

Specify your architecture

  1. Specify as much detail as possible for your architecture, for example:
Design a simple solution architecture for a contact entry page which:
Requires no authentication to access
Collects and stores the name, phone number, address and email address of the contact
Uses ReactJS for the front end
API Gateway and Lambda in C# dotnet 6 for the backend
internal class Program
{
private static string[] urls = new string[] { "https://www.microsoft.com/", "https://www.youtube.com/", "https://www.airproducts.com/", "https://www.twitter.com/" };
private static void Main(string[] args)
{
PrepareTempFolders();
List<Runner> runners = new List<Runner>();
@HoraceBury
HoraceBury / ConsoleThreadBrowserTest.csproj
Last active May 8, 2023 08:18
Attempt to create multiple selenium edge browser instances in console app
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
@HoraceBury
HoraceBury / MultipleWindowTest.csproj
Last active May 3, 2023 15:29
Multiple Edge browser windows test in dotnet 6 C# with Selenium 4
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net6.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
@HoraceBury
HoraceBury / posts
Created March 28, 2019 14:30
Links to useful posts in the Corona forums
Moving groups of physics objects
https://forums.coronalabs.com/topic/74929-moving-group-of-phyics-objects/
Setting a physics body's position
https://forums.coronalabs.com/topic/74900-how-to-permanently-set-bodys-x-position/
Collision events
https://forums.coronalabs.com/topic/74846-collision-events-order/
@HoraceBury
HoraceBury / dropboxapi.lua
Last active May 11, 2019 00:24
DropBox API v2 library.
-- DropBox API v2 Library
require("utils") -- https://gist.github.com/HoraceBury/9321964
local iolib = require("iolib") -- https://gist.github.com/HoraceBury/d8d2fa3382f82a7c7faa
iolib.isdebug = false
local lib = {}
local function printer(str)
iolib.isdebug = lib.IsDebug
@HoraceBury
HoraceBury / catmull.lua
Created August 2, 2018 09:54
Takes a table of x,y points and returns a smooth catmull-rom spline table of x,y points.
-- catmull-rom-spline library
-- Resources:
-- https://gist.github.com/1383576
-- http://codeplea.com/simple-interpolation
-- http://codeplea.com/introduction-to-splines
require("tablelib") -- https://gist.github.com/HoraceBury/9307117
require("mathlib") -- https://gist.github.com/HoraceBury/9431861
@HoraceBury
HoraceBury / Program.cs
Created April 4, 2018 12:54
Executing an equation in C# proven with nUnit.
using System;
using NUnit.Framework;
using System.Data;
namespace RandomTests
{
[TestFixture]
public class NumberTests
{
public static void Main(string[] args)
@HoraceBury
HoraceBury / displaylib.lua
Created March 21, 2018 09:44
Display library, adding to and modifying the existing Corona display library.
-- display lib
local newShapeList = {
"newCircle",
"newContainer",
"newEmbossedText",
"newEmitter",
"newGroup",
"newImage",
"newImageRect",
@HoraceBury
HoraceBury / cyclingants.lua
Last active March 11, 2018 18:56
Cycling ants. Takes a pattern to be used for a mask outline and generates a collection of display groups which can be used to animate the cyclic pattern around a path shape. https://youtu.be/4cwjTrpvnFU
require("mathlib")
require("graphicslib")
require("tablelib")
local function asPoint( x, y )
return { x=x, y=y }
end
local function getPoint( path, index )
return { x=path[index], y=path[index+1] }