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
➜ my-app git:(fix-link-style-inheritence) ✗ yr docs | |
yarn run v1.2.1 | |
$ yarn run docs:toc | |
DocToccing single file "./README.md" for github.com. | |
================== | |
"./README.md" will be updated |
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 { Injectable } from '@angular/core'; | |
import { Observable } from 'rxjs/Observable'; | |
import { BehaviorSubject } from 'rxjs/BehaviorSubject'; | |
import 'rxjs/add/operator/distinctUntilChanged'; | |
import 'rxjs/add/operator/pluck'; | |
import 'rxjs/add/operator/debounceTime'; | |
import 'rxjs/add/observable/fromEvent'; | |
export interface WindowSize { |
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
// http://stackoverflow.com/questions/26501688/a-typescript-guid-class | |
class Guid { | |
static newGuid() { | |
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
const r = Math.random() * 16 | 0, v = c === 'x' ? r : ( r & 0x3 | 0x8 ); | |
return v.toString(16); | |
}); | |
} | |
} |
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
[alias] | |
deletebranch = "!f() { \ | |
git push origin --delete "$@"; \ | |
git branch -d "$@"; \ | |
}; f" | |
# usage: | |
# git deletebranch my-branch | |
# git deletebranch branch-1 branch-2 branch-3 |
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, | |
Input, | |
ElementRef, | |
} from '@angular/core'; | |
import { TsStyleThemeTypes } from './../types/style-theme.types'; | |
/** |
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
/Users/bc/code/Terminus/terminus-ui/src/lib/index.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/button/button.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/button/button.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/checkbox/checkbox.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/checkbox/checkbox.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/copy/copy.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/copy/copy.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/date-range/date-range.component.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/date-range/date-range.module.ts, | |
/Users/bc/code/Terminus/terminus-ui/src/lib/src/datepicker/datepicker.component.ts, |
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
/** | |
* Order an array alphabetically by property | |
* | |
* @param {Array} items The array of objects to sort | |
* @param {String} property The property to sort by | |
* @param {Boolean} isDescending A flag determining if the array should be sorted ascending or | |
* descending | |
* @return {Array} sortedArray The sorted array | |
*/ | |
export default function orderArrayByProperty(items: any[], property: string, isDescending: boolean = true): any[] { |
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 './typography'; | |
/** | |
* The vertical spacing default | |
* | |
* @nuclide vertical-spacing | |
* @section Config > Spacing | |
*/ | |
$g-spacing: $type__size--base !default; |