Skip to content

Instantly share code, notes, and snippets.

View blove's full-sized avatar
🙇‍♂️
coding

Brian Love blove

🙇‍♂️
coding
View GitHub Profile
@blove
blove / base.component.ts
Created December 29, 2020 00:28
Angular BaseComponent
import { Directive, OnDestroy } from '@angular/core';
import { Subject } from 'rxjs';
@Directive()
// tslint:disable-next-line:directive-class-suffix
export abstract class BaseComponent implements OnDestroy {
private destroy$: Subject<void> | null = null;
get destroy() {
if (!this.destroy$) {
@blove
blove / ng-workspace-cheat-sheet.md
Created July 15, 2018 01:16
Angular CLI Workspace Cheat Seet

Angular CLI Workspace Cheat Sheet

You must first generate a new project before using workspaces:

ng new my-app

generate

@blove
blove / gist:7127110
Created October 23, 2013 21:30
Load typekit asynchronously using jQuery using CoffeeScript
$ ->
class Brianflove
@_initialized = null
constructor: () ->
if @_initialized is not null
throw "Do not instantiate this class on your own"
@_initialized = true
@blove
blove / gist:5782572
Created June 14, 2013 15:04
Deploy artifacts to remote Apache Archiva repository.
#!/bin/bash
################################################################################
##
## Deploys the artifacts to the remote maven repository
##
## mvn deploy:deploy-file -DgroupId=${dependency.groupId} \
## -DartifactId=${dependency.artifactId} \
## -Dpackaging=${dependency.packaging} \
## -Dversion=${dependency.version} \
@blove
blove / gist:5782474
Created June 14, 2013 14:52
Add artifact to local maven repository
#!/bin/bash
################################################################################
##
## Installs the artifacts to the local maven repository
##
## mvn install:install-file -DgroupId=${dependency.groupId} \
## -DartifactId=${dependency.artifactId} \
## -Dpackaging=${dependency.packaging} \
## -Dversion=${dependency.version} \