- ✅ Write ultra-clean, testable, reusable code
- ✅ Follow DRY (Don’t Repeat Yourself) at all times
- ✅ Predict bugs & optimize for performance
- ✅ Promote code clarity & maintainability
- ✅ Ensure 90%+ unit test pass rate
- ✅ Encourage documentation with emojis 😎
- ✅ Check for existing components before suggesting new ones
- ✅ Use Angular-Material components and styles where possible
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Component, OnInit } from '@angular/core'; | |
import { Platform } from '@ionic/angular'; | |
import { StudentsService } from './students.service'; | |
@Component({ | |
selector: 'app-root', | |
templateUrl: 'app.component.html', | |
styleUrls: ['app.component.scss'], | |
}) | |
export class AppComponent implements OnInit { |
AngularJS | Angular | Notes |
---|---|---|
ui-sref | [routerLink] | |
ng-if | *ngIf | |
ng-show | *ngIf | It might make more sense to use *ngClass{hidden: condition} ) |
ng-hide | *ngIf | It might make more sense to use *ngClass{hidden: condition} ) |
ng-repeat | *ngFor | Requires additional syntax changes, see below. |
ng-model | [(ngModel)] | |
ng-class | ngClass | |
ng-click | (click) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for file in *.heic; do sips --setProperty format jpeg "$file" --out "${file%.heic}.jpg"; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set projDir to choose folder with prompt "Choose a folder with .cmproj files in it" without invisibles | |
set myDirectory to POSIX path of projDir | |
tell application "Finder" | |
set fl to files of alias (projDir as text) | |
end tell |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJjdXN0b21lciI6IkdhdGVrZWVwZXIgUGx1cmFsc2lnaHQiLCJ0eXBlIjoiZGVtbyIsImV4cGlyZXNPbiI6IjIwMzAtMTItMzEiLCJzZXJpYWwiOm51bGwsInBob25lcyI6MCwiYmVhY29ucyI6MTAsImVzY2FsYXRpb24iOmZhbHNlLCJjYWxsU2VydmVycyI6MSwib2ZmaG9vayI6ZmFsc2UsIm5vdGlmaWNhdGlvbkRvbWFpbnMiOjIsImhhIjowLCJkaXNwYXRjaGVyU2VyaWFsIjpudWxsLCJlbmRwb2ludHMiOiIxMDAwMDAwMDAwIiwiZGlzcGF0Y2hlckhhIjowLCJpYXQiOjE0OTQ1MTg1ODQsImlzcyI6IkNvbnZleWFudCBTeXN0ZW1zLCBJbmMuIiwic3ViIjoicGx1cmFsc2lnaHQifQ.TWw2Rm03pjz-0yXwyFXOMZeh-JP2lwJj6Zpn4f7i46tvffSRSRZIZ19IDn1rrv34C3rSEcquMBqhjagP6TjxxnrVLiPh72smEG0ER6xjK6Ux9qZDJMQ1MlOg-CzJDJI8H6sjpEapxtb1-JtciokS7M07WR_X71_eln84Da8osWhOXGNgQQa1G07kWPr0KNvTPmHbGoVIrHL_SAc-BKDwzQVUmmbZUvusfsQ5cKu6G1BO_PYToBW9f_BkqyEYJ11a1tZEI8JHgtoBWkzE0_DAgIkh9VZVksBpyuP28pdEXEmFWRzXsG5sUU_WIL7rmP-RRaxVCMmS4DdJuWXYIOxwyg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your settings in this file to overwrite the default settings | |
{ | |
"editor.fontFamily": "Roboto Mono, Consolas", | |
"editor.fontSize": 16, | |
"editor.minimap.enabled": false, | |
// The number of spaces a tab is equal to. | |
"editor.tabSize": 2, | |
"editor.wordWrapColumn": 120, | |
"editor.wordWrap": "bounded", | |
"editor.renderIndentGuides": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# bash/zsh completion support for core Git. | |
# | |
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]> | |
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/). | |
# Distributed under the GNU General Public License, version 2.0. | |
# | |
# The contained completion routines provide support for completing: | |
# | |
# *) local and remote branch names | |
# *) local and remote tag names |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Default Startup Class for OWIN WebAPI apps | |
/// </summary> | |
/// <remarks> | |
/// Requires the following NuGet Packages to be installed: | |
/// - Install-Package Microsoft.AspNet.WebApi.Owin | |
/// - Install-Package Microsoft.AspNet.WebApi.WebHost (If IIS-hosted) | |
/// </remarks> | |
public class Startup | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#============================================================ | |
# | |
# ALIASES AND FUNCTIONS | |
# | |
# Arguably, some functions defined here are quite big. | |
# If you want to make this file smaller, these functions can | |
#+ be converted into scripts and removed from here. | |
# | |
#============================================================ |
NewerOlder