Skip to content

Instantly share code, notes, and snippets.

View luchillo17's full-sized avatar

Carlos Esteban Lopez Jaramillo luchillo17

View GitHub Profile
@luchillo17
luchillo17 / k8s-dashboard-ingress.yml
Last active June 4, 2023 02:15
Neo4j Kind WSL2 setup
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kubernetes-dashboard
namespace: kubernetes-dashboard
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
nginx.ingress.kubernetes.io/configuration-snippet: |
rewrite ^(/kubernetes\-dashboard)$ $1/ redirect;
nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
@luchillo17
luchillo17 / app.module.ts
Created October 21, 2020 03:30
NGRX Data override request handling and data flow
import { ScrollingModule } from '@angular/cdk/scrolling';
import { registerLocaleData } from '@angular/common';
import localeEs from '@angular/common/locales/es';
import { LOCALE_ID, NgModule } from '@angular/core';
import { FlexLayoutModule } from '@angular/flex-layout';
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
import {
DefaultDataServiceConfig,
EntityCollectionReducerMethodsFactory,
EntityDataModule,
@luchillo17
luchillo17 / Recursive-region-check.js
Last active June 6, 2020 02:06
Recursive region check
function recursiveRegionCheck(x, y, grid1, grid2) {
let result = true;
if (!(+grid1[y][x] === 1 && +grid2[y][x] === 1)) {
result = false;
}
grid1[y][x] = 0;
grid2[y][x] = 0;
@luchillo17
luchillo17 / gist:0d3c2ba010c5181ca9c69d0daa0d9321
Last active October 20, 2019 19:20
SeaVel application link
# SeaVel app
Here's a link to the deployed application in Heroku:
https://seavel.herokuapp.com/
Here's a link to the GitHub page of the project:
https://github.com/luchillo17/SeaVel-front
@luchillo17
luchillo17 / ChatStore.ts
Last active July 19, 2019 00:23
ZenToRxjs source duplication in SwitchMap
import { ApolloClient, gql, NormalizedCacheObject } from 'apollo-boost';
import { Map } from 'immutable';
import { observable } from 'mobx';
import { merge } from 'rxjs';
import { map, share, switchMap } from 'rxjs/operators';
import { IChat } from '../components/chat-card/ChatCard.model';
import { zenToRxjs } from '../shared';
export const ChatStoreName = 'Chat';
@luchillo17
luchillo17 / User settings.ts
Created October 6, 2017 18:41
VSCode personal user configs public
// Place your settings in this file to overwrite the default settings
{
// Temporal fix for 1.14.0 issue https://github.com/Microsoft/vscode/issues/10497
"editor.tabSize": 2,
"editor.autoIndent": true,
"editor.detectIndentation": false,
"editor.wrappingIndent": "indent",
"editor.wordWrap": "on",
"editor.acceptSuggestionOnEnter": "off",
"editor.renderIndentGuides": true,
@luchillo17
luchillo17 / .bash_profile
Last active March 15, 2022 11:55
Docker issue files
#!/bin/bash
# ---------------------------------------------------------------------------
#
# Description: This file holds all my BASH configurations and aliases.
# Much of this was originally copied from:
# http://natelandau.com/my-mac-osx-bash_profile/
#
# Sections:
# 1. Environment Configuration
# 2. Make Terminal Better (remapping defaults and adding functionality)
var webpack = require('webpack'),
ReloadPlugin = require('webpack-reload-plugin'),
path = require('path'),
ChunkManifestPlugin = require('chunk-manifest-webpack-plugin'),
HtmlWebpackPlugin = require('html-webpack-plugin'),
WebpackNotifierPlugin = require('webpack-notifier'),
ExtractTextPlugin = require("extract-text-webpack-plugin");
/**
* Support for extra commandline arguments
@luchillo17
luchillo17 / index.md
Last active September 10, 2020 15:03
Showing how to make and use an Ionic 2 busy indicator with FortAwesome refresh spinner icon

#Busy indicator backup solution:

This gist show how to make a replacement for the Ionic 1 Busy indicator into Ionic 2 until the ionic staff creates the native one, relate to:

  1. Code pen ilustrating the ionic 1 version: http://codepen.io/chabelly/pen/xGdqbJ#0
  2. Ionic 1 docs about that component: http://ionicframework.com/docs/api/service/$ionicLoading/
  3. Video that shows how it looks in an ionic 2 deploy ready app, last 4 sec (hint, it is the one with spinning arrows): Ionic 2 loading replacement

##Pre-requisits