This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { NgModule } from '@angular/core'; | |
import { BrowserModule } from '@angular/platform-browser'; | |
import { AppRoutingModule } from './app-routing.module'; | |
import { AppComponent } from './app.component'; | |
import { EntityDataModule } from '@ngrx/data'; | |
import { entityConfig } from './entity-metadata'; | |
import { EffectsModule } from '@ngrx/effects'; | |
import { StoreModule } from '@ngrx/store'; | |
import { HttpClientModule } from '@angular/common/http'; | |
import { StoreDevtoolsModule } from '@ngrx/store-devtools'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Injectable } from '@angular/core'; | |
import { HttpClient, HttpParams } from '@angular/common/http'; | |
@Injectable({ | |
providedIn: 'root', | |
}) | |
export class BaseService { | |
constructor(private http$: HttpClient) {} | |
get(url, params: HttpParams = new HttpParams()) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
build: | |
image: node:latest | |
stage: build | |
script: | |
- rm package-lock.json | |
- npm install --progress=false | |
- npm run production --no-progress | |
artifacts: | |
expire_in: 10 mins | |
paths: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
deploy: | |
image: alpine | |
stage: deploy | |
script: | |
- apk add --no-cache rsync openssh | |
- mkdir -p ~/.ssh | |
- echo "$SSH_PRIVATE_KEY" >> ~/.ssh/id_dsa | |
- chmod 600 ~/.ssh/id_dsa | |
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config | |
- touch hola.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Place your key bindings in this file to override the defaultsauto[] | |
[ | |
{ | |
"key": "alt+left", | |
"command": "workbench.action.navigateBack" | |
}, | |
{ | |
"key": "ctrl+alt+-", | |
"command": "-workbench.action.navigateBack" | |
}, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/hcastillaq/.oh-my-zsh" | |
ZSH_THEME="robbyrussell" | |
plugins=(git zsh-syntax-highlighting zsh-autosuggestions node npm) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# remap prefix from 'C-b' to 'C-a' | |
unbind C-b | |
set-option -g prefix 'M' | |
bind-key -n 'M' send-prefix | |
bind -n M-Left select-pane -L | |
bind -n M-Right select-pane -R | |
bind -n M-Up select-pane -U | |
bind -n M-Down select-pane -D |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"short_name":"hcastillaq","name":"Blog personal de Hernan Castilla","start_url":"/","background_color":"#212121","display":"standalone","theme_color":"#1d1f21","icons":[{"src":"/imagenes/x48.png","type":"image/png","sizes":"48x48"},{"src":"/imagenes/x96.png","type":"image/png","sizes":"96x96"},{"src":"/imagenes/x192.png","type":"image/png","sizes":"192x192"},{"src":"/imagenes/x512.png","type":"image/png","sizes":"512x512"}]} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var CACHE_NAME = "hcq-cache"; | |
var urlToCache = [ | |
'/', | |
'/index.html', | |
'/css/fonts/MesloLGM-Regular.ttf' | |
]; | |
self.addEventListener('install', function(event) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let _instanceObserver = null; | |
class Observable{ | |
constructor() | |
{ | |
if( _instanceObserver == null ) | |
{ | |
_instanceObserver = this; | |
this.observers = {}; |
NewerOlder