Skip to content

Instantly share code, notes, and snippets.

View Morstis's full-sized avatar

Lucas Wiese Morstis

  • Germany
  • 07:17 (UTC +02:00)
View GitHub Profile
openapi: 3.0.0
info:
title: Open Meteo API
version: 1.0.0
servers:
- url: https://api.open-meteo.com/v1
paths:
/forecast:
get:
summary: Get weather forecast data
@Morstis
Morstis / open-meteo-marine-open-api.yaml
Last active April 28, 2024 07:42
open meteo marine forecast openApi spec
openapi: 3.0.0
info:
title: Marine Weather Forecast API
description: Provides hourly marine weather forecast data for specified geographical coordinates.
version: 1.0.0
servers:
- url: https://marine-api.open-meteo.com/v1/
paths:
/marine:
get:
@Morstis
Morstis / async-loader.ts
Created April 20, 2021 10:39
async loader
import { LoaderFactory } from '../services/loaderFactory.service';
/**
* - Startet beim Aufruf der Methode die loading Animation.
* - Stoppt die Animation, wenn der Promise erfüllt wird.
*/
export const asyncLoader = () => {
return (target: any, propertyKey: string, descriptor: PropertyDescriptor) => {
const originalMethod: Function = descriptor.value;