Skip to content

Instantly share code, notes, and snippets.

View luchillo17's full-sized avatar

Carlos Esteban Lopez Jaramillo luchillo17

View GitHub Profile
@born2net
born2net / ngrx8_with_immer.ts
Created July 10, 2019 14:55
ngrx 8+ with immer and support for on() within reducer
import {createReducer} from '@ngrx/store';
import {on} from "@ngrx/store";
import produce, {Draft} from "immer";
export const initialUserState: IUserState = {
knownUsers: [user1, user2],
selectedUser: null,
scenes: null
};
@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

@ricardodantas
ricardodantas / install-ubuntu-webserver-php+ruby+nginx.sh
Last active October 27, 2019 11:52
Install NGINX, PHP, RUBY on Ubuntu server 12.0.4. Run as root.
clear
echo "Installing PHP environment..."
echo "---"
apt-get install php5-cli php5-cgi php5-common php5-curl php5-dev php5-gd php5-mcrypt php5-mhash
apt-get install php5-mysql libmysqld-dev
apt-get install php5-fpm
echo "---"
echo "Installing Ruby environment + NGINX..."
echo "---"
@bennadel
bennadel / jquery.event-trace.js
Created June 27, 2012 15:04
Tracing Event Binding And Event Triggering In jQuery
// Create a private scope.
(function( $, on ){
// I proxy the given function and return the resultant GUID
// value that jQuery has attached to the function.
var createAndReturnProxyID = function( target ){
// When generating the proxy, it doesn't matter what the
// "context" is (window in this case); we never actually