Skip to content

Instantly share code, notes, and snippets.

View MarkTechson's full-sized avatar

Mark Thompson MarkTechson

View GitHub Profile
@MarkTechson
MarkTechson / router.ts
Created October 17, 2022 20:43
Advancements in the Angular Router Code Example 1
// Bootstrap the main application component with routing capabilities
const appRoutes: Routes = [];
bootstrapApplication(AppComponent, {
providers: [
provideRouter(appRoutes),
]
});
@MarkTechson
MarkTechson / use-syntax-angular-v12-example.scss
Last active July 5, 2021 21:07
Example of the USE Syntax
/**
* @license
* Copyright Google LLC All Rights Reserved.
*
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://angular.io/license
*/
// Here's an example of the before and after.
// BEFORE
@MarkTechson
MarkTechson / commands.sh
Created August 19, 2020 22:59
Installing two different versions of Angular
# Here's one way to set up multiple version of Angular
# on your machine using npm and npx
# This isn't recommended as you should be using the latest version of Angular.
# But edge cases exist :)
#############################################################
# In a folder specifically for an Angular 8 project
#############################################################
npm i @angular/cli@8.3.29
@MarkTechson
MarkTechson / main.dart
Last active April 1, 2020 21:40
Loading Animation with a Custom Painter
import 'package:flutter/material.dart';
import 'dart:math';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@MarkTechson
MarkTechson / main.dart
Created February 19, 2020 18:11
Flutter Study Jam Part 2 - Demo 1
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override