Skip to content

Instantly share code, notes, and snippets.

View AlexanderKozhevin's full-sized avatar
💭
working

Alexander Kozhevin AlexanderKozhevin

💭
working
View GitHub Profile
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('.')
/**
* 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,
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;
import { Injectable } from '@angular/core';
import { Http, Response } from '@angular/http';
import 'rxjs/add/operator/map';
@Injectable()
export class UserService {
constructor (
private http: Http
) {}
import {Component, ViewContainerRef} from '@angular/core';
import { ToastsManager } from 'ng2-toastr';
constructor(public toastr: ToastsManager, vRef: ViewContainerRef, private router: Router) {
this.toastr.setRootViewContainerRef(vRef);
}
<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>
<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>;
{{':smile:' | emojify}} &nbsp; {{':flushed:' | emojify}} &nbsp; {{':sunglasses:' | emojify}} &nbsp; {{':grinning:' | emojify}} &nbsp; {{':boom:' | emojify}}
{{':wave:' | emojify}} &nbsp; {{':ok_hand:' | emojify}} &nbsp; {{':construction_worker:' | emojify}} &nbsp; {{':speech_balloon:' | emojify}} &nbsp; {{':cloud:' | emojify}}
<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>
<ng-sidebar-container class="menu-sidebar">
<!-- A sidebar -->
<ng-sidebar [(opened)]="demosidebar_visible" class="sidebar" [position]="'right'" closeOnClickOutside="true" keyClose="true" >
<div class="d-flex flex-column wrapper-container">
<div class="btn btn-danger" (click)="toggleSidebar()">
Close Sidebar
</div>
<br>