- Open notepad as an administrator
- Edit the host file at c:\windows\system32\drivers\etc\hosts
- Add the current ip address
This file contains hidden or 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 [ -f ~/.bashrc ]; then | |
source ~/.bashrc | |
fi | |
source ~/git-completion.bash | |
function parse_git_branch { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "("${ref#refs/heads/}")" | |
} |
This file contains hidden or 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
'use strict'; | |
var gulp = require('gulp'); | |
var $ = require('gulp-load-plugins')(); | |
gulp.task('config', function () { | |
var config = require('../config.json'), | |
envConfig = config['development']; | |
[process.env.NODE_ENV === 'production' ? 'production' : 'development'] |
This file contains hidden or 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
{"where": {"teamId": 1}} | |
use in swagger will url encode | |
{"include": ["price","item"]} | |
or | |
localhost:3000/api/stores/66525d9f-ca9a-4e6e-aaac-79f41746543f/storeitems?filter[include]=price&filter[include]=item | |
const filter = { | |
filter: { |
This file contains hidden or 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 ngModule = angular.module('app',[]); | |
// be sure to call new | |
ngModule | |
.component('login', new login()) |
This file contains hidden or 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
export function infoChart() { | |
return { | |
restrict: 'A', | |
scope: { | |
highchartsOptions: '=', | |
title: '@', | |
info: '@' | |
}, | |
templateUrl: 'template.html', | |
controllerAs: 'vm', |
This file contains hidden or 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
## Employee key is avaliable on child components when parent component is just a path | |
// :employeeKey will be avaliable on: | |
// this.route.snapshot.params['employeeKey'] && this.route.params.subscribe(values => console.log(values)) | |
// on the **EmployeeDetails** and **Dependants** component | |
{ | |
path: 'employee/:employeeKey', | |
canActivate: [AuthGuard], | |
children: [ |
This file contains hidden or 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 templateUrl: string = require('./date-filter.jade'); | |
require('./date-filters.sass'); | |
// note: to call the on change values you must match this call signature | |
// on-validation-change='vm.validationChange(valid)', | |
// on-date-change='vm.dateChange({toDate: toDate, fromDate: fromDate})', | |
export function dateFilter(): ng.IDirective { | |
return { | |
restrict: 'A', |
This file contains hidden or 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 { Component, OnInit } from '@angular/core'; | |
import {Store, State} from "@ngrx/store"; | |
import {EmailTemplateState} from "./shared/email-template/ngrx/reducer.email-template"; | |
import {EmailTemplate} from "./shared/email-template/model.email-template"; | |
import {compose} from "@ngrx/core"; | |
import {Observable} from "rxjs"; | |
let styles = require('./communications.sass'); | |
@Component({ | |
selector: 'communications', | |
template: require('./communications.component.jade'), |
This file contains hidden or 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 { Component, OnInit } from '@angular/core'; | |
import {Store, State} from "@ngrx/store"; | |
import {EmailTemplateState} from "./shared/email-template/ngrx/reducer.email-template"; | |
import {EmailTemplate} from "./shared/email-template/model.email-template"; | |
import {compose} from "@ngrx/core"; | |
import {Observable} from "rxjs"; | |
let styles = require('./communications.sass'); | |
@Component({ | |
selector: 'communications', | |
template: require('./communications.component.jade'), |
OlderNewer