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 putThousandsSeparators; | |
putThousandsSeparators = function(value, sep) { | |
if (sep == null) { | |
sep = ','; | |
} | |
// check if it needs formatting | |
if (value.toString() === value.toLocaleString()) { | |
// split decimals | |
var parts = value.toString().split('.') |
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
/** | |
* Created by veena on 6/28/17. | |
*/ | |
import React, {Component} from 'react'; | |
import Tile from './tile'; | |
import '../../styles/tilepanel.css'; | |
import Grid from 'react-bootstrap/lib/Grid'; | |
import { | |
Position, | |
Tooltip, |
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
server { | |
listen 443 ssl; | |
server_name hypergraph.cc www.hypergraph.cc; | |
ssl_certificate /etc/letsencrypt/live/app.hypergraph.cc/fullchain.pem; | |
ssl_certificate_key /etc/letsencrypt/live/app.hypergraph.cc/privkey.pem; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
ssl_prefer_server_ciphers on; |
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 { Http, Response } from '@angular/http'; | |
import 'rxjs/add/operator/map'; | |
@Injectable() | |
export class UserService { | |
constructor ( | |
private http: Http | |
) {} |
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 {Component, ViewContainerRef} from '@angular/core'; | |
import { ToastsManager } from 'ng2-toastr'; | |
constructor(public toastr: ToastsManager, vRef: ViewContainerRef, private router: Router) { | |
this.toastr.setRootViewContainerRef(vRef); | |
} |
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
<grid [mdGrid]="[2,1]" [xsGrid]="[1,2]" ratio="[1,1]"> | |
<grid-area [mdArea]="[1,1,1,1]" [xsArea]="[1,1,1,1]" class="grid-demo"> | |
<div class="area-heading d-flex justify-content-between flex-row align-items-center"> | |
<div class="d-flex">Heading</div> | |
</div> | |
<div class="area-content"> | |
Contents | |
</div> | |
</grid-area> | |
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
<grid [mdGrid]="[2,1]" [xsGrid]="[1,2]" ratio="[1,1]"> | |
</grid> | |
// @Input() xsGrid: Array<number>; // 0 - 599 mobile | |
// @Input() smGrid: Array<number>; // 600 - 959 Tablet | |
// @Input() mdGrid: Array<number> = [4,1]; // 960 - 1279 Desktop | |
// @Input() lgGrid: Array<number>; // 1280 - 1919 | |
// @Input() xlGrid: Array<number>; // 1920 | |
// @Input() xsRatio: Array<number>; |
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
{{':smile:' | emojify}} {{':flushed:' | emojify}} {{':sunglasses:' | emojify}} {{':grinning:' | emojify}} {{':boom:' | emojify}} | |
{{':wave:' | emojify}} {{':ok_hand:' | emojify}} {{':construction_worker:' | emojify}} {{':speech_balloon:' | emojify}} {{':cloud:' | emojify}} | |
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
<div style="stroke: red;width: 40px;margin-right: 30px;" [inlineSVG]="'/assets/icons/basic/basic_alarm.svg'" ></div> | |
<div style="stroke: blue;width: 40px;margin-right: 30px;" [inlineSVG]="'/assets/icons/basic/basic_anchor.svg'" ></div> | |
<div style="stroke: green;width: 40px;margin-right: 30px;" [inlineSVG]="'/assets/icons/basic/basic_archive.svg'" ></div> | |
<div style="stroke: black; width: 40px;margin-right: 30px;" [inlineSVG]="'/assets/icons/basic/basic_book_pen.svg'" ></div> | |