Skip to content

Instantly share code, notes, and snippets.

View jbollman7's full-sized avatar

Joseph Bollman jbollman7

  • Northern Colorado
View GitHub Profile
@jbollman7
jbollman7 / Index.cs
Created June 10, 2022 16:12
ASP Sorting
// Pages.Student.Index.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
using Microsoft.EntityFrameworkCore;
using ContosoUniversity.Data;
using ContosoUniversity.Models;
@jbollman7
jbollman7 / Spread.js
Created September 22, 2022 14:53
Spread Rest Operator Example
/**
... either means spread operator OR Rest operator
Spread Operator -> Expand array or Object Literal
Rest Operator -> Function to get all the parameter ina function
Basically its rest operator if you see ... in the method signature
**/
//Add the elements of an existing array into a new array
var array1 = ['a','b','c']
@jbollman7
jbollman7 / dropdown.html
Created October 13, 2022 13:54
HTML Dropdwon option. Select an option is displayed, but is disabled when dropdown mode is activated. Meaning you have to give a valid option
<label for="job-size">How did you hear about us?
<select id="dropdown">
<option disabled="disabled" selected="selected">Select an option</option>
<option value="1">NewsPaper</option>
<option value="2">Facebook</option>
<option value="1">Word of mouth</option>
<option value="2">other</option>
</select>
</label>
@jbollman7
jbollman7 / update-featurebranch-with-mainbranch.bat
Last active November 23, 2022 19:17
Batch file to automaticaly sync your feature branch with the git main branch -
REM This is designed for WINDOWS
REM run win + r, type 'shell:startup'
REM put the contents of this file inside, with a .bat file extension
REM Change the mainb to whatever branch you want to pull changes from, ie themain branch
REM Change featureb to whatever branch you are working on, THAT you want to keep updated with the main branch
REM Change repo to the file directory with your git repository.
SET repo="C:\Repo\CucumberLibrary\"
SET mainb=integration_2.1
SET featureb=US365824_PPE_Lock_Workflow_Validations
REM No changes are needed below
@jbollman7
jbollman7 / vue-notes.md
Created January 21, 2023 17:46
Vue-quick-notes

Vue

API Styles

  • Options API
  • Composition API

Declarative Rendering

SFC (Single-File Component) or Html mode. SFC is what most use when they use Vue with a build step

@jbollman7
jbollman7 / SQLScale.md
Created January 23, 2023 19:57
SQL Server- Scaling - performance

Design for Scale

Introduction

  • Know your workloads, and apply correct db features ie columnstore index is great for warehouse, but would be terrible for transaction database.

Most apps break into two categories

  • OLTP Online transaction processing (ERP, sales website) - Lots of writing, want transactions to finsih quickly.
  • Online analytical processiong (OLAP) - Data warehouse
@jbollman7
jbollman7 / kubernetes-notes-intro.md
Created January 27, 2023 00:00
kubernetes-notes

K8s

Cloud native tech empower orgs to build and run scalalble apps in modern, dynamic envs (clouds). Containers, service meshes, microservices, immutable infra and declarative APIs exemplify this approach.

App Deployment

Set up and explore minikube cluster

minikube start

  • minikube allows for provisioning of new cluster. kubectl allows management of Existing cluster.
  • kubectl cluster-info
    • Shows IP address of K8s control plane.