Skip to content

Instantly share code, notes, and snippets.

module Main exposing (..)
import Html exposing (text, div, Html)
import Html.App exposing (program)
import Input
import Helper
main : Program Never
main =
\section*{Acknowledgments}
\addcontentsline{toc}{section}{\numberline{}Acknowledgments}
\tableofcontents
\thispagestyle{empty}
\cleardoublepage
\setcounter{page}{1}
https://github.com/ngrx/platform
install @ngrx - npm install @ngrx/store --save
create bgo store module - ng g m bgo-store
create app.state.ts
create ui.actions.ts
import { Action } from '@ngrx/store';
create ui.reducer.ts
@ipetrovbg
ipetrovbg / core.module.ts
Created November 20, 2017 19:33
Implementation of Angular core module.
static forRoot(): ModuleWithProviders {
return {
ngModule: CoreModule,
providers: [
ProfileService,
UINotificationService,
FormatSelectionService,
LoaderService,
JiraIssueService,
WorklogService,
@ipetrovbg
ipetrovbg / type-guard-in-typescript.ts
Created September 27, 2017 19:40
Type guard for generic type in typescript
class Gen<T> {
value: any = null;
constructor(value: any) {
this.value = value;
}
}
class Component {
instance: string = null;
}
@ipetrovbg
ipetrovbg / binarySearchTree.ts
Last active February 8, 2021 14:21
Binary Search Tree in Typescript
/**
* Original implementation
* https://gist.github.com/thinkphp/1448754
**/
class Nodee {
public value: number;
public left: Nodee;
public right: Nodee;
public level: number;
import * as React from "react";
import * as ReactDOM from "react-dom";
import * as CSSModules from "react-css-modules";
import { Input, InputProps } from "react-toolbox/lib/input";
declare var document: any;
declare var window: any;
const styles = require("./PhoneInput.scss");
import * as moment from 'moment';
/**
* @example
* let date = new DateAutotransformation('061218');
* date.parsed() --> {
* original: "061218",
* parsed:"06/12/2018"
* }
* -------------------------------------------------------------
@import "colors";
@import "mixins";
.esporter-datapicker{
max-width:580px;
margin:0 auto;
border: 1px solid @eSporter-featured-video-dark-gray;
overflow: hidden;
margin-top:10px;
table{
<div class="esporter-datapicker">
<table>
<tr>
<td class="header navigation" colspan="1" ng-click="$ctrl.prevMonth($event)">
<span><</span>
</td>
<td class="header" colspan="5">{{ $ctrl.fullMonth }} {{ $ctrl.year }}</td>
<td class="header navigation" colspan="1" ng-click="$ctrl.nexMonth($event)">
<span>></span>
</td>