Skip to content

Instantly share code, notes, and snippets.

View CobyBoy's full-sized avatar

Alejandro Acosta CobyBoy

View GitHub Profile
@CobyBoy
CobyBoy / nginx.conf
Created February 12, 2024 17:29 — forked from Stanback/nginx.conf
Example Nginx configuration for adding cross-origin resource sharing (CORS) support to reverse proxied APIs
#
# CORS header support
#
# One way to use this is by placing it into a file called "cors_support"
# under your Nginx configuration directory and placing the following
# statement inside your **location** block(s):
#
# include cors_support;
#
# As of Nginx 1.7.5, add_header supports an "always" parameter which
@CobyBoy
CobyBoy / click-outside.directive.ts
Created February 12, 2024 17:13 — forked from Rwin90/click-outside.directive.ts
angular 4 directive that emit an event when click event happen outside of target
import {Directive, ElementRef, Output, EventEmitter, HostListener} from '@angular/core';
@Directive({
selector: '[appClickOutside]'
})
export class ClickOutsideDirective {
constructor(private _elementRef: ElementRef) {
}
@Output()
@CobyBoy
CobyBoy / fetch-api-examples.md
Created August 29, 2019 10:32 — forked from justsml/fetch-api-examples.md
JavaScript Fetch API Examples