Skip to content

Instantly share code, notes, and snippets.

View Tecayehuatl's full-sized avatar
🌟
One task at the time...

Enrique Delgado Tecayehuatl Tecayehuatl

🌟
One task at the time...
View GitHub Profile
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace WebApplication06102013
{
public partial class WebForm1 : System.Web.UI.Page
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
PageLoad()
{
if(IsPostBack)
@Tecayehuatl
Tecayehuatl / .html
Created December 22, 2016 22:54
Email boilerplate
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Example</title>
<style type="text/css">
/*****************
*HOTMAIL WEB FIX LINE HEIGHT
*****************/
@Tecayehuatl
Tecayehuatl / package.json
Last active May 25, 2020 01:23
information of ngrx/store package.json
{
"name": "ngrx-store-walkthrough",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
@NgModule({
declarations: [
AppComponent
@Tecayehuatl
Tecayehuatl / index.ts
Last active May 25, 2020 03:20
Reducer index
import { ActionReducerMap, MetaReducer } from '@ngrx/store';
import { IAppState } from './app.interface';
export const reducers: ActionReducerMap<IAppState> = {};
export const metaReducers: MetaReducer<IAppState>[] = [];
import { createAction, props } from '@ngrx/store';
export const login = createAction(
'[loginModule] log user Action',
props<{ usernamae: string; password: string }>()
);
export const loginSuccess = createAction(
'[loginModule] log user Success Action'
);
import { createReducer, on, Action } from '@ngrx/store';
import { initialAppState, IApp } from '../app.interface';
import { login, loginSuccess, loginFail } from '../actions/app.actions';
export const userFeatureKey = 'AppState';
export const reducer = createReducer(
initialAppState as IApp,
on(login, (state) => ({
...state,
import { ActionReducerMap, MetaReducer } from '@ngrx/store';
import { IAppState } from './app.interface';
import { AppReducer } from './reducers/app.reducers';
export const reducers: ActionReducerMap<IAppState> = {
AppState: AppReducer,
};
export const metaReducers: MetaReducer<IAppState>[] = [];
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppRoutingModule } from './app-routing.module';
import { AppComponent } from './app.component';
import { StoreModule } from '@ngrx/store';
import { reducers, metaReducers } from './store';
@NgModule({
declarations: [AppComponent],