Skip to content

Instantly share code, notes, and snippets.

@J-Graham
J-Graham / sample.html
Created July 1, 2021 23:17
Code Review Sample
<!DOCTYPE html>
<html>
<head>
<title>Rock Paper Scissors</title>
</head>
<body style="background-color:black;">
<h1 style= "color: green; font-family: 'Courier New', Courier, monospace;">Rock Paper Scissors</h2>
@J-Graham
J-Graham / backendmodel.json
Created October 22, 2020 02:54
Customer Backend Model JSON
{
"Customer": {
"Customer": {
"name": "Customer",
"module": true,
"subEntity": false,
"extends": ["Entity", "Versionable"],
"properties": [
{
"name": "Name",
@J-Graham
J-Graham / customer.d.ts
Created October 22, 2020 02:53
Customer Interface Model
import { IEntity, IVersionable, IDocument, INote } from './base';
import { IContact } from './contact';
import { ICustomerAddress } from './customer-address';
import { ICustomerPhone } from './customer-phone';
import { ICustomerSource } from './customer-source';
import { ICustomerStatus } from './customer-status';
export interface ICustomer extends IEntity, IVersionable {
Name: string;
StatusId: number;
@J-Graham
J-Graham / customer.form-controls.ts
Created October 22, 2020 02:52
Customer Form Group Configuration
export class CustomerDynamicControls {
formGroup: string;
statuses: ICustomerStatus[];
sources: ICustomerSource[];
Form: IExpandableObject;
View: IExpandableObject;
constructor(private customer?: ICustomer, additionalParameters?: ICustomerDynamicControlsParameters) {
@J-Graham
J-Graham / .prettierrc
Created February 16, 2020 20:34
prettier file
{
"arrowParens": "always",
"bracketSpacing": true,
"endOfLine": "auto",
"printWidth": 150,
"quoteProps": "as-needed",
"semi": true,
"singleQuote": true,
"trailingComma": "all",
"tabWidth": 4
@J-Graham
J-Graham / installer-example.ps1
Created February 4, 2020 16:44
Native Problem Web brain blog - Powershell
# Get architecture-specific dependencies
if (($Env:Processor_Architecture -eq "x86" -or $Env:Processor_Architecture -eq "amd64") -and (Test-Path (Join-Path $DependencyPackagesDir "x86")))
{
$DependencyPackages += Get-ChildItem (Join-Path $DependencyPackagesDir "x86\*.appx") | Where-Object { $_.Mode -NotMatch "d" }
}
if (($Env:Processor_Architecture -eq "amd64") -and (Test-Path (Join-Path $DependencyPackagesDir "x64")))
{
$DependencyPackages += Get-ChildItem (Join-Path $DependencyPackagesDir "x64\*.appx") | Where-Object { $_.Mode -NotMatch "d" }
}