SSH generate secure RSA key

SSH generate secure RSA key

ssh-keygen -t rsa -b 4096
read more
Individual TSLint rules for subdirectory

Individual TSLint rules for subdirectory

In case you want to have different TSLint rules for a subdirectory, for example a different Angular component selector rule, you just need 2 steps to achieve this. Create a tslint.json in your subdirectory root. Extend from the deafult tslint.json...
read more
Partially disable Angular Material animations

Partially disable Angular Material animations

Different options to disable animations of Angular Material:
read more
Simple Loading Stack with Ionic 3

Simple Loading Stack with Ionic 3

This is a simple Angular Service which handles multiple ionic 3 loaders at the same time. The most recent loader is displayed on top. If it is finished, and other loaders are still pending, the next recent will be shown....
read more
Lumen Middleware – JSON + gzip Response

Lumen Middleware – JSON + gzip Response

<?php namespace App\Http\Middleware; use Closure; class responseHeadersMiddleware { /** * Handle an incoming request. * * @param \Illuminate\Http\Request $request * @param \Closure $next * @return mixed */ public function handle($request, Closure $next) { $...
read more
Clipboard Browser API

Clipboard Browser API

Note: The API is still experimental and does not work along all browsers! Tested in current version of Google Chrome Desktop Browser. Write text to clipboard javascript function copyToClipboard(text) { navigator.clipboard.writeText(text); } Get text from clipb...
read more
Moment.js drop unused languages

Moment.js drop unused languages

Add plugin to webpack.config.js javascript // Drop unused moment.js languages new webpack.ContextReplacementPlugin( /moment[\/\\]locale$/, /en|fr|de/ ), Read more: – https://webpack.js.org/plugins/context-replacement-plugin/
read more
Create a sidebar layout using Angular Flex-Layout

Create a sidebar layout using Angular Flex-Layout

I remember well the time before flex-layout, when creating a sidebar layout was kind of defeating a monster. But luckily today we have flex-layout at disposual, which made this kind of horror a thing of the past.
read more
Separate Module for Angular Material Modules

Separate Module for Angular Material Modules

If you are using Angular Material in your website or app, you can create a separate module for importing all material modules separated from your app.module.ts to avoid getting your code unreadable. Be aware, that you should only import that...
read more
Generate Angular Project using Angular CLI

Generate Angular Project using Angular CLI

This commands help you to generate the Angular project in specific cases.
read more