Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Thompson MarkTechson

View GitHub Profile
@MarkTechson
MarkTechson / router.ts
Created Oct 17, 2022
Advancements in the Angular Router Code Example 1
View router.ts
// Bootstrap the main application component with routing capabilities
const appRoutes: Routes = [];
bootstrapApplication(AppComponent, {
providers: [
provideRouter(appRoutes),
]
});
View use-syntax-angular-v12-example.scss
/**
* @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 Aug 19, 2020
Installing two different versions of Angular
View commands.sh
# 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 Apr 1, 2020
Loading Animation with a Custom Painter
View main.dart
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 Feb 19, 2020
Flutter Study Jam Part 2 - Demo 1
View main.dart
import 'package:flutter/material.dart';
final Color darkBlue = Color.fromARGB(255, 18, 32, 47);
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override