This file contains hidden or 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
Imports System | |
Imports System.IO | |
Module Program | |
Sub Main(args As String()) | |
' Read the input file | |
Dim inputFilePath As String = "testResults.txt" | |
Dim inputLine As String = File.ReadAllText(inputFilePath).Trim() | |
' Parse the input line into a list of entries, removing double quotes |
This file contains hidden or 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
<!DOCTYPE html> | |
<html lang="en" data-theme="cupcake"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="https://rsms.me/inter/inter.css" /> | |
<link href="https://cdn.jsdelivr.net/npm/[email protected]/daisyui.css" rel="stylesheet" type="text/css" /> | |
<script src="https://cdn.jsdelivr.net/npm/@tailwindcss/browser@4"></script> |
This file contains hidden or 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
# scaffold database | |
dotnet ef dbcontext scaffold "Server=DESKTOP-2Q3OQ0V;Database=ProductionTracking;Trusted_Connection=True;" Microsoft.EntityFrameworkCore.SqlServer -o Models -c ProductionTrackingContext --context-dir Contexts -f | |
# add Microsoft.EntityFrameworkCore.Design to project (data access project | |
dotnet add package Microsoft.EntityFrameworkCore.Design |
This file contains hidden or 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
from functools import reduce | |
import operator | |
# 4bb | |
k = ["a", "b", "c", "d"] | |
ar = {} | |
ar["a"] = {} | |
ar["a"]["b"] = {} | |
ar["a"]["b"]["c"] = {} |
This file contains hidden or 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
ALTER PROCEDURE [dbo].[GenerateTSQLForDeltaTable] AS | |
BEGIN | |
DECLARE @tables TABLE (tableschema nvarchar(16), tablename nvarchar(36), columnname nvarchar(64)); | |
declare @staticDB nvarchar(32) = 'DeltaA'; | |
declare @LiveDb nvarchar(32) = 'DeltaB'; | |
insert into @tables |
This file contains hidden or 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
@ECHO OFF echo This script is intended to stop fix broken windows updates | |
REM Changing folder and file permissions for locked files | |
attrib -h -r -s %windir%\system32\catroot2 | |
attrib -h -r -s %windir%\system32\catroot2\*.* | |
REM Stopping services that lock relevant files | |
net stop wuauserv | |
net stop CryptSvc |
This file contains hidden or 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
USE [DeltaA] | |
GO | |
/****** Object: StoredProcedure [dbo].[DeltaTable01] Script Date: 7/28/2022 1:26:02 AM ******/ | |
SET ANSI_NULLS ON | |
GO | |
SET QUOTED_IDENTIFIER ON | |
GO | |
ALTER PROCEDURE [dbo].[DeltaTable01] ( | |
@table nvarchar(100) | |
, @PK_Column nvarchar(32) = 'Id' |
This file contains hidden or 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
/* Idea and clojure from http://nakkaya.com/2010/04/20/fractals-in-clojure-newton-fractal */ | |
Func<Complex, Complex> f1 = c => (c * c * c) - Complex.One; | |
Func<Complex, Complex> f2 = c => ((c * c * c) - (c * 2)) + 2; | |
Func<Complex, Complex> f3 = c => new Complex(Math.Sin(c.Real) * Math.Cosh(c.Imaginary), | |
Math.Cos(c.Real) * Math.Sinh(c.Imaginary)); | |
Func<Complex, Complex> f4 = c => (c * c * c * c) - Complex.One; | |
double step = 0.000006; | |
double delta = 0.003; | |
Tuple<int,int> formDimensions = new Tuple<int,int>(800, 600); |
This file contains hidden or 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
$_solution="SHCA09"; | |
$_mvcProject="SHCA.Web"; | |
$_apiProject="SHCA.Api"; | |
$_dbProject="SHCA.Entity"; | |
$_sdk_version="5.0.303"; | |
$_dbName="Automatic" | |
$_dbModelFolder="Models" | |
## Install Install code generator: |
This file contains hidden or 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 void Configure(IApplicationBuilder app, IWebHostEnvironment env) | |
{ | |
if (env.IsDevelopment()) | |
{ | |
app.UseDeveloperExceptionPage(); | |
app.UseDatabaseErrorPage(); | |
} | |
else | |
{ | |
app.UseExceptionHandler("/Error"); |
NewerOlder