Skip to content

Instantly share code, notes, and snippets.

View lmeijdam's full-sized avatar

Lars Meijdam lmeijdam

View GitHub Profile
@Mattnmoore
Mattnmoore / app.component.html
Last active August 31, 2023 07:04
Angular Skip Link
<div id="skip-link">
<a [href]="skipLinkPath">Skip to content</a>
</div>
<main id="main-content" class="content">
<!--Main content goes here-->
</main>
@tsabirgaliev
tsabirgaliev / Build lazy module
Last active January 4, 2019 01:40
Angular example plugin architecture
> tsc --lib es2016,dom --experimentalDecorators true --emitDecoratorMetadata true lazy.module.ts
@heloa-net
heloa-net / How-to.md
Created January 4, 2017 01:58
Hiding API keys on GitHub without breaking your project

Backup the API key beforehand in case you have trouble reverting the file.

Let's say the file with a key you want to hide is <filename> Open it and change the API key with a placeholder, like <api-key> Save and add the file to git and commit git commit -m 'Masking API key'

Then revert the file, undoing recent changes so your key is back where it should be and save it. Use git update-index --assume-unchanged

@indus
indus / in.ts
Last active March 4, 2021 19:12
Typescript Pattern for Vue Components
module MyModule {
export class MyClass extends Vue {
// define instance methods
myMethod() {
// the TS-Type of "this" is defined as Instance of MyClass
console.log("myMethod");
}
myOtherMethod() {
console.log("myOtherMethod");
@staltz
staltz / introrx.md
Last active May 17, 2024 07:59
The introduction to Reactive Programming you've been missing