Skip to content

Instantly share code, notes, and snippets.

View JaimeStill's full-sized avatar
👽

Jaime Still JaimeStill

👽
  • Arma Global / General Dynamics
  • Fayetteville, NC
View GitHub Profile
@JaimeStill
JaimeStill / 0_readme.md
Last active December 9, 2021 15:19
ApiQueryService Overhaul

ApiQueryService Overhaul

The intent behind the code files provided in this repository is to abstract away the need to generate unique source services each time a query source is needed. Instead, a generic QuerySource class is able to be instantiated per API route, and is managed internal to the component that uses it. To prevent from needing to inject all of the dependencies required by QuerySource into the host component, a QueryGenerator service is made available that handles instantiation of QuerySource objects via its [generateSource](https://gist.github.com/JaimeStill/9792fc15063e8c9fbd9bafa5650b4398#

@JaimeStill
JaimeStill / readme.md
Created December 3, 2021 16:29
Run server and all Angular apps in one VS Code Task

Run Platform Via Task

Overview

This setup assumes a monorepo configuration similar to what would be generated from this offline-platform schematic. It assumes that you want to execute the following:

  1. Start the .NET server and build the Angular library simultaneously.
  2. Once the Angular library build completes, start all of the Angular apps that are included in the monorepo.

Command Configuration

@JaimeStill
JaimeStill / lfs.md
Created November 17, 2021 13:33
Git LFS Notes

Git LFS

Quick notes from Git LFS Overview

# help
git lfs help <command>

# command help
git lfs  -h
@JaimeStill
JaimeStill / promises.ts
Created September 17, 2021 14:24
Demonstrate utility of async / await vs. promise.then when coordinating async calls
/*
For a more formal explanation, see https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Asynchronous/Async_await
*/
// This is not preferred
thenChaining = () => {
this.somePromise().then(value => {
this.nextPromise().then(nextValue => {
/*
So on and so forth. This gets super ugly
@JaimeStill
JaimeStill / 01-tab.ts
Created June 15, 2021 18:53
Vertical Tab Component Infrastructure
export interface Tab {
link: string;
label: string;
hide?: boolean;
}
@JaimeStill
JaimeStill / 01-palette.scss
Last active August 9, 2021 16:37
Angular 12 Theming Overhaul
@use 'sass:map';
@use '~@angular/material' as mat;
@function get-palette($light: true) {
$palette: (
"red": (
"theme": if($light, 'light', 'dark'),
"palette": mat.define-palette(mat.$red-palette, if($light, 500, A200)),
"color": mat.get-color-from-palette(mat.$red-palette, if($light, 500, A200)),
"contrast": mat.get-contrast-color-from-palette(mat.$red-palette, if($light, 500, A200))
@JaimeStill
JaimeStill / aeropress.md
Last active February 7, 2021 18:10
Aeropress Espresso-like Recipe

Aeropress Espresso-like Latte Recipe

Important Notes

Coffee-to-Water Ratio: 1:2.5 - For this recipe, use ~20g of fine ground espresso beans to ~50g of boiling water.

Once the water hits the coffee beans, you're going to want to set a timer for one minute. Once you hit 50g of water added, you're going to want to stir everything well for 20-30 seconds. Relax and don't freak out about being timed. Take it easy and trust that you'll have enough time in the process. I tend to end up with 10-20 seconds left before I need to press.

01-start

[
{
id: 1,
categoryId: 1,
name: "Nirvana - Nevermind",
description: "Grunge",
category: {
id: 1,
name: "Music",
items: []
@JaimeStill
JaimeStill / magick-books.md
Last active October 14, 2020 13:01
Damien Echols' beginners booklist