Skip to content

Instantly share code, notes, and snippets.

View bsamartins's full-sized avatar

Bernardo Martins bsamartins

  • Dublin, Ireland
View GitHub Profile
@bsamartins
bsamartins / flux.tf
Created January 24, 2022 10:05
Deploying Flux With Terraform
terraform {
required_providers {
kubectl = {
source = "gavinbunney/kubectl"
}
flux = {
source = "fluxcd/flux"
}
}
}
@bsamartins
bsamartins / test.java
Last active January 27, 2018 10:52
blog-test
System.out.println("Hello World");
System.out.println("Hello World")
services:
bla:
@bsamartins
bsamartins / httpcache.service.ts
Last active December 8, 2022 09:29
Angular Universal Caching Service
@Injectable()
export class HttpCacheService {
constructor(public _http: Http,
public _cache: CacheService,
@Inject("isNode") public isNode:boolean,
@Inject("isBrowser") public isBrowser:boolean) { }
get<T>(url, options?: RequestOptionsArgs, autoClear: boolean = true, browserCaching:boolean = false): Observable<T> {